@nivora/matrix 0.1.1 → 0.2.1
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +4 -4
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/builder/page.js +11 -11
- package/.next/server/app/builder/page.js.nft.json +1 -1
- package/.next/server/app/builder/page_client-reference-manifest.js +1 -1
- package/.next/server/app/guide/page.js.nft.json +1 -1
- package/.next/server/app/guide/page_client-reference-manifest.js +1 -1
- package/.next/server/app/matrix/page.js.nft.json +1 -1
- package/.next/server/app/matrix/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/releases/[id]/page.js +16 -16
- package/.next/server/app/releases/[id]/page.js.nft.json +1 -1
- package/.next/server/app/releases/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/releases/page.js +3 -3
- package/.next/server/app/releases/page.js.nft.json +1 -1
- package/.next/server/app/releases/page_client-reference-manifest.js +1 -1
- package/.next/server/app/specs/[id]/page.js +2 -2
- package/.next/server/app/specs/[id]/page.js.nft.json +1 -1
- package/.next/server/app/specs/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +4 -4
- package/.next/server/chunks/135.js +1 -1
- package/.next/server/chunks/530.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/app/builder/{page-e0a24ae820fa2c06.js → page-e8eb2c5950ee1495.js} +3 -3
- package/.next/static/chunks/app/releases/[id]/page-f13257c6f0e69a7c.js +1 -0
- package/.next/static/chunks/app/releases/{page-fc527101f56b36c5.js → page-050bb308276e178c.js} +1 -1
- package/.next/static/chunks/app/specs/[id]/page-a1e2672e95d4c9c6.js +1 -0
- package/bin/cli.js +82 -42
- package/bin/cli.ts +12 -12
- package/package.json +7 -2
- package/.next/diagnostics/build-diagnostics.json +0 -6
- package/.next/diagnostics/framework.json +0 -1
- package/.next/static/chunks/app/releases/[id]/page-ea66642a6a557b42.js +0 -1
- package/.next/static/chunks/app/specs/[id]/page-49293bb634997108.js +0 -1
- package/.next/trace +0 -11
- package/.next/trace-build +0 -1
- package/.next/types/app/builder/page.ts +0 -86
- package/.next/types/app/guide/page.ts +0 -86
- package/.next/types/app/layout.ts +0 -86
- package/.next/types/app/matrix/page.ts +0 -86
- package/.next/types/app/page.ts +0 -86
- package/.next/types/app/releases/[id]/page.ts +0 -86
- package/.next/types/app/releases/page.ts +0 -86
- package/.next/types/app/specs/[id]/page.ts +0 -86
- package/.next/types/package.json +0 -1
- package/.next/types/routes.d.ts +0 -63
- package/.next/types/validator.ts +0 -115
- /package/.next/static/{zmL75rl5Hq4TyiNVaXe8R → SmDoKluq2qozv2eyHXbUF}/_buildManifest.js +0 -0
- /package/.next/static/{zmL75rl5Hq4TyiNVaXe8R → SmDoKluq2qozv2eyHXbUF}/_ssgManifest.js +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// File: /Users/matthew/Code/github/p11o/machine/docs/src/app/specs/[id]/page.tsx
|
|
2
|
-
import * as entry from '../../../../../src/app/specs/[id]/page.js'
|
|
3
|
-
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
|
4
|
-
|
|
5
|
-
import type { PrefetchForTypeCheckInternal } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
-
|
|
7
|
-
type TEntry = typeof import('../../../../../src/app/specs/[id]/page.js')
|
|
8
|
-
|
|
9
|
-
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
-
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
-
: T
|
|
12
|
-
|
|
13
|
-
// Check that the entry is a valid entry
|
|
14
|
-
checkFields<Diff<{
|
|
15
|
-
default: Function
|
|
16
|
-
config?: {}
|
|
17
|
-
generateStaticParams?: Function
|
|
18
|
-
unstable_prefetch?: PrefetchForTypeCheckInternal
|
|
19
|
-
revalidate?: RevalidateRange<TEntry> | false
|
|
20
|
-
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
21
|
-
dynamicParams?: boolean
|
|
22
|
-
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
23
|
-
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
24
|
-
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
25
|
-
maxDuration?: number
|
|
26
|
-
|
|
27
|
-
metadata?: any
|
|
28
|
-
generateMetadata?: Function
|
|
29
|
-
viewport?: any
|
|
30
|
-
generateViewport?: Function
|
|
31
|
-
|
|
32
|
-
}, TEntry, ''>>()
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// Check the prop type of the entry function
|
|
36
|
-
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
|
|
37
|
-
|
|
38
|
-
// Check the arguments and return type of the generateMetadata function
|
|
39
|
-
if ('generateMetadata' in entry) {
|
|
40
|
-
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
41
|
-
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Check the arguments and return type of the generateViewport function
|
|
45
|
-
if ('generateViewport' in entry) {
|
|
46
|
-
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
47
|
-
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
51
|
-
if ('generateStaticParams' in entry) {
|
|
52
|
-
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
53
|
-
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface PageProps {
|
|
57
|
-
params?: Promise<SegmentParams>
|
|
58
|
-
searchParams?: Promise<any>
|
|
59
|
-
}
|
|
60
|
-
export interface LayoutProps {
|
|
61
|
-
children?: React.ReactNode
|
|
62
|
-
|
|
63
|
-
params?: Promise<SegmentParams>
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// =============
|
|
67
|
-
// Utility types
|
|
68
|
-
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
69
|
-
|
|
70
|
-
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
71
|
-
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
72
|
-
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
73
|
-
|
|
74
|
-
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
75
|
-
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
76
|
-
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
81
|
-
|
|
82
|
-
// https://github.com/sindresorhus/type-fest
|
|
83
|
-
type Numeric = number | bigint
|
|
84
|
-
type Zero = 0 | 0n
|
|
85
|
-
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
86
|
-
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
package/.next/types/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type": "module"}
|
package/.next/types/routes.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// This file is generated automatically by Next.js
|
|
2
|
-
// Do not edit this file manually
|
|
3
|
-
|
|
4
|
-
type AppRoutes = "/" | "/builder" | "/guide" | "/matrix" | "/releases" | "/releases/[id]" | "/specs/[id]"
|
|
5
|
-
type PageRoutes = never
|
|
6
|
-
type LayoutRoutes = "/"
|
|
7
|
-
type RedirectRoutes = never
|
|
8
|
-
type RewriteRoutes = never
|
|
9
|
-
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
interface ParamMap {
|
|
13
|
-
"/": {}
|
|
14
|
-
"/builder": {}
|
|
15
|
-
"/guide": {}
|
|
16
|
-
"/matrix": {}
|
|
17
|
-
"/releases": {}
|
|
18
|
-
"/releases/[id]": { "id": string; }
|
|
19
|
-
"/specs/[id]": { "id": string; }
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type ParamsOf<Route extends Routes> = ParamMap[Route]
|
|
24
|
-
|
|
25
|
-
interface LayoutSlotMap {
|
|
26
|
-
"/": never
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap }
|
|
31
|
-
|
|
32
|
-
declare global {
|
|
33
|
-
/**
|
|
34
|
-
* Props for Next.js App Router page components
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* export default function Page(props: PageProps<'/blog/[slug]'>) {
|
|
38
|
-
* const { slug } = await props.params
|
|
39
|
-
* return <div>Blog post: {slug}</div>
|
|
40
|
-
* }
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
interface PageProps<AppRoute extends AppRoutes> {
|
|
44
|
-
params: Promise<ParamMap[AppRoute]>
|
|
45
|
-
searchParams: Promise<Record<string, string | string[] | undefined>>
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Props for Next.js App Router layout components
|
|
50
|
-
* @example
|
|
51
|
-
* ```tsx
|
|
52
|
-
* export default function Layout(props: LayoutProps<'/dashboard'>) {
|
|
53
|
-
* return <div>{props.children}</div>
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
type LayoutProps<LayoutRoute extends LayoutRoutes> = {
|
|
58
|
-
params: Promise<ParamMap[LayoutRoute]>
|
|
59
|
-
children: React.ReactNode
|
|
60
|
-
} & {
|
|
61
|
-
[K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
|
|
62
|
-
}
|
|
63
|
-
}
|
package/.next/types/validator.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
// This file is generated automatically by Next.js
|
|
2
|
-
// Do not edit this file manually
|
|
3
|
-
// This file validates that all pages and layouts export the correct types
|
|
4
|
-
|
|
5
|
-
import type { AppRoutes, LayoutRoutes, ParamMap } from "./routes.js"
|
|
6
|
-
import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
|
|
7
|
-
|
|
8
|
-
type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
|
|
9
|
-
default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
10
|
-
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
11
|
-
generateMetadata?: (
|
|
12
|
-
props: { params: Promise<ParamMap[Route]> } & any,
|
|
13
|
-
parent: ResolvingMetadata
|
|
14
|
-
) => Promise<any> | any
|
|
15
|
-
generateViewport?: (
|
|
16
|
-
props: { params: Promise<ParamMap[Route]> } & any,
|
|
17
|
-
parent: ResolvingViewport
|
|
18
|
-
) => Promise<any> | any
|
|
19
|
-
metadata?: any
|
|
20
|
-
viewport?: any
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
|
|
24
|
-
default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
25
|
-
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
26
|
-
generateMetadata?: (
|
|
27
|
-
props: { params: Promise<ParamMap[Route]> } & any,
|
|
28
|
-
parent: ResolvingMetadata
|
|
29
|
-
) => Promise<any> | any
|
|
30
|
-
generateViewport?: (
|
|
31
|
-
props: { params: Promise<ParamMap[Route]> } & any,
|
|
32
|
-
parent: ResolvingViewport
|
|
33
|
-
) => Promise<any> | any
|
|
34
|
-
metadata?: any
|
|
35
|
-
viewport?: any
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// Validate ../../src/app/builder/page.tsx
|
|
40
|
-
{
|
|
41
|
-
type __IsExpected<Specific extends AppPageConfig<"/builder">> = Specific
|
|
42
|
-
const handler = {} as typeof import("../../src/app/builder/page.js")
|
|
43
|
-
type __Check = __IsExpected<typeof handler>
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
type __Unused = __Check
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Validate ../../src/app/guide/page.tsx
|
|
49
|
-
{
|
|
50
|
-
type __IsExpected<Specific extends AppPageConfig<"/guide">> = Specific
|
|
51
|
-
const handler = {} as typeof import("../../src/app/guide/page.js")
|
|
52
|
-
type __Check = __IsExpected<typeof handler>
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
type __Unused = __Check
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Validate ../../src/app/matrix/page.tsx
|
|
58
|
-
{
|
|
59
|
-
type __IsExpected<Specific extends AppPageConfig<"/matrix">> = Specific
|
|
60
|
-
const handler = {} as typeof import("../../src/app/matrix/page.js")
|
|
61
|
-
type __Check = __IsExpected<typeof handler>
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
type __Unused = __Check
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Validate ../../src/app/page.tsx
|
|
67
|
-
{
|
|
68
|
-
type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
|
|
69
|
-
const handler = {} as typeof import("../../src/app/page.js")
|
|
70
|
-
type __Check = __IsExpected<typeof handler>
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
type __Unused = __Check
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Validate ../../src/app/releases/[id]/page.tsx
|
|
76
|
-
{
|
|
77
|
-
type __IsExpected<Specific extends AppPageConfig<"/releases/[id]">> = Specific
|
|
78
|
-
const handler = {} as typeof import("../../src/app/releases/[id]/page.js")
|
|
79
|
-
type __Check = __IsExpected<typeof handler>
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
type __Unused = __Check
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Validate ../../src/app/releases/page.tsx
|
|
85
|
-
{
|
|
86
|
-
type __IsExpected<Specific extends AppPageConfig<"/releases">> = Specific
|
|
87
|
-
const handler = {} as typeof import("../../src/app/releases/page.js")
|
|
88
|
-
type __Check = __IsExpected<typeof handler>
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
type __Unused = __Check
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Validate ../../src/app/specs/[id]/page.tsx
|
|
94
|
-
{
|
|
95
|
-
type __IsExpected<Specific extends AppPageConfig<"/specs/[id]">> = Specific
|
|
96
|
-
const handler = {} as typeof import("../../src/app/specs/[id]/page.js")
|
|
97
|
-
type __Check = __IsExpected<typeof handler>
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
type __Unused = __Check
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
// Validate ../../src/app/layout.tsx
|
|
109
|
-
{
|
|
110
|
-
type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
|
|
111
|
-
const handler = {} as typeof import("../../src/app/layout.js")
|
|
112
|
-
type __Check = __IsExpected<typeof handler>
|
|
113
|
-
// @ts-ignore
|
|
114
|
-
type __Unused = __Check
|
|
115
|
-
}
|
|
File without changes
|
|
File without changes
|