Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doc/declarations.d.ts

This file was deleted.

6 changes: 5 additions & 1 deletion doc/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
turbopack: {
root: "./",
},
};

export default nextConfig;
14 changes: 7 additions & 7 deletions doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
"@mui/material": "^6.1.10",
"@mui/material-nextjs": "^6.1.9",
"@mui/styles": "^6.1.10",
"next": "15.5.7",
"next": "16.1.6",
"prismjs": "^1.29.0",
"react": "^18",
"react-dom": "^18",
"react-syntax-highlighter": "^15.6.1",
"typeface-lato": "^1.1.13"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.11",
"@types/node": "^22.10.1",
"@types/react": "^18.3.13",
"@types/react-dom": "^18",
"@tailwindcss/postcss": "^4.1.18",
"@types/node": "^25.2.0",
"@types/react": "^19.2.10",
"@types/react-dom": "^19.2.3",
"@types/react-syntax-highlighter": "^15.5.13",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"eslint-config-prettier": "^9.1.0",
"generact": "^0.4.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.11",
"typescript": "^5.8.3"
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3"
},
"scripts": {
"build": "next build",
Expand Down
20 changes: 17 additions & 3 deletions doc/src/app/components/GeopsMobility.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
"use client";
import { forwardRef } from "react";

const GeopsMobility = forwardRef((props: Record<string, unknown>, ref) => {
return <geops-mobility ref={ref} {...props}></geops-mobility>;
});
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"geops-mobility": React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement
> &
Record<string, unknown>;
}
}
}

const GeopsMobility = forwardRef<HTMLDivElement, Record<string, unknown>>(
(props, ref) => {
return <geops-mobility ref={ref} {...props}></geops-mobility>;
},
);
GeopsMobility.displayName = "GeopsMobility";

export default GeopsMobility;
16 changes: 14 additions & 2 deletions doc/src/app/components/GeopsMobilitySearch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import { forwardRef } from "react";

const GeopsMobilitySearch = forwardRef(
(props: Record<string, unknown>, ref) => {
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"geops-mobility-search": React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement
> &
Record<string, unknown>;
}
}
}

const GeopsMobilitySearch = forwardRef<HTMLDivElement, Record<string, unknown>>(
(props, ref) => {
return <geops-mobility-search ref={ref} {...props}></geops-mobility-search>;
},
);
Expand Down
1 change: 0 additions & 1 deletion doc/src/app/components/WebComponentDoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ function WebComponentDoc({
{...attributes}
// @ts-expect-error - strange error
ref={(node: HTMLElement) => {
// @ts-expect-error - strange error
ref.current = node;
}}
{...compProps}
Expand Down
5 changes: 3 additions & 2 deletions doc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand All @@ -32,7 +32,8 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down
Loading