@pinerohit11/testwidget 0.1.29 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. package/dist/index.cjs +15 -1
  2. package/dist/index.css +10 -1
  3. package/dist/index.js +15 -1
  4. package/package.json +2 -2
  5. package/.next/app-build-manifest.json +0 -16
  6. package/.next/build-manifest.json +0 -20
  7. package/.next/cache/.rscinfo +0 -1
  8. package/.next/cache/webpack/client-development/0.pack.gz +0 -0
  9. package/.next/cache/webpack/client-development/1.pack.gz +0 -0
  10. package/.next/cache/webpack/client-development/10.pack.gz +0 -0
  11. package/.next/cache/webpack/client-development/11.pack.gz +0 -0
  12. package/.next/cache/webpack/client-development/12.pack.gz +0 -0
  13. package/.next/cache/webpack/client-development/13.pack.gz +0 -0
  14. package/.next/cache/webpack/client-development/14.pack.gz +0 -0
  15. package/.next/cache/webpack/client-development/15.pack.gz +0 -0
  16. package/.next/cache/webpack/client-development/16.pack.gz +0 -0
  17. package/.next/cache/webpack/client-development/17.pack.gz +0 -0
  18. package/.next/cache/webpack/client-development/18.pack.gz +0 -0
  19. package/.next/cache/webpack/client-development/19.pack.gz +0 -0
  20. package/.next/cache/webpack/client-development/2.pack.gz +0 -0
  21. package/.next/cache/webpack/client-development/3.pack.gz +0 -0
  22. package/.next/cache/webpack/client-development/4.pack.gz +0 -0
  23. package/.next/cache/webpack/client-development/5.pack.gz +0 -0
  24. package/.next/cache/webpack/client-development/6.pack.gz +0 -0
  25. package/.next/cache/webpack/client-development/7.pack.gz +0 -0
  26. package/.next/cache/webpack/client-development/8.pack.gz +0 -0
  27. package/.next/cache/webpack/client-development/9.pack.gz +0 -0
  28. package/.next/cache/webpack/client-development/index.pack.gz +0 -0
  29. package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
  30. package/.next/cache/webpack/client-development-fallback/0.pack.gz +0 -0
  31. package/.next/cache/webpack/client-development-fallback/1.pack.gz +0 -0
  32. package/.next/cache/webpack/client-development-fallback/index.pack.gz +0 -0
  33. package/.next/cache/webpack/client-development-fallback/index.pack.gz.old +0 -0
  34. package/.next/cache/webpack/server-development/0.pack.gz +0 -0
  35. package/.next/cache/webpack/server-development/1.pack.gz +0 -0
  36. package/.next/cache/webpack/server-development/10.pack.gz +0 -0
  37. package/.next/cache/webpack/server-development/11.pack.gz +0 -0
  38. package/.next/cache/webpack/server-development/12.pack.gz +0 -0
  39. package/.next/cache/webpack/server-development/13.pack.gz +0 -0
  40. package/.next/cache/webpack/server-development/14.pack.gz +0 -0
  41. package/.next/cache/webpack/server-development/15.pack.gz +0 -0
  42. package/.next/cache/webpack/server-development/2.pack.gz +0 -0
  43. package/.next/cache/webpack/server-development/3.pack.gz +0 -0
  44. package/.next/cache/webpack/server-development/4.pack.gz +0 -0
  45. package/.next/cache/webpack/server-development/5.pack.gz +0 -0
  46. package/.next/cache/webpack/server-development/6.pack.gz +0 -0
  47. package/.next/cache/webpack/server-development/7.pack.gz +0 -0
  48. package/.next/cache/webpack/server-development/8.pack.gz +0 -0
  49. package/.next/cache/webpack/server-development/9.pack.gz +0 -0
  50. package/.next/cache/webpack/server-development/index.pack.gz +0 -0
  51. package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
  52. package/.next/package.json +0 -1
  53. package/.next/react-loadable-manifest.json +0 -1
  54. package/.next/server/app/favicon.ico/route.js +0 -86
  55. package/.next/server/app/page.js +0 -417
  56. package/.next/server/app/page_client-reference-manifest.js +0 -1
  57. package/.next/server/app-paths-manifest.json +0 -4
  58. package/.next/server/interception-route-rewrite-manifest.js +0 -1
  59. package/.next/server/middleware-build-manifest.js +0 -22
  60. package/.next/server/middleware-manifest.json +0 -6
  61. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  62. package/.next/server/next-font-manifest.js +0 -1
  63. package/.next/server/next-font-manifest.json +0 -1
  64. package/.next/server/pages-manifest.json +0 -1
  65. package/.next/server/server-reference-manifest.js +0 -1
  66. package/.next/server/server-reference-manifest.json +0 -5
  67. package/.next/server/vendor-chunks/@babel.js +0 -45
  68. package/.next/server/vendor-chunks/@restart.js +0 -275
  69. package/.next/server/vendor-chunks/@swc.js +0 -55
  70. package/.next/server/vendor-chunks/asynckit.js +0 -114
  71. package/.next/server/vendor-chunks/axios.js +0 -555
  72. package/.next/server/vendor-chunks/bootstrap.js +0 -35
  73. package/.next/server/vendor-chunks/classnames.js +0 -24
  74. package/.next/server/vendor-chunks/combined-stream.js +0 -24
  75. package/.next/server/vendor-chunks/debug.js +0 -54
  76. package/.next/server/vendor-chunks/delayed-stream.js +0 -24
  77. package/.next/server/vendor-chunks/dom-helpers.js +0 -215
  78. package/.next/server/vendor-chunks/follow-redirects.js +0 -34
  79. package/.next/server/vendor-chunks/form-data.js +0 -34
  80. package/.next/server/vendor-chunks/has-flag.js +0 -25
  81. package/.next/server/vendor-chunks/mime-db.js +0 -35
  82. package/.next/server/vendor-chunks/mime-types.js +0 -25
  83. package/.next/server/vendor-chunks/ms.js +0 -24
  84. package/.next/server/vendor-chunks/next.js +0 -3185
  85. package/.next/server/vendor-chunks/object-assign.js +0 -25
  86. package/.next/server/vendor-chunks/prop-types.js +0 -67
  87. package/.next/server/vendor-chunks/proxy-from-env.js +0 -25
  88. package/.next/server/vendor-chunks/react-bootstrap.js +0 -195
  89. package/.next/server/vendor-chunks/react-is.js +0 -35
  90. package/.next/server/vendor-chunks/react-transition-group.js +0 -65
  91. package/.next/server/vendor-chunks/supports-color.js +0 -25
  92. package/.next/server/webpack-runtime.js +0 -220
  93. package/.next/static/chunks/app/layout.js +0 -156
  94. package/.next/static/chunks/app/page.js +0 -1465
  95. package/.next/static/chunks/app-pages-internals.js +0 -193
  96. package/.next/static/chunks/main-app.js +0 -2398
  97. package/.next/static/chunks/polyfills.js +0 -1
  98. package/.next/static/chunks/webpack.js +0 -1411
  99. package/.next/static/css/app/layout.css +0 -26
  100. package/.next/static/css/app/page.css +0 -699
  101. package/.next/static/development/_buildManifest.js +0 -1
  102. package/.next/static/development/_ssgManifest.js +0 -1
  103. package/.next/static/media/4473ecc91f70f139-s.p.woff +0 -0
  104. package/.next/static/media/463dafcda517f24f-s.p.woff +0 -0
  105. package/.next/static/webpack/02da99e3a0af6a36.webpack.hot-update.json +0 -1
  106. package/.next/static/webpack/044cdadb3b0d6bb3.webpack.hot-update.json +0 -1
  107. package/.next/static/webpack/633457081244afec._.hot-update.json +0 -1
  108. package/.next/static/webpack/app/layout.02da99e3a0af6a36.hot-update.js +0 -31
  109. package/.next/static/webpack/app/layout.044cdadb3b0d6bb3.hot-update.js +0 -31
  110. package/.next/static/webpack/webpack.02da99e3a0af6a36.hot-update.js +0 -18
  111. package/.next/static/webpack/webpack.044cdadb3b0d6bb3.hot-update.js +0 -18
  112. package/.next/trace +0 -7
  113. package/.next/types/app/layout.ts +0 -84
  114. package/.next/types/app/page.ts +0 -84
  115. package/.next/types/cache-life.d.ts +0 -139
  116. package/.next/types/package.json +0 -1
@@ -1,84 +0,0 @@
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__'
@@ -1,139 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- {"type": "module"}