jamespot-react-core 1.1.115 → 1.1.116

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.
@@ -1,4 +1,4 @@
1
- import { ReactCore, ReactExtensions, ReactSocket, Gabarit } from './utils/types';
1
+ import { ReactCore, ReactExtensions, ReactSocket, Gabarit, ReactLoadedExtensions } from './utils/types';
2
2
  import { ReactRegistry } from './registry/Registry';
3
3
  import { ReactTranslation, SupportedLanguages } from './utils/translation';
4
4
  import * as React from 'react';
@@ -7,6 +7,7 @@ import { ReactRouter } from './utils/router';
7
7
  import { JInjectStore } from './redux/store';
8
8
  declare class App implements ReactCore {
9
9
  extensions: ReactExtensions;
10
+ loadedExtensions: ReactLoadedExtensions;
10
11
  store: JInjectStore;
11
12
  actions: object;
12
13
  registry: ReactRegistry;
@@ -19,6 +20,7 @@ declare class App implements ReactCore {
19
20
  router: ReactRouter;
20
21
  constructor(store: JInjectStore, ActionCreators: object, registry: ReactRegistry, locale: SupportedLanguages, translation: ReactTranslation, socket: ReactSocket);
21
22
  require: (extensionName: string, args?: any) => void;
23
+ unmountExtension: (extensionName: string) => void;
22
24
  extensionAdd(extensionName: string, load: () => void): void;
23
25
  routeAdd(route: string, extensionName: string, idDiv: string, gabarit?: Gabarit, gabaritOptions?: object): void;
24
26
  transitionTo(stateName: string, args: {}, options?: {
@@ -4,6 +4,7 @@ import type { WidgetTaxonomy } from 'jamespot-user-api';
4
4
  declare type InputTaxonomyConfig = {
5
5
  name: string;
6
6
  placeholder: string;
7
+ type: string;
7
8
  };
8
9
  export declare const InputTaxonomy: (widget: WidgetTaxonomy, config: InputTaxonomyConfig) => <TFieldValues extends FieldValues>(props: Required<Pick<import("react-hook-form").UseControllerProps<TFieldValues, import("react-hook-form").Path<TFieldValues>>, "name" | "control">> & {
9
10
  label: string;
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { UseFormReset, FieldValues } from 'react-hook-form';
2
+ import type { FieldValues } from 'react-hook-form';
3
3
  import type { Widget } from 'jamespot-user-api';
4
4
  import type { NameControl } from 'jamespot-react-components';
5
+ import { UseFormReturn } from 'react-hook-form/dist/types';
5
6
  export declare type IncludeCustom = {
6
7
  includes: 'tags';
7
8
  };
@@ -58,7 +59,5 @@ export declare type DisplayFormProps<TFieldValues extends FieldValues = FieldVal
58
59
  onSubmit: any;
59
60
  buttons: React.ReactNode;
60
61
  };
61
- export declare type DisplayFormRef = {
62
- reset: UseFormReset<any>;
63
- };
62
+ export declare type DisplayFormRef = UseFormReturn<any>;
64
63
  export declare type Displayer<TFieldValues extends FieldValues = FieldValues> = Array<DisplayerElement<TFieldValues>>;
@@ -53,6 +53,22 @@ export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelector
53
53
  type: "error" | "success" | "warning";
54
54
  }>;
55
55
  userCurrent: import("jamespot-user-api").jUserList;
56
+ network: import("redux").CombinedState<{
57
+ statics: {
58
+ networkPublic?: {
59
+ uri: string;
60
+ title: string;
61
+ type: string;
62
+ mainType: string;
63
+ } | undefined;
64
+ networkMe?: {
65
+ uri: string;
66
+ title: string;
67
+ type: string;
68
+ mainType: string;
69
+ } | undefined;
70
+ };
71
+ }>;
56
72
  }>>;
57
73
  export declare type ArticleSelectorType = typeof articlesSelector;
58
74
  export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -53,6 +53,22 @@ export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<U
53
53
  type: "error" | "success" | "warning";
54
54
  }>;
55
55
  userCurrent: import("jamespot-user-api").jUserList;
56
+ network: import("redux").CombinedState<{
57
+ statics: {
58
+ networkPublic?: {
59
+ uri: string;
60
+ title: string;
61
+ type: string;
62
+ mainType: string;
63
+ } | undefined;
64
+ networkMe?: {
65
+ uri: string;
66
+ title: string;
67
+ type: string;
68
+ mainType: string;
69
+ } | undefined;
70
+ };
71
+ }>;
56
72
  }>>;
57
73
  export declare type UsersSelectorType = typeof usersSelector;
58
74
  export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -53,6 +53,22 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
53
53
  type: "error" | "success" | "warning";
54
54
  }>;
55
55
  userCurrent: import("jamespot-user-api").jUserList;
