@revealui/core 0.2.1 → 0.5.0
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/api/compression.d.ts.map +1 -1
- package/dist/api/payload-optimization.d.ts.map +1 -1
- package/dist/api/rate-limit.d.ts +29 -28
- package/dist/api/rate-limit.d.ts.map +1 -1
- package/dist/api/rate-limit.js +63 -3
- package/dist/api/response-cache.d.ts.map +1 -1
- package/dist/api/response-cache.js +1 -1
- package/dist/api/rest.d.ts.map +1 -1
- package/dist/api/rest.js +3 -2
- package/dist/auth/access.d.ts.map +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/cache/query-cache.d.ts +12 -10
- package/dist/cache/query-cache.d.ts.map +1 -1
- package/dist/cache/query-cache.js +38 -42
- package/dist/caching/index.d.ts +6 -0
- package/dist/caching/index.d.ts.map +1 -0
- package/dist/caching/index.js +5 -0
- package/dist/client/admin/RichText.d.ts +1 -1
- package/dist/client/admin/RichText.d.ts.map +1 -1
- package/dist/client/admin/components/AdminDashboard.d.ts.map +1 -1
- package/dist/client/admin/components/AdminDashboard.js +195 -205
- package/dist/client/admin/components/CollectionList.d.ts.map +1 -1
- package/dist/client/admin/components/DocumentForm.d.ts.map +1 -1
- package/dist/client/admin/components/DocumentForm.js +130 -6
- package/dist/client/admin/components/GlobalForm.d.ts.map +1 -1
- package/dist/client/admin/context/ServerFunctionContext.d.ts +8 -0
- package/dist/client/admin/context/ServerFunctionContext.d.ts.map +1 -0
- package/dist/client/admin/context/ServerFunctionContext.js +15 -0
- package/dist/client/admin/i18n/en.d.ts.map +1 -1
- package/dist/client/admin/index.d.ts +1 -0
- package/dist/client/admin/index.d.ts.map +1 -1
- package/dist/client/admin/index.js +1 -0
- package/dist/client/admin/layout.d.ts +1 -1
- package/dist/client/admin/layout.d.ts.map +1 -1
- package/dist/client/admin/layout.js +3 -2
- package/dist/client/admin/page.d.ts.map +1 -1
- package/dist/client/admin/utils/apiClient.d.ts.map +1 -1
- package/dist/client/admin/utils/apiClient.js +0 -4
- package/dist/client/admin/utils/index.d.ts +0 -1
- package/dist/client/admin/utils/index.d.ts.map +1 -1
- package/dist/client/admin/utils/index.js +0 -1
- package/dist/client/admin/utils/serializeConfig.d.ts.map +1 -1
- package/dist/client/hooks.d.ts.map +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/richtext/RichTextEditor.d.ts.map +1 -1
- package/dist/client/richtext/components/ImageNodeComponent.d.ts.map +1 -1
- package/dist/client/richtext/components/ImageNodeComponent.js +0 -1
- package/dist/client/richtext/components/ImageUploadButton.d.ts +2 -0
- package/dist/client/richtext/components/ImageUploadButton.d.ts.map +1 -1
- package/dist/client/richtext/components/ImageUploadButton.js +30 -15
- package/dist/client/richtext/index.d.ts.map +1 -1
- package/dist/client/richtext/nodes/DecoratorBlockNode.d.ts.map +1 -1
- package/dist/client/richtext/nodes/ImageNode.d.ts.map +1 -1
- package/dist/client/richtext/plugins/CollaborationPlugin.d.ts.map +1 -1
- package/dist/client/richtext/plugins/CursorsOverlayPlugin.d.ts.map +1 -1
- package/dist/client/richtext/plugins/FloatingToolbarPlugin.d.ts.map +1 -1
- package/dist/client/richtext/plugins/FloatingToolbarPlugin.js +1 -3
- package/dist/client/richtext/plugins/ImagePlugin.d.ts.map +1 -1
- package/dist/client/richtext/plugins/ToolbarPlugin.d.ts.map +1 -1
- package/dist/client/ui/index.d.ts.map +1 -1
- package/dist/client/ui/index.js +1 -1
- package/dist/collections/CollectionOperations.d.ts +7 -7
- package/dist/collections/CollectionOperations.d.ts.map +1 -1
- package/dist/collections/CollectionOperations.js +15 -1
- package/dist/collections/hooks.d.ts.map +1 -1
- package/dist/collections/index.d.ts.map +1 -1
- package/dist/collections/operations/create.d.ts +4 -5
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +35 -6
- package/dist/collections/operations/createMany.d.ts +12 -0
- package/dist/collections/operations/createMany.d.ts.map +1 -0
- package/dist/collections/operations/createMany.js +43 -0
- package/dist/collections/operations/delete.d.ts +1 -1
- package/dist/collections/operations/delete.d.ts.map +1 -1
- package/dist/collections/operations/delete.js +31 -2
- package/dist/collections/operations/deleteMany.d.ts +11 -0
- package/dist/collections/operations/deleteMany.d.ts.map +1 -0
- package/dist/collections/operations/deleteMany.js +50 -0
- package/dist/collections/operations/fieldHooks.d.ts +2 -2
- package/dist/collections/operations/fieldHooks.d.ts.map +1 -1
- package/dist/collections/operations/fieldHooks.js +4 -4
- package/dist/collections/operations/find.d.ts +2 -4
- package/dist/collections/operations/find.d.ts.map +1 -1
- package/dist/collections/operations/find.js +115 -8
- package/dist/collections/operations/findById.d.ts +3 -4
- package/dist/collections/operations/findById.d.ts.map +1 -1
- package/dist/collections/operations/findById.js +53 -1
- package/dist/collections/operations/sqlAdapter.d.ts +23 -0
- package/dist/collections/operations/sqlAdapter.d.ts.map +1 -0
- package/dist/collections/operations/sqlAdapter.js +76 -0
- package/dist/collections/operations/update.d.ts +3 -5
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +103 -11
- package/dist/collections/operations/updateMany.d.ts +11 -0
- package/dist/collections/operations/updateMany.d.ts.map +1 -0
- package/dist/collections/operations/updateMany.js +52 -0
- package/dist/collections/registry.d.ts +12 -0
- package/dist/collections/registry.d.ts.map +1 -0
- package/dist/collections/registry.js +38 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/utils.d.ts +0 -10
- package/dist/config/utils.d.ts.map +1 -1
- package/dist/config/utils.js +0 -13
- package/dist/database/index.d.ts +3 -0
- package/dist/database/index.d.ts.map +1 -1
- package/dist/database/index.js +1 -5
- package/dist/database/safe-parse.d.ts.map +1 -1
- package/dist/database/ssl-config.d.ts.map +1 -1
- package/dist/database/type-adapter.d.ts.map +1 -1
- package/dist/database/universal-postgres.d.ts.map +1 -1
- package/dist/database/universal-postgres.js +6 -1
- package/dist/dataloader.d.ts.map +1 -1
- package/dist/error-handling/error-boundary.d.ts.map +1 -1
- package/dist/error-handling/error-reporter.d.ts +1 -1
- package/dist/error-handling/error-reporter.d.ts.map +1 -1
- package/dist/error-handling/error-reporter.js +19 -5
- package/dist/error-handling/fallback-components.d.ts.map +1 -1
- package/dist/error-handling/fallback-components.js +1 -1
- package/dist/error-handling/index.d.ts +2 -4
- package/dist/error-handling/index.d.ts.map +1 -1
- package/dist/error-handling/index.js +1 -4
- package/dist/factories/builders.d.ts.map +1 -1
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/features.d.ts +7 -7
- package/dist/features.d.ts.map +1 -1
- package/dist/features.js +2 -2
- package/dist/fieldTraversal.d.ts.map +1 -1
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/getDefaultValue.d.ts.map +1 -1
- package/dist/fields/getFieldPaths.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
- package/dist/generated/types/cms.d.ts.map +1 -1
- package/dist/generated/types/cms.js +0 -1
- package/dist/generated/types/neon.d.ts.map +1 -1
- package/dist/generated/types/neon.js +4 -2
- package/dist/globals/GlobalOperations.d.ts.map +1 -1
- package/dist/globals/GlobalOperations.js +16 -4
- package/dist/globals/index.d.ts.map +1 -1
- package/dist/index.d.ts +15 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/instance/RevealUIInstance.d.ts.map +1 -1
- package/dist/instance/RevealUIInstance.js +6 -19
- package/dist/instance/index.d.ts.map +1 -1
- package/dist/instance/logger.d.ts.map +1 -1
- package/dist/instance/methods/create.d.ts.map +1 -1
- package/dist/instance/methods/create.js +0 -3
- package/dist/instance/methods/delete.d.ts.map +1 -1
- package/dist/instance/methods/delete.js +1 -4
- package/dist/instance/methods/find.d.ts.map +1 -1
- package/dist/instance/methods/find.js +0 -3
- package/dist/instance/methods/findById.d.ts.map +1 -1
- package/dist/instance/methods/findById.js +0 -3
- package/dist/instance/methods/hooks.d.ts.map +1 -1
- package/dist/instance/methods/update.d.ts.map +1 -1
- package/dist/instance/methods/update.js +0 -3
- package/dist/jobs/index.d.ts +16 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +14 -0
- package/dist/jobs/queue.d.ts +57 -0
- package/dist/jobs/queue.d.ts.map +1 -0
- package/dist/jobs/queue.js +134 -0
- package/dist/license-encryption.d.ts +21 -0
- package/dist/license-encryption.d.ts.map +1 -0
- package/dist/license-encryption.js +74 -0
- package/dist/license.d.ts +26 -3
- package/dist/license.d.ts.map +1 -1
- package/dist/license.js +87 -7
- package/dist/monitoring/alerts.d.ts +4 -4
- package/dist/monitoring/alerts.d.ts.map +1 -1
- package/dist/monitoring/cleanup-manager.d.ts.map +1 -1
- package/dist/monitoring/health-monitor.d.ts.map +1 -1
- package/dist/monitoring/index.d.ts.map +1 -1
- package/dist/monitoring/process-registry.d.ts.map +1 -1
- package/dist/monitoring/query-monitor.d.ts.map +1 -1
- package/dist/monitoring/types.d.ts.map +1 -1
- package/dist/monitoring/zombie-detector.d.ts.map +1 -1
- package/dist/monitoring/zombie-detector.js +5 -0
- package/dist/nextjs/index.d.ts.map +1 -1
- package/dist/nextjs/utilities.d.ts.map +1 -1
- package/dist/nextjs/withRevealUI.d.ts.map +1 -1
- package/dist/observability/alerts.d.ts.map +1 -1
- package/dist/observability/alerts.js +1 -2
- package/dist/observability/health-check.d.ts +0 -4
- package/dist/observability/health-check.d.ts.map +1 -1
- package/dist/observability/health-check.js +0 -36
- package/dist/observability/index.d.ts.map +1 -1
- package/dist/observability/logger.d.ts.map +1 -1
- package/dist/observability/logger.js +1 -1
- package/dist/observability/metrics.d.ts.map +1 -1
- package/dist/observability/tracing.d.ts.map +1 -1
- package/dist/observability/tracing.js +0 -1
- package/dist/plugins/form-builder.d.ts.map +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/nested-docs.d.ts +4 -0
- package/dist/plugins/nested-docs.d.ts.map +1 -1
- package/dist/plugins/nested-docs.js +50 -6
- package/dist/plugins/redirects.d.ts.map +1 -1
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/queries/queryBuilder.d.ts.map +1 -1
- package/dist/queries/queryBuilder.js +13 -5
- package/dist/relationships/analyzer.d.ts.map +1 -1
- package/dist/relationships/analyzer.js +8 -0
- package/dist/relationships/index.d.ts.map +1 -1
- package/dist/relationships/populate-core.d.ts +57 -0
- package/dist/relationships/populate-core.d.ts.map +1 -0
- package/dist/relationships/populate-core.js +116 -0
- package/dist/relationships/populate-helpers.d.ts +5 -51
- package/dist/relationships/populate-helpers.d.ts.map +1 -1
- package/dist/relationships/populate-helpers.js +4 -109
- package/dist/relationships/population.d.ts +1 -9
- package/dist/relationships/population.d.ts.map +1 -1
- package/dist/relationships/population.js +8 -3
- package/dist/revealui.d.ts.map +1 -1
- package/dist/richtext/exports/client/rcc.d.ts.map +1 -1
- package/dist/richtext/exports/client/rcc.js +1 -1
- package/dist/richtext/exports/server/rsc.d.ts +17 -0
- package/dist/richtext/exports/server/rsc.d.ts.map +1 -1
- package/dist/richtext/exports/server/rsc.js +61 -5
- package/dist/richtext/index.d.ts.map +1 -1
- package/dist/richtext/lexical.d.ts.map +1 -1
- package/dist/security/index.d.ts +3 -16
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +3 -16
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/renderPage.d.ts.map +1 -1
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +2 -4
- package/dist/storage/vercel-blob.d.ts.map +1 -1
- package/dist/storage/vercel-blob.js +3 -0
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/types/access.d.ts.map +1 -1
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/cms.d.ts.map +1 -1
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/extensions.d.ts.map +1 -1
- package/dist/types/frontend.d.ts.map +1 -1
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/hooks.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/interfaces/app.d.ts.map +1 -1
- package/dist/types/jobs.d.ts.map +1 -1
- package/dist/types/legacy.d.ts.map +1 -1
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/query.d.ts.map +1 -1
- package/dist/types/request.d.ts.map +1 -1
- package/dist/types/richtext.d.ts.map +1 -1
- package/dist/types/runtime.d.ts +60 -1
- package/dist/types/runtime.d.ts.map +1 -1
- package/dist/types/schema.d.ts.map +1 -1
- package/dist/types/user.d.ts.map +1 -1
- package/dist/utils/access-conversion.d.ts.map +1 -1
- package/dist/utils/api-wrapper.d.ts.map +1 -1
- package/dist/utils/api-wrapper.js +1 -1
- package/dist/utils/block-conversion.d.ts.map +1 -1
- package/dist/utils/cache.d.ts.map +1 -1
- package/dist/utils/deep-clone.js +0 -1
- package/dist/utils/error-responses.d.ts.map +1 -1
- package/dist/utils/error-responses.js +2 -3
- package/dist/utils/errors.d.ts +36 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +103 -0
- package/dist/utils/field-conversion.d.ts +1 -1
- package/dist/utils/field-conversion.d.ts.map +1 -1
- package/dist/utils/flattenResult.d.ts.map +1 -1
- package/dist/utils/flattenResult.js +0 -1
- package/dist/utils/getBlockSelect.d.ts.map +1 -1
- package/dist/utils/getSelectMode.d.ts.map +1 -1
- package/dist/utils/isValidID.d.ts.map +1 -1
- package/dist/utils/json-parsing.d.ts.map +1 -1
- package/dist/utils/logger-client.d.ts.map +1 -1
- package/dist/utils/logger-server.d.ts.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/request-context.d.ts.map +1 -1
- package/dist/utils/stripUnselectedFields.d.ts.map +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/package.json +58 -26
- package/dist/caching/app-cache.d.ts +0 -237
- package/dist/caching/app-cache.d.ts.map +0 -1
- package/dist/caching/app-cache.js +0 -430
- package/dist/caching/cdn-config.d.ts +0 -155
- package/dist/caching/cdn-config.d.ts.map +0 -1
- package/dist/caching/cdn-config.js +0 -411
- package/dist/caching/edge-cache.d.ts +0 -177
- package/dist/caching/edge-cache.d.ts.map +0 -1
- package/dist/caching/edge-cache.js +0 -385
- package/dist/caching/service-worker.d.ts +0 -154
- package/dist/caching/service-worker.d.ts.map +0 -1
- package/dist/caching/service-worker.js +0 -437
- package/dist/client/admin/utils/auth.d.ts +0 -23
- package/dist/client/admin/utils/auth.d.ts.map +0 -1
- package/dist/client/admin/utils/auth.js +0 -52
- package/dist/client/http/client.d.ts +0 -15
- package/dist/client/http/client.d.ts.map +0 -1
- package/dist/client/http/client.js +0 -49
- package/dist/client/http/fetchBanner.d.ts +0 -18
- package/dist/client/http/fetchBanner.d.ts.map +0 -1
- package/dist/client/http/fetchBanner.js +0 -44
- package/dist/client/http/fetchCard.d.ts +0 -18
- package/dist/client/http/fetchCard.d.ts.map +0 -1
- package/dist/client/http/fetchCard.js +0 -46
- package/dist/client/http/fetchEvents.d.ts +0 -18
- package/dist/client/http/fetchEvents.d.ts.map +0 -1
- package/dist/client/http/fetchEvents.js +0 -44
- package/dist/client/http/fetchHero.d.ts +0 -17
- package/dist/client/http/fetchHero.d.ts.map +0 -1
- package/dist/client/http/fetchHero.js +0 -55
- package/dist/client/http/fetchMainInfos.d.ts +0 -17
- package/dist/client/http/fetchMainInfos.d.ts.map +0 -1
- package/dist/client/http/fetchMainInfos.js +0 -44
- package/dist/client/http/fetchVideos.d.ts +0 -13
- package/dist/client/http/fetchVideos.d.ts.map +0 -1
- package/dist/client/http/fetchVideos.js +0 -36
- package/dist/client/http/index.d.ts +0 -19
- package/dist/client/http/index.d.ts.map +0 -1
- package/dist/client/http/index.js +0 -11
- package/dist/error-handling/circuit-breaker.d.ts +0 -262
- package/dist/error-handling/circuit-breaker.d.ts.map +0 -1
- package/dist/error-handling/circuit-breaker.js +0 -542
- package/dist/error-handling/retry.d.ts +0 -194
- package/dist/error-handling/retry.d.ts.map +0 -1
- package/dist/error-handling/retry.js +0 -450
- package/dist/errors/index.d.ts +0 -23
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js +0 -40
- package/dist/generated/agents/index.d.ts +0 -8
- package/dist/generated/agents/index.d.ts.map +0 -1
- package/dist/generated/agents/index.js +0 -7
- package/dist/generated/components/index.d.ts +0 -8
- package/dist/generated/components/index.d.ts.map +0 -1
- package/dist/generated/components/index.js +0 -7
- package/dist/generated/functions/index.d.ts +0 -8
- package/dist/generated/functions/index.d.ts.map +0 -1
- package/dist/generated/functions/index.js +0 -7
- package/dist/generated/hooks/index.d.ts +0 -8
- package/dist/generated/hooks/index.d.ts.map +0 -1
- package/dist/generated/hooks/index.js +0 -7
- package/dist/generated/plans/index.d.ts +0 -8
- package/dist/generated/plans/index.d.ts.map +0 -1
- package/dist/generated/plans/index.js +0 -7
- package/dist/generated/prompts/index.d.ts +0 -8
- package/dist/generated/prompts/index.d.ts.map +0 -1
- package/dist/generated/prompts/index.js +0 -7
- package/dist/generated/tools/index.d.ts +0 -8
- package/dist/generated/tools/index.d.ts.map +0 -1
- package/dist/generated/tools/index.js +0 -7
- package/dist/generated/types/supabase.d.ts +0 -193
- package/dist/generated/types/supabase.d.ts.map +0 -1
- package/dist/generated/types/supabase.js +0 -5
- package/dist/optimization/asset-optimizer.d.ts +0 -202
- package/dist/optimization/asset-optimizer.d.ts.map +0 -1
- package/dist/optimization/asset-optimizer.js +0 -312
- package/dist/optimization/build-optimizer.d.ts +0 -202
- package/dist/optimization/build-optimizer.d.ts.map +0 -1
- package/dist/optimization/build-optimizer.js +0 -271
- package/dist/optimization/bundle-analyzer.d.ts +0 -98
- package/dist/optimization/bundle-analyzer.d.ts.map +0 -1
- package/dist/optimization/bundle-analyzer.js +0 -322
- package/dist/optimization/code-splitting.d.ts +0 -131
- package/dist/optimization/code-splitting.d.ts.map +0 -1
- package/dist/optimization/code-splitting.js +0 -277
- package/dist/plugin/index.d.ts +0 -12
- package/dist/plugin/index.d.ts.map +0 -1
- package/dist/plugin/index.js +0 -4
- package/dist/security/audit.d.ts +0 -188
- package/dist/security/audit.d.ts.map +0 -1
- package/dist/security/audit.js +0 -431
- package/dist/security/auth.d.ts +0 -241
- package/dist/security/auth.d.ts.map +0 -1
- package/dist/security/auth.js +0 -476
- package/dist/security/authorization.d.ts +0 -235
- package/dist/security/authorization.d.ts.map +0 -1
- package/dist/security/authorization.js +0 -434
- package/dist/security/encryption.d.ts +0 -214
- package/dist/security/encryption.d.ts.map +0 -1
- package/dist/security/encryption.js +0 -517
- package/dist/security/gdpr.d.ts +0 -300
- package/dist/security/gdpr.d.ts.map +0 -1
- package/dist/security/gdpr.js +0 -465
- package/dist/security/headers.d.ts +0 -182
- package/dist/security/headers.d.ts.map +0 -1
- package/dist/security/headers.js +0 -402
- package/dist/utils/jwt-validation.d.ts +0 -14
- package/dist/utils/jwt-validation.d.ts.map +0 -1
- package/dist/utils/jwt-validation.js +0 -36
- package/dist/utils/request-headers.d.ts +0 -15
- package/dist/utils/request-headers.d.ts.map +0 -1
- package/dist/utils/request-headers.js +0 -31
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base API client for fetching data from RevealUI CMS
|
|
3
|
-
* Uses environment variables to determine CMS URL
|
|
4
|
-
*/
|
|
5
|
-
// Client-side (browser) - Vite exposes VITE_* prefixed env vars
|
|
6
|
-
const getClientCMSURL = () => {
|
|
7
|
-
if (typeof window === 'undefined')
|
|
8
|
-
return 'http://localhost:4000';
|
|
9
|
-
// Vite only exposes VITE_* prefixed variables to client
|
|
10
|
-
// Use type assertion for import.meta.env which is available in Vite environments
|
|
11
|
-
const env = import.meta.env;
|
|
12
|
-
return env?.VITE_CMS_URL || env?.VITE_REVEALUI_PUBLIC_SERVER_URL || 'http://localhost:4000';
|
|
13
|
-
};
|
|
14
|
-
// Server-side (Node.js) - Can access all process.env variables
|
|
15
|
-
const getServerCMSURL = () => {
|
|
16
|
-
return (process.env.NEXT_PUBLIC_CMS_URL ||
|
|
17
|
-
process.env.REVEALUI_PUBLIC_SERVER_URL ||
|
|
18
|
-
process.env.VITE_CMS_URL || // Fallback for SSR
|
|
19
|
-
'http://localhost:4000');
|
|
20
|
-
};
|
|
21
|
-
const CMS_URL = typeof window !== 'undefined' ? getClientCMSURL() : getServerCMSURL();
|
|
22
|
-
/**
|
|
23
|
-
* Base function to fetch data from CMS API
|
|
24
|
-
* @param endpoint - API endpoint path (e.g., '/api/collections/pages')
|
|
25
|
-
* @param options - Fetch options including query parameters
|
|
26
|
-
* @returns Promise with parsed JSON response
|
|
27
|
-
*/
|
|
28
|
-
export async function fetchFromCMS(endpoint, options) {
|
|
29
|
-
const { params, ...fetchOptions } = options || {};
|
|
30
|
-
// Build URL with query parameters
|
|
31
|
-
const url = new URL(endpoint, CMS_URL);
|
|
32
|
-
if (params) {
|
|
33
|
-
Object.entries(params).forEach(([key, value]) => {
|
|
34
|
-
url.searchParams.append(key, String(value));
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
const response = await fetch(url.toString(), {
|
|
38
|
-
...fetchOptions,
|
|
39
|
-
headers: {
|
|
40
|
-
'Content-Type': 'application/json',
|
|
41
|
-
...fetchOptions.headers,
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
if (!response.ok) {
|
|
45
|
-
const errorText = await response.text().catch(() => 'Unknown error');
|
|
46
|
-
throw new Error(`CMS API error: ${response.status} ${response.statusText} - ${errorText}`);
|
|
47
|
-
}
|
|
48
|
-
return (await response.json());
|
|
49
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch banners from CMS
|
|
3
|
-
* Returns banners from the 'banners' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface BannerData {
|
|
6
|
-
id: number;
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
image?: string;
|
|
10
|
-
link?: string;
|
|
11
|
-
alt?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Fetches banners from CMS
|
|
15
|
-
* Maps Banner collection data to BannerData format
|
|
16
|
-
*/
|
|
17
|
-
export default function fetchBanner(): Promise<BannerData[]>;
|
|
18
|
-
//# sourceMappingURL=fetchBanner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchBanner.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchBanner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,wBAA8B,WAAW,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAgDjE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch banners from CMS
|
|
3
|
-
* Returns banners from the 'banners' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches banners from CMS
|
|
9
|
-
* Maps Banner collection data to BannerData format
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchBanner() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/banners', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
return (response.docs || []).map((doc) => {
|
|
20
|
-
// Extract image URL
|
|
21
|
-
let imageUrl = '';
|
|
22
|
-
if (doc.image) {
|
|
23
|
-
if (typeof doc.image === 'object' && 'url' in doc.image) {
|
|
24
|
-
imageUrl = doc.image.url || '';
|
|
25
|
-
}
|
|
26
|
-
else if (typeof doc.image === 'string') {
|
|
27
|
-
imageUrl = doc.image;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
id: doc.id,
|
|
32
|
-
title: doc.title || undefined,
|
|
33
|
-
description: doc.description || undefined,
|
|
34
|
-
image: imageUrl || undefined,
|
|
35
|
-
link: doc.link || undefined,
|
|
36
|
-
alt: doc.alt || undefined,
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
logger.error('Error fetching banners', { error });
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch cards from CMS
|
|
3
|
-
* Returns cards from the 'cards' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface CardData {
|
|
6
|
-
name: string;
|
|
7
|
-
image: string;
|
|
8
|
-
label: string;
|
|
9
|
-
cta: string;
|
|
10
|
-
href: string;
|
|
11
|
-
loading?: 'eager' | 'lazy';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Fetches cards from CMS
|
|
15
|
-
* Maps Card collection data to CardData format
|
|
16
|
-
*/
|
|
17
|
-
export default function fetchCard(): Promise<CardData[]>;
|
|
18
|
-
//# sourceMappingURL=fetchCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchCard.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchCard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAA8B,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAmD7D"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch cards from CMS
|
|
3
|
-
* Returns cards from the 'cards' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches cards from CMS
|
|
9
|
-
* Maps Card collection data to CardData format
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchCard() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/cards', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
return (response.docs || [])
|
|
20
|
-
.map((doc) => {
|
|
21
|
-
// Extract image URL
|
|
22
|
-
let imageUrl = '';
|
|
23
|
-
if (doc.image) {
|
|
24
|
-
if (typeof doc.image === 'object' && 'url' in doc.image) {
|
|
25
|
-
imageUrl = doc.image.url || '';
|
|
26
|
-
}
|
|
27
|
-
else if (typeof doc.image === 'string') {
|
|
28
|
-
imageUrl = doc.image;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
name: doc.name || '',
|
|
33
|
-
image: imageUrl,
|
|
34
|
-
label: doc.label || '',
|
|
35
|
-
cta: doc.cta || '',
|
|
36
|
-
href: doc.href || '/',
|
|
37
|
-
loading: doc.loading || 'eager',
|
|
38
|
-
};
|
|
39
|
-
})
|
|
40
|
-
.filter((card) => card.name && card.image); // Filter out incomplete cards
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
logger.error('Error fetching cards', { error });
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch events from CMS
|
|
3
|
-
* Returns events from the 'events' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface EventData {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
image?: string;
|
|
11
|
-
alt?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Fetches events from CMS
|
|
15
|
-
* Maps Event collection data to EventData format
|
|
16
|
-
*/
|
|
17
|
-
export default function fetchEvents(): Promise<EventData[]>;
|
|
18
|
-
//# sourceMappingURL=fetchEvents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchEvents.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchEvents.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,wBAA8B,WAAW,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAgDhE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch events from CMS
|
|
3
|
-
* Returns events from the 'events' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches events from CMS
|
|
9
|
-
* Maps Event collection data to EventData format
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchEvents() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/events', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
return (response.docs || []).map((doc) => {
|
|
20
|
-
// Extract image URL
|
|
21
|
-
let imageUrl = '';
|
|
22
|
-
if (doc.image) {
|
|
23
|
-
if (typeof doc.image === 'object' && 'url' in doc.image) {
|
|
24
|
-
imageUrl = doc.image.url || '';
|
|
25
|
-
}
|
|
26
|
-
else if (typeof doc.image === 'string') {
|
|
27
|
-
imageUrl = doc.image;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
id: doc.id,
|
|
32
|
-
title: doc.title || doc.name || 'Untitled Event',
|
|
33
|
-
name: doc.name || undefined,
|
|
34
|
-
description: doc.description || undefined,
|
|
35
|
-
image: imageUrl || undefined,
|
|
36
|
-
alt: doc.alt || undefined,
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
logger.error('Error fetching events', { error });
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch hero content from CMS
|
|
3
|
-
* Returns heroes from the 'heros' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface HeroData {
|
|
6
|
-
id: number;
|
|
7
|
-
image: string;
|
|
8
|
-
videos: string;
|
|
9
|
-
altText: string;
|
|
10
|
-
href: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Fetches hero content from CMS
|
|
14
|
-
* Maps Hero collection data to HeroData format
|
|
15
|
-
*/
|
|
16
|
-
export default function fetchHero(): Promise<HeroData[]>;
|
|
17
|
-
//# sourceMappingURL=fetchHero.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchHero.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchHero.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,wBAA8B,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAgE7D"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch hero content from CMS
|
|
3
|
-
* Returns heroes from the 'heros' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches hero content from CMS
|
|
9
|
-
* Maps Hero collection data to HeroData format
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchHero() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/heros', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
return (response.docs || [])
|
|
20
|
-
.map((doc) => {
|
|
21
|
-
// Extract image URL
|
|
22
|
-
let imageUrl = '';
|
|
23
|
-
if (doc.image) {
|
|
24
|
-
if (typeof doc.image === 'object' && 'url' in doc.image) {
|
|
25
|
-
imageUrl = doc.image.url || '';
|
|
26
|
-
}
|
|
27
|
-
else if (typeof doc.image === 'string') {
|
|
28
|
-
imageUrl = doc.image;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
// Extract video URL
|
|
32
|
-
let videoUrl = '';
|
|
33
|
-
if (doc.video) {
|
|
34
|
-
if (typeof doc.video === 'object' && 'url' in doc.video) {
|
|
35
|
-
videoUrl = doc.video.url || '';
|
|
36
|
-
}
|
|
37
|
-
else if (typeof doc.video === 'string') {
|
|
38
|
-
videoUrl = doc.video;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
id: doc.id,
|
|
43
|
-
image: imageUrl,
|
|
44
|
-
videos: videoUrl,
|
|
45
|
-
altText: doc.altText || '',
|
|
46
|
-
href: doc.href || '/',
|
|
47
|
-
};
|
|
48
|
-
})
|
|
49
|
-
.filter((hero) => hero.image || hero.videos); // Filter out incomplete heroes
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
logger.error('Error fetching heroes', { error });
|
|
53
|
-
return [];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch main info content from CMS
|
|
3
|
-
* Returns content from the 'contents' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface MainInfo {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle: string;
|
|
9
|
-
description: string;
|
|
10
|
-
image: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Fetches main info content from CMS
|
|
14
|
-
* Maps Content collection data to MainInfo format
|
|
15
|
-
*/
|
|
16
|
-
export default function fetchMainInfos(): Promise<MainInfo[]>;
|
|
17
|
-
//# sourceMappingURL=fetchMainInfos.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMainInfos.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchMainInfos.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,wBAA8B,cAAc,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CA2ClE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch main info content from CMS
|
|
3
|
-
* Returns content from the 'contents' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches main info content from CMS
|
|
9
|
-
* Maps Content collection data to MainInfo format
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchMainInfos() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/contents', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
// Transform CMS Content to MainInfo format
|
|
20
|
-
return (response.docs || []).map((doc) => {
|
|
21
|
-
// Extract image URL - handle different possible structures
|
|
22
|
-
let imageUrl = '';
|
|
23
|
-
if (doc.image) {
|
|
24
|
-
if (typeof doc.image === 'object' && 'url' in doc.image) {
|
|
25
|
-
imageUrl = doc.image.url || '';
|
|
26
|
-
}
|
|
27
|
-
else if (typeof doc.image === 'string') {
|
|
28
|
-
imageUrl = doc.image;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
id: doc.id,
|
|
33
|
-
title: doc.name || 'Untitled',
|
|
34
|
-
subtitle: doc.description?.split('.')[0] || '',
|
|
35
|
-
description: doc.description || '',
|
|
36
|
-
image: imageUrl,
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
logger.error('Error fetching main infos', { error });
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch videos from CMS
|
|
3
|
-
* Returns videos from the 'videos' collection
|
|
4
|
-
*/
|
|
5
|
-
export interface Video {
|
|
6
|
-
url: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Fetches videos from CMS
|
|
10
|
-
* Returns array of video URLs
|
|
11
|
-
*/
|
|
12
|
-
export default function fetchVideos(): Promise<Video[]>;
|
|
13
|
-
//# sourceMappingURL=fetchVideos.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchVideos.d.ts","sourceRoot":"","sources":["../../../src/client/http/fetchVideos.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;GAGG;AACH,wBAA8B,WAAW,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAkC5D"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch videos from CMS
|
|
3
|
-
* Returns videos from the 'videos' collection
|
|
4
|
-
*/
|
|
5
|
-
import { logger } from '@revealui/core/utils/logger';
|
|
6
|
-
import { fetchFromCMS } from './client.js';
|
|
7
|
-
/**
|
|
8
|
-
* Fetches videos from CMS
|
|
9
|
-
* Returns array of video URLs
|
|
10
|
-
*/
|
|
11
|
-
export default async function fetchVideos() {
|
|
12
|
-
try {
|
|
13
|
-
const response = await fetchFromCMS('/api/collections/videos', {
|
|
14
|
-
params: {
|
|
15
|
-
depth: 1,
|
|
16
|
-
limit: 10,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
return (response.docs || [])
|
|
20
|
-
.map((doc) => {
|
|
21
|
-
// Extract video URL from different possible structures
|
|
22
|
-
if (doc.url) {
|
|
23
|
-
return { url: doc.url };
|
|
24
|
-
}
|
|
25
|
-
if (doc.file?.url) {
|
|
26
|
-
return { url: doc.file.url };
|
|
27
|
-
}
|
|
28
|
-
return null;
|
|
29
|
-
})
|
|
30
|
-
.filter((video) => video !== null);
|
|
31
|
-
}
|
|
32
|
-
catch (error) {
|
|
33
|
-
logger.error('Error fetching videos', { error });
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP fetch functions for RevealUI CMS
|
|
3
|
-
* Exports all fetch functions for easy importing
|
|
4
|
-
*/
|
|
5
|
-
export type { FetchOptions } from './client.js';
|
|
6
|
-
export { fetchFromCMS } from './client.js';
|
|
7
|
-
export type { BannerData } from './fetchBanner.js';
|
|
8
|
-
export { default as fetchBanner } from './fetchBanner.js';
|
|
9
|
-
export type { CardData } from './fetchCard.js';
|
|
10
|
-
export { default as fetchCard } from './fetchCard.js';
|
|
11
|
-
export type { EventData } from './fetchEvents.js';
|
|
12
|
-
export { default as fetchEvents } from './fetchEvents.js';
|
|
13
|
-
export type { HeroData } from './fetchHero.js';
|
|
14
|
-
export { default as fetchHero } from './fetchHero.js';
|
|
15
|
-
export type { MainInfo } from './fetchMainInfos.js';
|
|
16
|
-
export { default as fetchMainInfos } from './fetchMainInfos.js';
|
|
17
|
-
export type { Video } from './fetchVideos.js';
|
|
18
|
-
export { default as fetchVideos } from './fetchVideos.js';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/http/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP fetch functions for RevealUI CMS
|
|
3
|
-
* Exports all fetch functions for easy importing
|
|
4
|
-
*/
|
|
5
|
-
export { fetchFromCMS } from './client.js';
|
|
6
|
-
export { default as fetchBanner } from './fetchBanner.js';
|
|
7
|
-
export { default as fetchCard } from './fetchCard.js';
|
|
8
|
-
export { default as fetchEvents } from './fetchEvents.js';
|
|
9
|
-
export { default as fetchHero } from './fetchHero.js';
|
|
10
|
-
export { default as fetchMainInfos } from './fetchMainInfos.js';
|
|
11
|
-
export { default as fetchVideos } from './fetchVideos.js';
|