File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default defineConfig(
1010 '.yarn' ,
1111 'node_modules' ,
1212 'examples/next/.next/**' ,
13+ 'examples/next/next-env.d.ts' ,
1314 ] } ,
1415 {
1516 languageOptions : {
Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { useRef } from 'react' ;
3+ import { useId , useRef } from 'react' ;
44import {
55 type RestrictedContentRef ,
66 Pixel ,
@@ -11,6 +11,7 @@ import Link from 'next/link';
1111
1212const Premium = ( ) => {
1313 const contentRef = useRef < RestrictedContentRef > ( null ) ;
14+ const id = useId ( ) ;
1415
1516 return (
1617 < div className = "app" >
@@ -66,7 +67,7 @@ const Premium = () => {
6667 </ div >
6768 </ RestrictedContent >
6869
69- < Paywall contentRef = { contentRef } />
70+ < Paywall id = { id } contentRef = { contentRef } />
7071 < Pixel type = "page-view" data = { { type : 'premium' } } />
7172
7273 < Link href = "/" > Return to home</ Link >
Original file line number Diff line number Diff line change 11/// <reference types="next" />
22/// <reference types="next/image-types/global" />
3+ import "./.next/dev/types/routes.d.ts" ;
34
45// NOTE: This file should not be edited
5- // see https://nextjs.org/docs/app/api-reference/config/typescript
6- // for more information.
6+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ export default { } ;
Original file line number Diff line number Diff line change 22 "name" : " @poool/react-access" ,
33 "version" : " 4.1.5" ,
44 "description" : " The easiest way to add Poool Access to your React app ✨" ,
5+ "type" : " module" ,
56 "repository" : {
67 "type" : " git" ,
78 "url" : " git+https://github.com/p3ol/react-access.git"
89 },
910 "author" : " Ugo Stephant <ugo@poool.fr>" ,
1011 "license" : " MIT" ,
11- "main" : " dist/index.js " ,
12- "module" : " dist/index.mjs " ,
12+ "main" : " dist/index.cjs " ,
13+ "module" : " dist/index.js " ,
1314 "types" : " dist/types/index.d.ts" ,
1415 "sideEffects" : false ,
1516 "exports" : {
1617 "." : {
1718 "types" : " ./dist/types/index.d.ts" ,
18- "import" : " ./dist/index.mjs " ,
19- "require" : " ./dist/index.js "
19+ "import" : " ./dist/index.js " ,
20+ "require" : " ./dist/index.cjs "
2021 }
2122 },
2223 "engines" : {
You can’t perform that action at this time.
0 commit comments