@nuxt-customer-portal/core 0.8.3 → 0.8.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @nuxt-customer-portal/core
2
2
 
3
+ ## 0.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Declare the ordered OpenAPI response contract explicitly to avoid recursive Nitro route inference in host applications.
8
+
9
+ - 170c58f: Add private account-free order pages with purchased downloads, native media playback, and supported external video previews. Include shareable order links in administration and confirmations, preserve purchase access checks, support inline media delivery with byte ranges, and provide a Store texts editor for English/Dutch checkout and order-page wording.
10
+
11
+ Support product-specific purchase introductions with store-default inheritance and selected-product previews; other order-page wording remains shared per language.
12
+
3
13
  ## 0.8.3
4
14
 
5
15
  ## 0.8.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-customer-portal/core",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://nuxt-customer-portal.com",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  id: 'core',
3
- version: '0.8.3',
3
+ version: '0.8.4',
4
4
  source: '@nuxt-customer-portal/core',
5
5
  dependsOn: [],
6
6
  schema: './server/db/schema/index.ts',
@@ -13,8 +13,10 @@ defineRouteMeta({
13
13
  }
14
14
  })
15
15
 
16
- export default defineEventHandler(async (event) => {
17
- const document = await event.$fetch<OpenApiDocument>('/api-docs/openapi.raw.json')
16
+ export default defineEventHandler(async (event): Promise<OpenApiDocument> => {
17
+ const document: OpenApiDocument = await event.$fetch<OpenApiDocument, '/api-docs/openapi.raw.json'>(
18
+ '/api-docs/openapi.raw.json'
19
+ )
18
20
  const authDocument = (await auth.api.generateOpenAPISchema()) as unknown as OpenApiDocument
19
21
  return orderOpenApiDocument(enrichOpenApiContracts(mergeBetterAuthOpenApi(document, authDocument)))
20
22
  })
@@ -1,10 +1,11 @@
1
1
  export function isPublicStoreRoute(method: string, pathname: string) {
2
2
  return (
3
3
  (method === 'GET' &&
4
- (/^\/api\/store\/purchases\/[^/]+(?:\/files\/[^/]+)?$/.test(pathname) ||
4
+ (/^\/api\/store\/purchases\/[^/]+(?:\/files\/[^/]+|\/details)?$/.test(pathname) ||
5
5
  /^\/api\/store\/v1\/products(?:\/[^/]+)?$/.test(pathname) ||
6
6
  /^\/api\/store\/(product|media)\/[^/]+$/.test(pathname) ||
7
7
  /^\/api\/store\/planning\/[^/]+\/availability$/.test(pathname) ||
8
+ pathname === '/api/store/page-texts/order-details' ||
8
9
  pathname === '/api/store/planning/hold' ||
9
10
  /^\/api\/store\/sandbox-checkout\/[^/]+$/.test(pathname))) ||
10
11
  (method === 'POST' &&