jamespot-react-core 1.2.36 → 1.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{899.2369fb7deb9e32081419.chunk.js → 899.cbd54a39addba66f4090.chunk.js} +2 -2
- package/build/{899.2369fb7deb9e32081419.chunk.js.map → 899.cbd54a39addba66f4090.chunk.js.map} +1 -1
- package/build/app.bundle.js +75 -75
- package/build/app.bundle.js.map +1 -1
- package/build/src/Router.d.ts +0 -1
- package/build/src/utils/router.d.ts +3 -2
- package/build/src/utils/types.d.ts +3 -0
- package/package.json +4 -4
- package/build/src/initReactCore.d.ts +0 -0
package/build/src/Router.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RouteObject } from 'react-router-dom';
|
|
2
2
|
import { BrowserHistory } from 'history';
|
|
3
|
+
import { Root } from 'react-dom/client';
|
|
3
4
|
export declare const ReactRouterHistory: BrowserHistory;
|
|
4
5
|
export interface ReactRouter {
|
|
5
6
|
history: BrowserHistory;
|
|
@@ -8,7 +9,7 @@ export interface ReactRouter {
|
|
|
8
9
|
addRoute: (route: RouteObject, ng?: boolean, isPublic?: boolean) => {
|
|
9
10
|
route: string;
|
|
10
11
|
} | null;
|
|
11
|
-
init: (idDiv: string) =>
|
|
12
|
+
init: (idDiv: string) => Root | undefined;
|
|
12
13
|
}
|
|
13
14
|
declare class Router implements ReactRouter {
|
|
14
15
|
history: BrowserHistory;
|
|
@@ -18,7 +19,7 @@ declare class Router implements ReactRouter {
|
|
|
18
19
|
addRoute: (route: RouteObject, ng?: boolean, isPublic?: boolean) => {
|
|
19
20
|
route: string;
|
|
20
21
|
} | null;
|
|
21
|
-
init: (idDiv: string) =>
|
|
22
|
+
init: (idDiv: string) => Root | undefined;
|
|
22
23
|
}
|
|
23
24
|
declare const router: Router;
|
|
24
25
|
export default router;
|
|
@@ -7,6 +7,7 @@ import { ReactRouter } from './router';
|
|
|
7
7
|
import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
|
|
8
8
|
import { ReactSocket } from './types.socket';
|
|
9
9
|
import { GlobalRegistry } from '../registry/GlobalRegistry';
|
|
10
|
+
import { Root } from 'react-dom/client';
|
|
10
11
|
export type Gabarit = 'core-1-cols' | 'core-2-cols' | 'core-3-cols' | 'content-1-cols' | 'content-2-cols' | 'content-3-cols' | 'app-1-cols' | 'app-2-cols' | 'empty';
|
|
11
12
|
export interface ReactCore {
|
|
12
13
|
extensions: ReactExtensions;
|
|
@@ -44,6 +45,8 @@ export type ReactUnmountExtensionArgs<T> = {
|
|
|
44
45
|
params?: T;
|
|
45
46
|
};
|
|
46
47
|
export interface ReactExtension {
|
|
48
|
+
root: Root | undefined;
|
|
49
|
+
container?: HTMLElement | undefined;
|
|
47
50
|
initExtension: (args?: any) => void;
|
|
48
51
|
unmountExtension: (args?: ReactUnmountExtensionArgs<any>) => void;
|
|
49
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.38",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
33
33
|
"history": "^5.3.0",
|
|
34
34
|
"husky": "^7.0.4",
|
|
35
|
-
"jamespot-front-business": "^1.2.
|
|
36
|
-
"jamespot-react-components": "^1.2.
|
|
37
|
-
"jamespot-user-api": "^1.2.
|
|
35
|
+
"jamespot-front-business": "^1.2.38",
|
|
36
|
+
"jamespot-react-components": "^1.2.38",
|
|
37
|
+
"jamespot-user-api": "^1.2.38",
|
|
38
38
|
"jest": "^30.1.2",
|
|
39
39
|
"jest-environment-jsdom": "^30.1.2",
|
|
40
40
|
"lint-staged": "^12.5.0",
|
|
File without changes
|