jamespot-react-core 1.1.98 → 1.1.99
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/app.bundle.js +251 -251
- package/build/app.bundle.js.map +1 -1
- package/build/jest.config.d.ts +16 -0
- package/build/jest.setup.d.ts +1 -0
- package/build/socket.sharedworker.bb25eb0781ce40fec4a2.js.map +1 -1
- package/build/{redux → src/redux}/slice/Article.slice.d.ts +1 -1
- package/build/{redux → src/redux}/slice/User.slice.d.ts +1 -1
- package/build/{redux → src/redux}/store.d.ts +2 -2
- package/build/{utils → src/utils}/ensure.d.ts +2 -0
- package/build/{utils → src/utils}/types.d.ts +4 -8
- package/jest.config.ts +15 -0
- package/jest.setup.ts +1 -0
- package/package.json +6 -5
- /package/build/{App.d.ts → src/App.d.ts} +0 -0
- /package/build/{ReactCore.d.ts → src/ReactCore.d.ts} +0 -0
- /package/build/{Router.d.ts → src/Router.d.ts} +0 -0
- /package/build/{Toast.d.ts → src/Toast.d.ts} +0 -0
- /package/build/{components → src/components}/ExtensionProvider.component.d.ts +0 -0
- /package/build/{components → src/components}/IfAppIsActivated.component.d.ts +0 -0
- /package/build/{components → src/components}/RTProvider.component.d.ts +0 -0
- /package/build/{components → src/components}/Toaster.d.ts +0 -0
- /package/build/{components → src/components}/TwoColLayout.d.ts +0 -0
- /package/build/{components → src/components}/index.d.ts +0 -0
- /package/build/{components → src/components}/types.d.ts +0 -0
- /package/build/{displayer → src/displayer}/DisplayForm.component.d.ts +0 -0
- /package/build/{displayer → src/displayer}/Empty.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/DisplayRender.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/Date.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/DefaultInput.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/InputEmail.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/InputRichText.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/InputSelect.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/InputTaxonomy.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/InputTextarea.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/OrientedLink.d.ts +0 -0
- /package/build/{displayer → src/displayer}/components/inputs/Radio.d.ts +0 -0
- /package/build/{displayer → src/displayer}/displayer.utils.d.ts +0 -0
- /package/build/{displayer → src/displayer}/formatter.d.ts +0 -0
- /package/build/{displayer → src/displayer}/types.d.ts +0 -0
- /package/build/{displayer → src/displayer}/useDisplay.d.ts +0 -0
- /package/build/{redux → src/redux}/actions/Articles.actions.d.ts +0 -0
- /package/build/{redux → src/redux}/actions/Articles.types.d.ts +0 -0
- /package/build/{redux → src/redux}/actions/Users.actions.d.ts +0 -0
- /package/build/{redux → src/redux}/actions/Users.types.d.ts +0 -0
- /package/build/{redux → src/redux}/actions/actions.d.ts +0 -0
- /package/build/{redux → src/redux}/middleware/index.d.ts +0 -0
- /package/build/{redux → src/redux}/middleware/logger.d.ts +0 -0
- /package/build/{redux → src/redux}/slice/Generic.actions.d.ts +0 -0
- /package/build/{registry → src/registry}/Registry.d.ts +0 -0
- /package/build/{registry → src/registry}/core-component-list.d.ts +0 -0
- /package/build/{registry → src/registry}/coreComponents.d.ts +0 -0
- /package/build/{registry → src/registry}/ext-component-list.d.ts +0 -0
- /package/build/{registry → src/registry}/index.d.ts +0 -0
- /package/build/{registry → src/registry}/types.d.ts +0 -0
- /package/build/{types.d.ts → src/types.d.ts} +0 -0
- /package/build/{utils → src/utils}/router.d.ts +0 -0
- /package/build/{utils → src/utils}/socket.d.ts +0 -0
- /package/build/{utils → src/utils}/socket.sharedworker.d.ts +0 -0
- /package/build/{utils → src/utils}/translation.d.ts +0 -0
|
@@ -29,7 +29,7 @@ export declare const articleSlice: import("@reduxjs/toolkit").Slice<import("@red
|
|
|
29
29
|
}, "articles">;
|
|
30
30
|
export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelectors<Article, import("redux").CombinedState<{
|
|
31
31
|
entities: import("redux").CombinedState<{
|
|
32
|
-
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").
|
|
32
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").ApplicationType>;
|
|
33
33
|
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
34
34
|
users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
|
|
35
35
|
articles: import("@reduxjs/toolkit").EntityState<Article>;
|
|
@@ -29,7 +29,7 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<import("@reduxj
|
|
|
29
29
|
}, "users">;
|
|
30
30
|
export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<User, import("redux").CombinedState<{
|
|
31
31
|
entities: import("redux").CombinedState<{
|
|
32
|
-
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").
|
|
32
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").ApplicationType>;
|
|
33
33
|
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
34
34
|
users: import("@reduxjs/toolkit").EntityState<User>;
|
|
35
35
|
articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
|
|
@@ -29,7 +29,7 @@ export interface AsyncReducers {
|
|
|
29
29
|
export declare function makeStore(initialState: AsyncReducers): JInjectStore;
|
|
30
30
|
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").CombinedState<{
|
|
31
31
|
entities: import("redux").CombinedState<{
|
|
32
|
-
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").
|
|
32
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").ApplicationType>;
|
|
33
33
|
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
34
34
|
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
35
35
|
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
@@ -45,7 +45,7 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
|
|
|
45
45
|
userCurrent: import("jamespot-user-api").jUserList;
|
|
46
46
|
}>, import("redux").AnyAction, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
|
|
47
47
|
entities: import("redux").CombinedState<{
|
|
48
|
-
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").
|
|
48
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").ApplicationType>;
|
|
49
49
|
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
50
50
|
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
51
51
|
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { UriOrTypeId } from 'jamespot-react-components';
|
|
2
|
+
import { jObjectLittle } from 'jamespot-user-api';
|
|
2
3
|
export declare function getUnknownProperty(object: unknown, attribute: string): unknown | undefined;
|
|
3
4
|
export declare function ensureIsString(object: unknown): object is string;
|
|
4
5
|
export declare function ensureIsNumber(object: unknown): object is number;
|
|
5
6
|
export declare function ensureHasUriOrTypeId(object: unknown): object is UriOrTypeId;
|
|
7
|
+
export declare function ensureObjectLittle(object: unknown): object is jObjectLittle;
|
|
6
8
|
export declare function ensureIsArray(object: unknown): object is Array<unknown>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationType, jUserList, Model } from 'jamespot-user-api';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useDisplay, useDisplayList } from '../displayer/useDisplay';
|
|
4
4
|
import { ReactRegistry } from '../registry/Registry';
|
|
5
5
|
import { JrComponentListType } from '../registry/types';
|
|
6
6
|
import { ReactRouter } from './router';
|
|
7
7
|
import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
|
|
8
|
+
import { AnyRTHandlerFunction } from 'jamespot-user-api';
|
|
8
9
|
export declare 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';
|
|
9
10
|
export interface ReactCore {
|
|
10
11
|
extensions: ReactExtensions;
|
|
@@ -38,7 +39,7 @@ export interface ReactExtension {
|
|
|
38
39
|
export interface ReactExtensionContainer {
|
|
39
40
|
default: ReactExtension;
|
|
40
41
|
}
|
|
41
|
-
export declare type ReactSocketEventHandler =
|
|
42
|
+
export declare type ReactSocketEventHandler = AnyRTHandlerFunction;
|
|
42
43
|
export interface ReactSocket {
|
|
43
44
|
io: any;
|
|
44
45
|
supportSharedWorker?: Boolean;
|
|
@@ -79,11 +80,6 @@ export declare type ReactSocketEvents = {
|
|
|
79
80
|
all: ReactSocketEventHandler[];
|
|
80
81
|
};
|
|
81
82
|
};
|
|
82
|
-
export interface SocketEventData {
|
|
83
|
-
function: string;
|
|
84
|
-
namespace: string;
|
|
85
|
-
[key: string]: any;
|
|
86
|
-
}
|
|
87
83
|
export interface SharedWorkerEvent {
|
|
88
84
|
data: SharedWorkerEventData;
|
|
89
85
|
}
|
|
@@ -128,7 +124,7 @@ export interface WindowJ {
|
|
|
128
124
|
jUserCurrent: jUserList;
|
|
129
125
|
jamespotReactComponentList: JrComponentListType;
|
|
130
126
|
jamespotReactTheme: any;
|
|
131
|
-
applications:
|
|
127
|
+
applications: ApplicationType[];
|
|
132
128
|
models: Model<string>[];
|
|
133
129
|
debug: any;
|
|
134
130
|
urlBase: string;
|
package/jest.config.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
roots: ['<rootDir>'],
|
|
3
|
+
testMatch: ['**/*.test.tsx'],
|
|
4
|
+
transform: {
|
|
5
|
+
'^.+\\.(ts|tsx)?$': 'ts-jest',
|
|
6
|
+
},
|
|
7
|
+
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
|
|
8
|
+
moduleDirectories: ['src', 'node_modules'],
|
|
9
|
+
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
10
|
+
moduleNameMapper: {
|
|
11
|
+
'\\.(less)$': 'identity-obj-proxy',
|
|
12
|
+
},
|
|
13
|
+
cacheDirectory: './node_modules/.cache/jest',
|
|
14
|
+
collectCoverage: true,
|
|
15
|
+
};
|
package/jest.setup.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
|
-
"types": "./build/App.d.ts",
|
|
6
|
+
"types": "./build/src/App.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "webpack --env NODE_ENV=development",
|
|
9
9
|
"local": "webpack s --env NODE_ENV=development",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"source-map-loader": "^1.0.1",
|
|
56
56
|
"ts-jest": "^27.0.7",
|
|
57
57
|
"ts-loader": "^8.0.2",
|
|
58
|
+
"ts-node": "^10.3.0",
|
|
58
59
|
"typescript": "^4.4.4",
|
|
59
60
|
"webpack": "^5.62.1",
|
|
60
61
|
"webpack-cli": "^4.9.1",
|
|
@@ -64,9 +65,9 @@
|
|
|
64
65
|
"dependencies": {
|
|
65
66
|
"@reduxjs/toolkit": "^1.9.0",
|
|
66
67
|
"history": "^5.3.0",
|
|
67
|
-
"jamespot-front-business": "^1.1.
|
|
68
|
-
"jamespot-react-components": "^1.0.
|
|
69
|
-
"jamespot-user-api": "^1.0.
|
|
68
|
+
"jamespot-front-business": "^1.1.9",
|
|
69
|
+
"jamespot-react-components": "^1.0.127",
|
|
70
|
+
"jamespot-user-api": "^1.0.99",
|
|
70
71
|
"react": "^17.0.2",
|
|
71
72
|
"react-dom": "^17.0.2",
|
|
72
73
|
"react-hook-form": "^7.25.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|