@pinerohit11/testwidget 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.next/app-build-manifest.json +15 -0
- package/.next/build-manifest.json +20 -0
- package/.next/cache/.rscinfo +1 -0
- package/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/.next/cache/webpack/client-development/10.pack.gz +0 -0
- package/.next/cache/webpack/client-development/11.pack.gz +0 -0
- package/.next/cache/webpack/client-development/2.pack.gz +0 -0
- package/.next/cache/webpack/client-development/3.pack.gz +0 -0
- package/.next/cache/webpack/client-development/4.pack.gz +0 -0
- package/.next/cache/webpack/client-development/5.pack.gz +0 -0
- package/.next/cache/webpack/client-development/6.pack.gz +0 -0
- package/.next/cache/webpack/client-development/7.pack.gz +0 -0
- package/.next/cache/webpack/client-development/8.pack.gz +0 -0
- package/.next/cache/webpack/client-development/9.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
- package/.next/cache/webpack/server-development/0.pack.gz +0 -0
- package/.next/cache/webpack/server-development/1.pack.gz +0 -0
- package/.next/cache/webpack/server-development/10.pack.gz +0 -0
- package/.next/cache/webpack/server-development/11.pack.gz +0 -0
- package/.next/cache/webpack/server-development/12.pack.gz +0 -0
- package/.next/cache/webpack/server-development/13.pack.gz +0 -0
- package/.next/cache/webpack/server-development/14.pack.gz +0 -0
- package/.next/cache/webpack/server-development/2.pack.gz +0 -0
- package/.next/cache/webpack/server-development/3.pack.gz +0 -0
- package/.next/cache/webpack/server-development/4.pack.gz +0 -0
- package/.next/cache/webpack/server-development/5.pack.gz +0 -0
- package/.next/cache/webpack/server-development/6.pack.gz +0 -0
- package/.next/cache/webpack/server-development/7.pack.gz +0 -0
- package/.next/cache/webpack/server-development/8.pack.gz +0 -0
- package/.next/cache/webpack/server-development/9.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
- package/.next/package.json +1 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/server/app/favicon.ico/route.js +86 -0
- package/.next/server/app/page.js +383 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +4 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +22 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/server/vendor-chunks/@swc.js +55 -0
- package/.next/server/vendor-chunks/asynckit.js +114 -0
- package/.next/server/vendor-chunks/axios.js +555 -0
- package/.next/server/vendor-chunks/combined-stream.js +24 -0
- package/.next/server/vendor-chunks/debug.js +54 -0
- package/.next/server/vendor-chunks/delayed-stream.js +24 -0
- package/.next/server/vendor-chunks/follow-redirects.js +34 -0
- package/.next/server/vendor-chunks/form-data.js +34 -0
- package/.next/server/vendor-chunks/has-flag.js +25 -0
- package/.next/server/vendor-chunks/mime-db.js +35 -0
- package/.next/server/vendor-chunks/mime-types.js +25 -0
- package/.next/server/vendor-chunks/ms.js +24 -0
- package/.next/server/vendor-chunks/next.js +3185 -0
- package/.next/server/vendor-chunks/proxy-from-env.js +25 -0
- package/.next/server/vendor-chunks/supports-color.js +25 -0
- package/.next/server/webpack-runtime.js +220 -0
- package/.next/static/chunks/app/layout.js +146 -0
- package/.next/static/chunks/app/page.js +610 -0
- package/.next/static/chunks/app-pages-internals.js +193 -0
- package/.next/static/chunks/main-app.js +2398 -0
- package/.next/static/chunks/polyfills.js +1 -0
- package/.next/static/chunks/webpack.js +1411 -0
- package/.next/static/css/app/layout.css +713 -0
- package/.next/static/development/_buildManifest.js +1 -0
- package/.next/static/development/_ssgManifest.js +1 -0
- package/.next/static/media/4473ecc91f70f139-s.p.woff +0 -0
- package/.next/static/media/463dafcda517f24f-s.p.woff +0 -0
- package/.next/static/webpack/0463e0d10a76f0e1.webpack.hot-update.json +1 -0
- package/.next/static/webpack/14eb1ee43b84ca5f.webpack.hot-update.json +1 -0
- package/.next/static/webpack/1f1fe21203e4c68b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/213fdb98a15e3455.webpack.hot-update.json +1 -0
- package/.next/static/webpack/228b69a2a9a20202.webpack.hot-update.json +1 -0
- package/.next/static/webpack/255aea9c6475b746.webpack.hot-update.json +1 -0
- package/.next/static/webpack/2d35c83f0037d0e3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/309e2d9634152b60.webpack.hot-update.json +1 -0
- package/.next/static/webpack/329e12e211658503.webpack.hot-update.json +1 -0
- package/.next/static/webpack/456a8cdc4e32bb1b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/4a9375b8e793c38e.webpack.hot-update.json +1 -0
- package/.next/static/webpack/500c5340fb4c6cd5.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5031cfaa2d3d892d.webpack.hot-update.json +1 -0
- package/.next/static/webpack/51f0e2a03e8d18a6.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5ad56258b0e90bef.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5c7e83ae2adb882e.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5c8dada5acec56f7.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5e709b5694e5ad26.webpack.hot-update.json +1 -0
- package/.next/static/webpack/6246449706d4b449.webpack.hot-update.json +1 -0
- package/.next/static/webpack/633457081244afec._.hot-update.json +1 -0
- package/.next/static/webpack/6498563004a57942.webpack.hot-update.json +1 -0
- package/.next/static/webpack/65c43818d6f690fe.webpack.hot-update.json +1 -0
- package/.next/static/webpack/681ce36f0645d689.webpack.hot-update.json +1 -0
- package/.next/static/webpack/6f00711e3d258954.webpack.hot-update.json +1 -0
- package/.next/static/webpack/81f6646c28a82804.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8522f92ca02de0c8.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8894e91a6b3fd5cb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/893ddc36c19de1ea.webpack.hot-update.json +1 -0
- package/.next/static/webpack/896c5501cdf537b3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8cc442b31ec27e60.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8ed684f639abe58b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/97615cc2d368fba4.webpack.hot-update.json +1 -0
- package/.next/static/webpack/9775f51aeb80d3b2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/9bbf208246a2eebb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/a74f1afad4b7a8a2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/aed2ae614f6605ed.webpack.hot-update.json +1 -0
- package/.next/static/webpack/app/layout.228b69a2a9a20202.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.2d35c83f0037d0e3.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.456a8cdc4e32bb1b.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.8894e91a6b3fd5cb.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.a74f1afad4b7a8a2.hot-update.js +98 -0
- package/.next/static/webpack/app/layout.bb4485d5c54b0ed1.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.e5533e94660e066c.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.eabe83a6bd680d72.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.f3f79b681eb03ce7.hot-update.js +22 -0
- package/.next/static/webpack/app/page.0463e0d10a76f0e1.hot-update.js +22 -0
- package/.next/static/webpack/app/page.14eb1ee43b84ca5f.hot-update.js +22 -0
- package/.next/static/webpack/app/page.1f1fe21203e4c68b.hot-update.js +21 -0
- package/.next/static/webpack/app/page.213fdb98a15e3455.hot-update.js +22 -0
- package/.next/static/webpack/app/page.255aea9c6475b746.hot-update.js +22 -0
- package/.next/static/webpack/app/page.309e2d9634152b60.hot-update.js +22 -0
- package/.next/static/webpack/app/page.329e12e211658503.hot-update.js +22 -0
- package/.next/static/webpack/app/page.4a9375b8e793c38e.hot-update.js +22 -0
- package/.next/static/webpack/app/page.500c5340fb4c6cd5.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5031cfaa2d3d892d.hot-update.js +22 -0
- package/.next/static/webpack/app/page.51f0e2a03e8d18a6.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5ad56258b0e90bef.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5c7e83ae2adb882e.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5c8dada5acec56f7.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5e709b5694e5ad26.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6246449706d4b449.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6498563004a57942.hot-update.js +22 -0
- package/.next/static/webpack/app/page.65c43818d6f690fe.hot-update.js +22 -0
- package/.next/static/webpack/app/page.681ce36f0645d689.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6f00711e3d258954.hot-update.js +22 -0
- package/.next/static/webpack/app/page.81f6646c28a82804.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8522f92ca02de0c8.hot-update.js +54 -0
- package/.next/static/webpack/app/page.893ddc36c19de1ea.hot-update.js +22 -0
- package/.next/static/webpack/app/page.896c5501cdf537b3.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8cc442b31ec27e60.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8ed684f639abe58b.hot-update.js +603 -0
- package/.next/static/webpack/app/page.97615cc2d368fba4.hot-update.js +22 -0
- package/.next/static/webpack/app/page.9775f51aeb80d3b2.hot-update.js +22 -0
- package/.next/static/webpack/app/page.9bbf208246a2eebb.hot-update.js +22 -0
- package/.next/static/webpack/app/page.aed2ae614f6605ed.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b4b25d4db23dbc5a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b728482f9b82d921.hot-update.js +571 -0
- package/.next/static/webpack/app/page.b7a42026022db1f3.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b90118a4d57e76ad.hot-update.js +54 -0
- package/.next/static/webpack/app/page.c0a3bb4128bc91cb.hot-update.js +22 -0
- package/.next/static/webpack/app/page.c5880161e6d8c38b.hot-update.js +22 -0
- package/.next/static/webpack/app/page.c91faac87e6e5e7d.hot-update.js +21 -0
- package/.next/static/webpack/app/page.cb281b61855d3afc.hot-update.js +22 -0
- package/.next/static/webpack/app/page.cc723ec7106788b2.hot-update.js +22 -0
- package/.next/static/webpack/app/page.d00ead7a6d6dd27a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.d5492b6ce3aff19a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.e1a0b7850e69b555.hot-update.js +22 -0
- package/.next/static/webpack/app/page.e6094793daace46f.hot-update.js +22 -0
- package/.next/static/webpack/app/page.ef9190246958611b.hot-update.js +22 -0
- package/.next/static/webpack/b4b25d4db23dbc5a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b728482f9b82d921.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b7a42026022db1f3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b90118a4d57e76ad.webpack.hot-update.json +1 -0
- package/.next/static/webpack/bb4485d5c54b0ed1.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c0a3bb4128bc91cb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c5880161e6d8c38b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c91faac87e6e5e7d.webpack.hot-update.json +1 -0
- package/.next/static/webpack/cb281b61855d3afc.webpack.hot-update.json +1 -0
- package/.next/static/webpack/cc723ec7106788b2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/d00ead7a6d6dd27a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/d5492b6ce3aff19a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e1a0b7850e69b555.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e5533e94660e066c.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e6094793daace46f.webpack.hot-update.json +1 -0
- package/.next/static/webpack/eabe83a6bd680d72.webpack.hot-update.json +1 -0
- package/.next/static/webpack/ef9190246958611b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/f3f79b681eb03ce7.webpack.hot-update.json +1 -0
- package/.next/static/webpack/webpack.0463e0d10a76f0e1.hot-update.js +18 -0
- package/.next/static/webpack/webpack.14eb1ee43b84ca5f.hot-update.js +18 -0
- package/.next/static/webpack/webpack.1f1fe21203e4c68b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.213fdb98a15e3455.hot-update.js +18 -0
- package/.next/static/webpack/webpack.228b69a2a9a20202.hot-update.js +18 -0
- package/.next/static/webpack/webpack.255aea9c6475b746.hot-update.js +18 -0
- package/.next/static/webpack/webpack.2d35c83f0037d0e3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.309e2d9634152b60.hot-update.js +18 -0
- package/.next/static/webpack/webpack.329e12e211658503.hot-update.js +18 -0
- package/.next/static/webpack/webpack.456a8cdc4e32bb1b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.4a9375b8e793c38e.hot-update.js +18 -0
- package/.next/static/webpack/webpack.500c5340fb4c6cd5.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5031cfaa2d3d892d.hot-update.js +18 -0
- package/.next/static/webpack/webpack.51f0e2a03e8d18a6.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5ad56258b0e90bef.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5c7e83ae2adb882e.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5c8dada5acec56f7.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5e709b5694e5ad26.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6246449706d4b449.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6498563004a57942.hot-update.js +18 -0
- package/.next/static/webpack/webpack.65c43818d6f690fe.hot-update.js +18 -0
- package/.next/static/webpack/webpack.681ce36f0645d689.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6f00711e3d258954.hot-update.js +18 -0
- package/.next/static/webpack/webpack.81f6646c28a82804.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8522f92ca02de0c8.hot-update.js +30 -0
- package/.next/static/webpack/webpack.8894e91a6b3fd5cb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.893ddc36c19de1ea.hot-update.js +18 -0
- package/.next/static/webpack/webpack.896c5501cdf537b3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8cc442b31ec27e60.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8ed684f639abe58b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.97615cc2d368fba4.hot-update.js +18 -0
- package/.next/static/webpack/webpack.9775f51aeb80d3b2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.9bbf208246a2eebb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.a74f1afad4b7a8a2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.aed2ae614f6605ed.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b4b25d4db23dbc5a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b728482f9b82d921.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b7a42026022db1f3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b90118a4d57e76ad.hot-update.js +30 -0
- package/.next/static/webpack/webpack.bb4485d5c54b0ed1.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c0a3bb4128bc91cb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c5880161e6d8c38b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c91faac87e6e5e7d.hot-update.js +18 -0
- package/.next/static/webpack/webpack.cb281b61855d3afc.hot-update.js +18 -0
- package/.next/static/webpack/webpack.cc723ec7106788b2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.d00ead7a6d6dd27a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.d5492b6ce3aff19a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e1a0b7850e69b555.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e5533e94660e066c.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e6094793daace46f.hot-update.js +18 -0
- package/.next/static/webpack/webpack.eabe83a6bd680d72.hot-update.js +18 -0
- package/.next/static/webpack/webpack.ef9190246958611b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.f3f79b681eb03ce7.hot-update.js +18 -0
- package/.next/trace +116 -0
- package/.next/types/app/layout.ts +84 -0
- package/.next/types/app/page.ts +84 -0
- package/.next/types/cache-life.d.ts +139 -0
- package/.next/types/package.json +1 -0
- package/.vscode/settings.json +22 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +415 -4
- package/dist/index.mjs +418 -4
- package/global.d.ts +3 -0
- package/package.json +4 -3
@@ -0,0 +1,84 @@
|
|
1
|
+
// File: C:\Users\Pinesucceed\Desktop\WorkSpace\testwidget\src\app\layout.tsx
|
2
|
+
import * as entry from '../../../src/app/layout.js'
|
3
|
+
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
4
|
+
|
5
|
+
type TEntry = typeof import('../../../src/app/layout.js')
|
6
|
+
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
9
|
+
: T
|
10
|
+
|
11
|
+
// Check that the entry is a valid entry
|
12
|
+
checkFields<Diff<{
|
13
|
+
default: Function
|
14
|
+
config?: {}
|
15
|
+
generateStaticParams?: Function
|
16
|
+
revalidate?: RevalidateRange<TEntry> | false
|
17
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
18
|
+
dynamicParams?: boolean
|
19
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
20
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
21
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
22
|
+
maxDuration?: number
|
23
|
+
|
24
|
+
metadata?: any
|
25
|
+
generateMetadata?: Function
|
26
|
+
viewport?: any
|
27
|
+
generateViewport?: Function
|
28
|
+
experimental_ppr?: boolean
|
29
|
+
|
30
|
+
}, TEntry, ''>>()
|
31
|
+
|
32
|
+
|
33
|
+
// Check the prop type of the entry function
|
34
|
+
checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>()
|
35
|
+
|
36
|
+
// Check the arguments and return type of the generateMetadata function
|
37
|
+
if ('generateMetadata' in entry) {
|
38
|
+
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
39
|
+
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
40
|
+
}
|
41
|
+
|
42
|
+
// Check the arguments and return type of the generateViewport function
|
43
|
+
if ('generateViewport' in entry) {
|
44
|
+
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
45
|
+
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
46
|
+
}
|
47
|
+
|
48
|
+
// Check the arguments and return type of the generateStaticParams function
|
49
|
+
if ('generateStaticParams' in entry) {
|
50
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
51
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
52
|
+
}
|
53
|
+
|
54
|
+
export interface PageProps {
|
55
|
+
params?: Promise<SegmentParams>
|
56
|
+
searchParams?: Promise<any>
|
57
|
+
}
|
58
|
+
export interface LayoutProps {
|
59
|
+
children?: React.ReactNode
|
60
|
+
|
61
|
+
params?: Promise<SegmentParams>
|
62
|
+
}
|
63
|
+
|
64
|
+
// =============
|
65
|
+
// Utility types
|
66
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
67
|
+
|
68
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
69
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
70
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
71
|
+
|
72
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
73
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
74
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
79
|
+
|
80
|
+
// https://github.com/sindresorhus/type-fest
|
81
|
+
type Numeric = number | bigint
|
82
|
+
type Zero = 0 | 0n
|
83
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
84
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
@@ -0,0 +1,84 @@
|
|
1
|
+
// File: C:\Users\Pinesucceed\Desktop\WorkSpace\testwidget\src\app\page.tsx
|
2
|
+
import * as entry from '../../../src/app/page.js'
|
3
|
+
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
4
|
+
|
5
|
+
type TEntry = typeof import('../../../src/app/page.js')
|
6
|
+
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
9
|
+
: T
|
10
|
+
|
11
|
+
// Check that the entry is a valid entry
|
12
|
+
checkFields<Diff<{
|
13
|
+
default: Function
|
14
|
+
config?: {}
|
15
|
+
generateStaticParams?: Function
|
16
|
+
revalidate?: RevalidateRange<TEntry> | false
|
17
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
18
|
+
dynamicParams?: boolean
|
19
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
20
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
21
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
22
|
+
maxDuration?: number
|
23
|
+
|
24
|
+
metadata?: any
|
25
|
+
generateMetadata?: Function
|
26
|
+
viewport?: any
|
27
|
+
generateViewport?: Function
|
28
|
+
experimental_ppr?: boolean
|
29
|
+
|
30
|
+
}, TEntry, ''>>()
|
31
|
+
|
32
|
+
|
33
|
+
// Check the prop type of the entry function
|
34
|
+
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
|
35
|
+
|
36
|
+
// Check the arguments and return type of the generateMetadata function
|
37
|
+
if ('generateMetadata' in entry) {
|
38
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
39
|
+
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
40
|
+
}
|
41
|
+
|
42
|
+
// Check the arguments and return type of the generateViewport function
|
43
|
+
if ('generateViewport' in entry) {
|
44
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
45
|
+
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
46
|
+
}
|
47
|
+
|
48
|
+
// Check the arguments and return type of the generateStaticParams function
|
49
|
+
if ('generateStaticParams' in entry) {
|
50
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
51
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
52
|
+
}
|
53
|
+
|
54
|
+
export interface PageProps {
|
55
|
+
params?: Promise<SegmentParams>
|
56
|
+
searchParams?: Promise<any>
|
57
|
+
}
|
58
|
+
export interface LayoutProps {
|
59
|
+
children?: React.ReactNode
|
60
|
+
|
61
|
+
params?: Promise<SegmentParams>
|
62
|
+
}
|
63
|
+
|
64
|
+
// =============
|
65
|
+
// Utility types
|
66
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
67
|
+
|
68
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
69
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
70
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
71
|
+
|
72
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
73
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
74
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
79
|
+
|
80
|
+
// https://github.com/sindresorhus/type-fest
|
81
|
+
type Numeric = number | bigint
|
82
|
+
type Zero = 0 | 0n
|
83
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
84
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// Type definitions for Next.js cacheLife configs
|
2
|
+
|
3
|
+
declare module 'next/cache' {
|
4
|
+
export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache'
|
5
|
+
export {
|
6
|
+
revalidateTag,
|
7
|
+
revalidatePath,
|
8
|
+
} from 'next/dist/server/web/spec-extension/revalidate'
|
9
|
+
export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store'
|
10
|
+
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Cache this `"use cache"` for a timespan defined by the `"default"` profile.
|
14
|
+
* ```
|
15
|
+
* stale: 300 seconds (5 minutes)
|
16
|
+
* revalidate: 900 seconds (15 minutes)
|
17
|
+
* expire: never
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
21
|
+
* If the server receives a new request after 15 minutes, start revalidating new values in the background.
|
22
|
+
* It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
|
23
|
+
*/
|
24
|
+
export function unstable_cacheLife(profile: "default"): void
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Cache this `"use cache"` for a timespan defined by the `"seconds"` profile.
|
28
|
+
* ```
|
29
|
+
* stale: 0 seconds
|
30
|
+
* revalidate: 1 seconds
|
31
|
+
* expire: 60 seconds (1 minute)
|
32
|
+
* ```
|
33
|
+
*
|
34
|
+
* This cache may be stale on clients for 0 seconds before checking with the server.
|
35
|
+
* If the server receives a new request after 1 seconds, start revalidating new values in the background.
|
36
|
+
* If this entry has no traffic for 1 minute it will expire. The next request will recompute it.
|
37
|
+
*/
|
38
|
+
export function unstable_cacheLife(profile: "seconds"): void
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Cache this `"use cache"` for a timespan defined by the `"minutes"` profile.
|
42
|
+
* ```
|
43
|
+
* stale: 300 seconds (5 minutes)
|
44
|
+
* revalidate: 60 seconds (1 minute)
|
45
|
+
* expire: 3600 seconds (1 hour)
|
46
|
+
* ```
|
47
|
+
*
|
48
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
49
|
+
* If the server receives a new request after 1 minute, start revalidating new values in the background.
|
50
|
+
* If this entry has no traffic for 1 hour it will expire. The next request will recompute it.
|
51
|
+
*/
|
52
|
+
export function unstable_cacheLife(profile: "minutes"): void
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Cache this `"use cache"` for a timespan defined by the `"hours"` profile.
|
56
|
+
* ```
|
57
|
+
* stale: 300 seconds (5 minutes)
|
58
|
+
* revalidate: 3600 seconds (1 hour)
|
59
|
+
* expire: 86400 seconds (1 day)
|
60
|
+
* ```
|
61
|
+
*
|
62
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
63
|
+
* If the server receives a new request after 1 hour, start revalidating new values in the background.
|
64
|
+
* If this entry has no traffic for 1 day it will expire. The next request will recompute it.
|
65
|
+
*/
|
66
|
+
export function unstable_cacheLife(profile: "hours"): void
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Cache this `"use cache"` for a timespan defined by the `"days"` profile.
|
70
|
+
* ```
|
71
|
+
* stale: 300 seconds (5 minutes)
|
72
|
+
* revalidate: 86400 seconds (1 day)
|
73
|
+
* expire: 604800 seconds (1 week)
|
74
|
+
* ```
|
75
|
+
*
|
76
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
77
|
+
* If the server receives a new request after 1 day, start revalidating new values in the background.
|
78
|
+
* If this entry has no traffic for 1 week it will expire. The next request will recompute it.
|
79
|
+
*/
|
80
|
+
export function unstable_cacheLife(profile: "days"): void
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Cache this `"use cache"` for a timespan defined by the `"weeks"` profile.
|
84
|
+
* ```
|
85
|
+
* stale: 300 seconds (5 minutes)
|
86
|
+
* revalidate: 604800 seconds (1 week)
|
87
|
+
* expire: 2592000 seconds (30 days)
|
88
|
+
* ```
|
89
|
+
*
|
90
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
91
|
+
* If the server receives a new request after 1 week, start revalidating new values in the background.
|
92
|
+
* If this entry has no traffic for 30 days it will expire. The next request will recompute it.
|
93
|
+
*/
|
94
|
+
export function unstable_cacheLife(profile: "weeks"): void
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Cache this `"use cache"` for a timespan defined by the `"max"` profile.
|
98
|
+
* ```
|
99
|
+
* stale: 300 seconds (5 minutes)
|
100
|
+
* revalidate: 2592000 seconds (30 days)
|
101
|
+
* expire: never
|
102
|
+
* ```
|
103
|
+
*
|
104
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
105
|
+
* If the server receives a new request after 30 days, start revalidating new values in the background.
|
106
|
+
* It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
|
107
|
+
*/
|
108
|
+
export function unstable_cacheLife(profile: "max"): void
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Cache this `"use cache"` using a custom timespan.
|
112
|
+
* ```
|
113
|
+
* stale: ... // seconds
|
114
|
+
* revalidate: ... // seconds
|
115
|
+
* expire: ... // seconds
|
116
|
+
* ```
|
117
|
+
*
|
118
|
+
* This is similar to Cache-Control: max-age=`stale`,s-max-age=`revalidate`,stale-while-revalidate=`expire-revalidate`
|
119
|
+
*
|
120
|
+
* If a value is left out, the lowest of other cacheLife() calls or the default, is used instead.
|
121
|
+
*/
|
122
|
+
export function unstable_cacheLife(profile: {
|
123
|
+
/**
|
124
|
+
* This cache may be stale on clients for ... seconds before checking with the server.
|
125
|
+
*/
|
126
|
+
stale?: number,
|
127
|
+
/**
|
128
|
+
* If the server receives a new request after ... seconds, start revalidating new values in the background.
|
129
|
+
*/
|
130
|
+
revalidate?: number,
|
131
|
+
/**
|
132
|
+
* If this entry has no traffic for ... seconds it will expire. The next request will recompute it.
|
133
|
+
*/
|
134
|
+
expire?: number
|
135
|
+
}): void
|
136
|
+
|
137
|
+
|
138
|
+
export { cacheTag as unstable_cacheTag } from 'next/dist/server/use-cache/cache-tag'
|
139
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type": "module"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"workbench.colorCustomizations": {
|
3
|
+
"activityBar.activeBackground": "#6f000f",
|
4
|
+
"activityBar.background": "#6f000f",
|
5
|
+
"activityBar.foreground": "#e7e7e7",
|
6
|
+
"activityBar.inactiveForeground": "#e7e7e799",
|
7
|
+
"activityBarBadge.background": "#118000",
|
8
|
+
"activityBarBadge.foreground": "#e7e7e7",
|
9
|
+
"commandCenter.border": "#e7e7e799",
|
10
|
+
"sash.hoverBorder": "#6f000f",
|
11
|
+
"statusBar.background": "#3c0008",
|
12
|
+
"statusBar.foreground": "#e7e7e7",
|
13
|
+
"statusBarItem.hoverBackground": "#6f000f",
|
14
|
+
"statusBarItem.remoteBackground": "#3c0008",
|
15
|
+
"statusBarItem.remoteForeground": "#e7e7e7",
|
16
|
+
"titleBar.activeBackground": "#3c0008",
|
17
|
+
"titleBar.activeForeground": "#e7e7e7",
|
18
|
+
"titleBar.inactiveBackground": "#3c000899",
|
19
|
+
"titleBar.inactiveForeground": "#e7e7e799"
|
20
|
+
},
|
21
|
+
"peacock.color": "#3c0008"
|
22
|
+
}
|
package/dist/index.d.mts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
|
-
declare function
|
3
|
+
declare function PaywithFractal({ name, amount, orderId, fractalPayClientKey }: {
|
4
4
|
name: string;
|
5
|
+
amount: number;
|
6
|
+
orderId: string;
|
7
|
+
fractalPayClientKey: string;
|
5
8
|
}): React.JSX.Element;
|
6
9
|
|
7
|
-
export {
|
10
|
+
export { PaywithFractal };
|
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
|
-
declare function
|
3
|
+
declare function PaywithFractal({ name, amount, orderId, fractalPayClientKey }: {
|
4
4
|
name: string;
|
5
|
+
amount: number;
|
6
|
+
orderId: string;
|
7
|
+
fractalPayClientKey: string;
|
5
8
|
}): React.JSX.Element;
|
6
9
|
|
7
|
-
export {
|
10
|
+
export { PaywithFractal };
|