56
+ network: import("redux").CombinedState<{
57
+ statics: {
58
+ networkPublic?: {
59
+ uri: string;
60
+ title: string;
61
+ type: string;
62
+ mainType: string;
63
+ } | undefined;
64
+ networkMe?: {
65
+ uri: string;
66
+ title: string;
67
+ type: string;
68
+ mainType: string;
69
+ } | undefined;
70
+ };
71
+ }>;
56
72
  }>, import("redux").AnyAction, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
57
73
  entities: import("redux").CombinedState<{
58
74
  applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").ApplicationType>;
@@ -79,6 +95,22 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
79
95
  type: "error" | "success" | "warning";
80
96
  }>;
81
97
  userCurrent: import("jamespot-user-api").jUserList;
98
+ network: import("redux").CombinedState<{
99
+ statics: {
100
+ networkPublic?: {
101
+ uri: string;
102
+ title: string;
103
+ type: string;
104
+ mainType: string;
105
+ } | undefined;
106
+ networkMe?: {
107
+ uri: string;
108
+ title: string;
109
+ type: string;
110
+ mainType: string;
111
+ } | undefined;
112
+ };
113
+ }>;
82
114
  }, import("redux").AnyAction, {
83
115
  jApi: import("jamespot-user-api").JamespotUserApi;
84
116
  }>[]>;
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  readonly ButtonFile: "JRCButtonFile";
16
16
  readonly Card: "JRCCard";
17
17
  readonly CardImg: "JRCCardImg";
18
+ readonly Checkbox: "JRCCheckbox";
18
19
  readonly ClickAwayListener: "ClickAwayListener";
19
20
  readonly BETA_ColorPicker: "BETA_JRCColorPicker";
20
21
  readonly Column: "JRCColumn";
@@ -77,6 +78,7 @@ declare const _default: {
77
78
  readonly InputSelect: "JRCInputSelect";
78
79
  readonly InputSelectHierarchicalTree: "JRCInputSelectHierarchicalTree";
79
80
  readonly InputSelectList: "JRCInputSelectList";
81
+ readonly InputTaxonomy: "JRCInputTaxonomy";
80
82
  readonly InputText: "JRCInputText";
81
83
  readonly InputTextIconButton: "JRCInputTextIconButton";
82
84
  readonly InputTextarea: "JRCInputTextarea";
@@ -20,6 +20,7 @@ export interface ReactCore {
20
20
  socket?: ReactSocket;
21
21
  router: ReactRouter;
22
22
  require: (extensionName: string, args?: any) => void;
23
+ unmountExtension: (extensionName: string, args?: any) => void;
23
24
  extensionAdd: (extensionName: string, load: () => void) => void;
24
25
  routeAdd: (route: string, extensionName: string, idDiv: string, gabarit?: Gabarit, gabaritOptions?: object) => void;
25
26
  transitionTo: (stateName: string, args: {}, options?: {
@@ -35,8 +36,12 @@ export interface ReactCore {
35
36
  export interface ReactExtensions {
36
37
  [key: string]: any;
37
38
  }
39
+ export declare type ReactLoadedExtensions = {
40
+ [key: string]: ReactExtensionContainer | undefined;
41
+ };
38
42
  export interface ReactExtension {
39
43
  initExtension: (args?: any) => void;
44
+ unmountExtension: (node?: Element) => void;
40
45
  }
41
46
  export interface ReactExtensionContainer {
42
47
  default: ReactExtension;
@@ -114,6 +119,12 @@ export declare type JType = {
114
119
  type: string;
115
120
  mainType: string;
116
121
  };
122
+ declare type Networks = {
123
+ networkPublic: {
124
+ uri: string;
125
+ title: string;
126
+ };
127
+ };
117
128
  export interface WindowJ {
118
129
  reactLayout?: boolean;
119
130
  react: ReactCore;
@@ -131,6 +142,7 @@ export interface WindowJ {
131
142
  urlBase: string;
132
143
  jlandUrlBase: string;
133
144
  types: JType[];
145
+ networks: Networks;
134
146
  }
135
147
  export declare type IsAppActivateProps = {
136
148
  dependency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.115",
3
+ "version": "1.1.116",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -66,9 +66,9 @@
66
66
  "dependencies": {
67
67
  "@reduxjs/toolkit": "^1.9.0",
68
68
  "history": "^5.3.0",
69
- "jamespot-front-business": "^1.1.20",
70
- "jamespot-react-components": "^1.0.144",
71
- "jamespot-user-api": "^1.0.114",
69
+ "jamespot-front-business": "^1.1.21",
70
+ "jamespot-react-components": "^1.0.145",
71
+ "jamespot-user-api": "^1.0.115",
72
72
  "react": "^17.0.2",
73
73
  "react-dom": "^17.0.2",
74
74
  "react-hook-form": "^7.25.0",