diff --git a/mkdocs.yml b/mkdocs.yml index 4fa4a1198..be0cf9a4c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -18,4 +18,7 @@ theme: plugins: - search: lang: en - - include-markdown \ No newline at end of file + - include-markdown + +markdown_extensions: + - admonition diff --git a/packages/pl-fe/package.json b/packages/pl-fe/package.json index fb234ef25..15c1e43e6 100644 --- a/packages/pl-fe/package.json +++ b/packages/pl-fe/package.json @@ -66,9 +66,8 @@ "@tailwindcss/forms": "^0.5.10", "@tailwindcss/typography": "^0.5.16", "@tanstack/react-pacer": "^0.16.4", - "@tanstack/react-query": "^5.62.11", + "@tanstack/react-query": "^5.84.1", "@tanstack/react-router": "^1.141.6", - "@tanstack/react-router-devtools": "^1.141.6", "@transfem-org/sfm-js": "^0.24.6", "@twemoji/svg": "^15.0.0", "@uidotdev/usehooks": "^2.4.1", diff --git a/packages/pl-fe/src/queries/client.ts b/packages/pl-fe/src/queries/client.ts index e11ce296c..9846dbd32 100644 --- a/packages/pl-fe/src/queries/client.ts +++ b/packages/pl-fe/src/queries/client.ts @@ -11,4 +11,14 @@ const queryClient = new QueryClient({ }, }); +// This code is only for TypeScript +declare global { + interface Window { + __TANSTACK_QUERY_CLIENT__: QueryClient; + } +} + +// This code is for all users +window.__TANSTACK_QUERY_CLIENT__ = queryClient; + export { queryClient }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf6f70c08..43a9357c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -200,14 +200,11 @@ importers: specifier: ^0.16.4 version: 0.16.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tanstack/react-query': - specifier: ^5.62.11 + specifier: ^5.84.1 version: 5.84.1(react@18.3.1) '@tanstack/react-router': specifier: ^1.141.6 version: 1.141.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@tanstack/react-router-devtools': - specifier: ^1.141.6 - version: 1.141.6(@tanstack/react-router@1.141.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@tanstack/router-core@1.141.6)(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(solid-js@1.9.10) '@transfem-org/sfm-js': specifier: ^0.24.6 version: 0.24.8 @@ -2404,18 +2401,6 @@ packages: peerDependencies: react: ^18 || ^19 - '@tanstack/react-router-devtools@1.141.6': - resolution: {integrity: sha512-Uzb8GKg5Om8mCw2WjdDW1VBpyF+iaYOO/HK0ELbWO+TC6Nn/9pbbku/3HCMKHeLkmKPaMSW92do4Hu0bDYVglg==} - engines: {node: '>=12'} - peerDependencies: - '@tanstack/react-router': ^1.141.6 - '@tanstack/router-core': ^1.141.6 - react: '>=18.0.0 || >=19.0.0' - react-dom: '>=18.0.0 || >=19.0.0' - peerDependenciesMeta: - '@tanstack/router-core': - optional: true - '@tanstack/react-router@1.141.6': resolution: {integrity: sha512-qWFxi2D6eGc1L03RzUuhyEOplZ7Q6q62YOl7Of9Y0q4YjwQwxRm4zxwDVtvUIoy4RLVCpqp5UoE+Nxv2PY9trg==} engines: {node: '>=12'} @@ -2439,17 +2424,6 @@ packages: resolution: {integrity: sha512-AqH61axLq2xFaM+B0veGQ4OOzMzr2Ih+qXzBmGRy5e0wMJkr1efPZXLF0K7nEjF++bmL/excew2Br6v9xrZ/5g==} engines: {node: '>=12'} - '@tanstack/router-devtools-core@1.141.6': - resolution: {integrity: sha512-+qzAw16ELQWyj4bTX3zOIZDqGsq+AM6cRn1fp8/nzvw++TvN62k4hHAiRQn4EU+R03qjRUCE9315jzAf9Amslw==} - engines: {node: '>=12'} - peerDependencies: - '@tanstack/router-core': ^1.141.6 - csstype: ^3.0.10 - solid-js: '>=1.9.5' - peerDependenciesMeta: - csstype: - optional: true - '@tanstack/store@0.7.7': resolution: {integrity: sha512-xa6pTan1bcaqYDS9BDpSiS63qa6EoDkPN9RsRaxHuDdVDNntzq3xNwR5YKTU/V3SkSyC9T4YVOPh2zRQN0nhIQ==} @@ -5974,22 +5948,12 @@ packages: serialize-query-params@2.0.2: resolution: {integrity: sha512-1chMo1dST4pFA9RDXAtF0Rbjaut4is7bzFbI1Z26IuMub68pNCILku85aYmeFhvnY//BXUPUhoRMjYcsT93J/Q==} - seroval-plugins@1.3.3: - resolution: {integrity: sha512-16OL3NnUBw8JG1jBLUoZJsLnQq0n5Ua6aHalhJK4fMQkz1lqR7Osz1sA30trBtd9VUDc2NgkuRCn8+/pBwqZ+w==} - engines: {node: '>=10'} - peerDependencies: - seroval: ^1.0 - seroval-plugins@1.4.0: resolution: {integrity: sha512-zir1aWzoiax6pbBVjoYVd0O1QQXgIL3eVGBMsBsNmM8Ukq90yGaWlfx0AB9dTS8GPqrOrbXn79vmItCUP9U3BQ==} engines: {node: '>=10'} peerDependencies: seroval: ^1.0 - seroval@1.3.2: - resolution: {integrity: sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==} - engines: {node: '>=10'} - seroval@1.4.0: resolution: {integrity: sha512-BdrNXdzlofomLTiRnwJTSEAaGKyHHZkbMXIywOh7zlzp4uZnXErEwl9XZ+N1hJSNpeTtNxWvVwN0wUzAIQ4Hpg==} engines: {node: '>=10'} @@ -6062,9 +6026,6 @@ packages: smob@1.5.0: resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==} - solid-js@1.9.10: - resolution: {integrity: sha512-Coz956cos/EPDlhs6+jsdTxKuJDPT7B5SVIWgABwROyxjY7Xbr8wkzD68Et+NxnV7DLJ3nJdAC2r9InuV/4Jew==} - source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -8971,18 +8932,6 @@ snapshots: '@tanstack/query-core': 5.83.1 react: 18.3.1 - '@tanstack/react-router-devtools@1.141.6(@tanstack/react-router@1.141.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@tanstack/router-core@1.141.6)(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(solid-js@1.9.10)': - dependencies: - '@tanstack/react-router': 1.141.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@tanstack/router-devtools-core': 1.141.6(@tanstack/router-core@1.141.6)(csstype@3.1.3)(solid-js@1.9.10) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - optionalDependencies: - '@tanstack/router-core': 1.141.6 - transitivePeerDependencies: - - csstype - - solid-js - '@tanstack/react-router@1.141.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/history': 1.141.0 @@ -9018,16 +8967,6 @@ snapshots: tiny-invariant: 1.3.3 tiny-warning: 1.0.3 - '@tanstack/router-devtools-core@1.141.6(@tanstack/router-core@1.141.6)(csstype@3.1.3)(solid-js@1.9.10)': - dependencies: - '@tanstack/router-core': 1.141.6 - clsx: 2.1.1 - goober: 2.1.16(csstype@3.1.3) - solid-js: 1.9.10 - tiny-invariant: 1.3.3 - optionalDependencies: - csstype: 3.1.3 - '@tanstack/store@0.7.7': {} '@tanstack/store@0.8.0': {} @@ -12989,16 +12928,10 @@ snapshots: serialize-query-params@2.0.2: {} - seroval-plugins@1.3.3(seroval@1.3.2): - dependencies: - seroval: 1.3.2 - seroval-plugins@1.4.0(seroval@1.4.0): dependencies: seroval: 1.4.0 - seroval@1.3.2: {} - seroval@1.4.0: {} set-function-length@1.2.2: @@ -13085,12 +13018,6 @@ snapshots: smob@1.5.0: {} - solid-js@1.9.10: - dependencies: - csstype: 3.1.3 - seroval: 1.3.2 - seroval-plugins: 1.3.3(seroval@1.3.2) - source-map-js@1.2.1: {} source-map-support@0.5.21: