@pinerohit11/testwidget 0.1.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/.eslintrc.json +3 -0
- 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/2.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/index.pack.gz +0 -0
- package/.next/package.json +1 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/server/app/page.js +217 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +3 -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/next.js +2999 -0
- package/.next/server/webpack-runtime.js +215 -0
- package/.next/static/chunks/app/layout.js +69 -0
- package/.next/static/chunks/app/page.js +28 -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 +1399 -0
- package/.next/static/css/app/layout.css +72 -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/633457081244afec._.hot-update.json +1 -0
- package/.next/trace +8 -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/README.md +36 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +34 -0
- package/dist/index.mjs +7 -0
- package/next-env.d.ts +5 -0
- package/next.config.ts +7 -0
- package/package.json +35 -0
@@ -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"}
|
package/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
2
|
+
|
3
|
+
## Getting Started
|
4
|
+
|
5
|
+
First, run the development server:
|
6
|
+
|
7
|
+
```bash
|
8
|
+
npm run dev
|
9
|
+
# or
|
10
|
+
yarn dev
|
11
|
+
# or
|
12
|
+
pnpm dev
|
13
|
+
# or
|
14
|
+
bun dev
|
15
|
+
```
|
16
|
+
|
17
|
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
18
|
+
|
19
|
+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
20
|
+
|
21
|
+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
22
|
+
|
23
|
+
## Learn More
|
24
|
+
|
25
|
+
To learn more about Next.js, take a look at the following resources:
|
26
|
+
|
27
|
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
28
|
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
29
|
+
|
30
|
+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
31
|
+
|
32
|
+
## Deploy on Vercel
|
33
|
+
|
34
|
+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
35
|
+
|
36
|
+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/app/index.ts
|
21
|
+
var app_exports = {};
|
22
|
+
__export(app_exports, {
|
23
|
+
Greet: () => Greet
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(app_exports);
|
26
|
+
|
27
|
+
// src/app/components/Greet.tsx
|
28
|
+
function Greet({ name }) {
|
29
|
+
return /* @__PURE__ */ React.createElement("h1", null, "Hello, ", name, "!");
|
30
|
+
}
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
32
|
+
0 && (module.exports = {
|
33
|
+
Greet
|
34
|
+
});
|
package/dist/index.mjs
ADDED
package/next-env.d.ts
ADDED
package/next.config.ts
ADDED
package/package.json
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"name": "@pinerohit11/testwidget",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"private": false,
|
5
|
+
"scripts": {
|
6
|
+
"dev": "next dev",
|
7
|
+
"build": "next build",
|
8
|
+
"start": "next start",
|
9
|
+
"lint": "next lint",
|
10
|
+
"bundle":"tsup src/app/index.ts"
|
11
|
+
},
|
12
|
+
"dependencies": {
|
13
|
+
"next": "15.0.3",
|
14
|
+
"react": "19.0.0-rc-66855b96-20241106",
|
15
|
+
"react-dom": "19.0.0-rc-66855b96-20241106"
|
16
|
+
},
|
17
|
+
"devDependencies": {
|
18
|
+
"@types/node": "^20",
|
19
|
+
"@types/react": "^18",
|
20
|
+
"@types/react-dom": "^18",
|
21
|
+
"eslint": "^8",
|
22
|
+
"eslint-config-next": "15.0.3",
|
23
|
+
"tsup": "^8.3.5",
|
24
|
+
"typescript": "^5"
|
25
|
+
},
|
26
|
+
"author": "your_name",
|
27
|
+
"license": "MIT",
|
28
|
+
"keywords": [
|
29
|
+
"nextjs",
|
30
|
+
"next",
|
31
|
+
"typescript",
|
32
|
+
"tailwindcss"
|
33
|
+
],
|
34
|
+
"main": "dist/index.js"
|
35
|
+
}
|