Skip to content

Commit faebe3d

Browse files
committed
* Mostly updated to work with react 19.
One remaining error is in mobx-react, where it references import("react").Requireable and Validator, where those are now only in prop-types, not mobx-react: mobxjs/mobx#3985 (comment) Ignoring for now / until I get a response.
1 parent 3836025 commit faebe3d

27 files changed

Lines changed: 2522 additions & 1721 deletions

Dist/Store.js

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Store.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Utils/@Types.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/// <reference types="react" />
2-
export declare type n = null | undefined;
3-
export declare type FixHTMLProps<T> = Omit<T, "title"> & {
1+
import React from "react";
2+
export type n = null | undefined;
3+
export type FixHTMLProps<T> = Omit<T, "title"> & {
44
title?: string | n;
55
};
6-
export declare type HTMLProps_Fixed<T extends keyof JSX.IntrinsicElements> = FixHTMLProps<JSX.IntrinsicElements[T]>;
7-
export declare type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
6+
export type HTMLProps_Fixed<T extends keyof React.JSX.IntrinsicElements> = FixHTMLProps<React.JSX.IntrinsicElements[T]>;
7+
export type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;

Dist/Utils/BaseComponent.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "react";
2-
export declare type BaseProps = {
2+
export type BaseProps = {
33
ref?: any;
44
};
55
export declare class BaseComponent<P, S> extends Component<P & BaseProps, S> {

Dist/Utils/BaseComponent.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Utils/BaseComponent.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Utils/FromJSVE.js

Lines changed: 2 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Utils/FromJSVE.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/Utils/General.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dist/VMenu.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/// <reference types="react" />
1+
import React from "react";
22
import { BaseComponent } from "./Utils/BaseComponent.js";
33
import { Vector2 } from "./Utils/FromJSVE.js";
44
import { HTMLProps_Fixed, RequiredBy } from "./Utils/@Types.js";
55
export declare const VMenu_backgroundColor = "rgb(35,35,35)";
66
export declare const VMenu_borderStyle = "1px outset #555";
7-
export declare type VMenuOpenListener = (menuID: number) => any;
7+
export type VMenuOpenListener = (menuID: number) => any;
88
export declare class VMenu {
99
static lastID: number;
1010
static menuChildren: {};
1111
static vmenuOpenListeners: Map<number, VMenuOpenListener>;
1212
}
13-
export declare type VMenuUIProps = {
13+
export type VMenuUIProps = {
1414
pos?: Vector2;
1515
menuID?: number;
1616
/** This can be useful if you're rendering a VMenuUI manually (with a manual open<>close state/variable), and want an easy way to know when to reset that state to false/closed, on another vmenu being opened. */
1717
onOtherVMenuOpen?: VMenuOpenListener;
1818
style?: any;
1919
} & HTMLProps_Fixed<"div">;
20-
export declare type VMenuUIProps_WithPosInfo = RequiredBy<VMenuUIProps, "pos" | "menuID">;
20+
export type VMenuUIProps_WithPosInfo = RequiredBy<VMenuUIProps, "pos" | "menuID">;
2121
export declare class VMenuUI extends BaseComponent<VMenuUIProps, {}> {
22-
render(): JSX.Element;
22+
render(): React.JSX.Element;
2323
}

0 commit comments

Comments
 (0)