jamespot-react-core 1.1.180 → 1.1.182
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/201.bundle.js +2 -0
- package/build/201.bundle.js.map +1 -0
- package/build/724.bundle.js +559 -0
- package/build/724.bundle.js.map +1 -0
- package/build/app.bundle.js +394 -380
- package/build/app.bundle.js.map +1 -1
- package/build/src/ReactCore.d.ts +1 -1
- package/build/src/components/TwoColLayout.d.ts +1 -18
- package/build/src/components/comments/CommentsBlocCommentWidgetsWrapper.d.ts +1 -2
- package/build/src/components/tinymce/JRCInputTinyMCEWithExt.d.ts +1 -1
- package/build/src/components/tinymce/extension/AIModal.d.ts +1 -1
- package/build/src/components/tinymce/extension/MarkdownModal.d.ts +7 -0
- package/build/src/components/types.d.ts +17 -1
- package/build/src/components/widgets/wrapper/JRCWidgetArticleTextWrapper.d.ts +1 -1
- package/build/src/components/widgets/wrapper/JRCWidgetDatasourceTableWrapper.d.ts +1 -2
- package/build/src/components/widgets/wrapper/utils.d.ts +1 -1
- package/build/src/displayer/components/DisplayRender.d.ts +2 -2
- package/build/src/displayer/components/inputs/InputCheckbox.d.ts +1 -1
- package/build/src/displayer/types.d.ts +1 -1
- package/build/src/hooks/useAI.d.ts +5 -1
- package/build/src/hooks/useMarkdownModal.d.ts +8 -0
- package/build/src/initReactCore.d.ts +0 -0
- package/build/src/initTinymce.d.ts +33 -0
- package/build/src/redux/initStore.d.ts +1 -0
- package/build/src/redux/slice/Article.slice.d.ts +61 -0
- package/build/src/redux/slice/User.slice.d.ts +61 -0
- package/build/src/registry/ReactRegistry.d.ts +13 -0
- package/build/src/registry/Registry.d.ts +2 -15
- package/build/src/registry/core-component-list.d.ts +1 -0
- package/build/src/registry/coreComponents.d.ts +1 -0
- package/build/src/registry/ext-component-list.d.ts +1 -0
- package/build/src/utils/types.d.ts +1 -1
- package/package.json +8 -4
- package/build/235.bundle.js +0 -559
- package/build/235.bundle.js.map +0 -1
package/build/src/ReactCore.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactCore, ReactExtensions, ReactSocket, Gabarit, ReactLoadedExtensions } from './utils/types';
|
|
2
|
-
import { ReactRegistry } from './registry/Registry';
|
|
3
2
|
import { ReactTranslation, SupportedLanguages } from './utils/translation';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import { useDisplay, useDisplayList } from './displayer/useDisplay';
|
|
6
5
|
import { ReactRouter } from './utils/router';
|
|
7
6
|
import { JInjectStore } from './redux/store';
|
|
8
7
|
import { TinyMCECommonOptions } from 'jamespot-user-api';
|
|
8
|
+
import { ReactRegistry } from './registry/ReactRegistry';
|
|
9
9
|
declare class App implements ReactCore {
|
|
10
10
|
extensions: ReactExtensions;
|
|
11
11
|
loadedExtensions: ReactLoadedExtensions;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { LayoutMode } from 'jamespot-react-components';
|
|
4
|
-
export type TwoColLayoutRoute = {
|
|
5
|
-
path: string;
|
|
6
|
-
paths?: string[];
|
|
7
|
-
key: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
label: string;
|
|
10
|
-
group?: string;
|
|
11
|
-
absolutePath?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type TwoColLayoutRoutes<T extends TwoColLayoutRoute = TwoColLayoutRoute> = Record<string, T>;
|
|
14
|
-
export type TwoColLayoutProps = {
|
|
15
|
-
extensionRoute: string;
|
|
16
|
-
routes: TwoColLayoutRoutes;
|
|
17
|
-
mode?: LayoutMode;
|
|
18
|
-
description: JRCAppColumnProps['description'];
|
|
19
|
-
};
|
|
2
|
+
import { TwoColLayoutProps } from './types';
|
|
20
3
|
export declare function TwoColLayout({ extensionRoute, routes, description, mode }: TwoColLayoutProps): React.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
|
|
2
|
-
import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { jCommentList, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
|
|
4
3
|
export declare const CommentsBlocCommentWidgetsWrapper: (props: {
|
|
5
4
|
comment: jCommentList;
|
|
6
5
|
widgets: WidgetWrapperProps[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { JRCInputTinyMCEProps } from 'jamespot-react-components';
|
|
3
|
-
import { FieldValues } from 'react-hook-form
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
export type JRCInputTinyMCEWithExtProps<T extends FieldValues> = Omit<JRCInputTinyMCEProps<T>, 'commonOptions' | 'mentionsQueries' | 'additionalExtensions'>;
|
|
5
5
|
export declare const JRCInputTinyMCEWithExt: <T extends FieldValues = FieldValues>(props: JRCInputTinyMCEWithExtProps<T>) => React.JSX.Element;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
export type { ExtensionProviderProps } from './ExtensionProvider.component';
|
|
2
2
|
export type { IfAppIsActivatedProps } from './IfAppIsActivated.component';
|
|
3
3
|
export type { RTProviderProps } from './RTProvider.component';
|
|
4
|
-
|
|
4
|
+
import type { JRCAppColumnProps, LayoutMode } from 'jamespot-react-components';
|
|
5
|
+
export type TwoColLayoutRoute = {
|
|
6
|
+
path: string;
|
|
7
|
+
paths?: string[];
|
|
8
|
+
key: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
label: string;
|
|
11
|
+
group?: string;
|
|
12
|
+
absolutePath?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type TwoColLayoutRoutes<T extends TwoColLayoutRoute = TwoColLayoutRoute> = Record<string, T>;
|
|
15
|
+
export type TwoColLayoutProps = {
|
|
16
|
+
extensionRoute: string;
|
|
17
|
+
routes: TwoColLayoutRoutes;
|
|
18
|
+
mode?: LayoutMode;
|
|
19
|
+
description: JRCAppColumnProps['description'];
|
|
20
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
|
-
import { WidgetDatasourceTableContent } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetDatasourceTableContent, WidgetDisplayMode } from 'jamespot-user-api';
|
|
4
3
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
4
|
export declare const AbsoluteWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
5
|
export declare const WrapperEditMode: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -7,7 +7,7 @@ export declare const getVisibleColumns: (tableColumnsData: {
|
|
|
7
7
|
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
8
8
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
9
9
|
}[], columns: WidgetTableColumn[]) => {
|
|
10
|
-
type: "number" | "uri" | "title" | "
|
|
10
|
+
type: "number" | "uri" | "title" | "select" | "text" | "url" | "date" | "file" | "datetime" | "email" | "transient";
|
|
11
11
|
name: string;
|
|
12
12
|
label: string;
|
|
13
13
|
widget: {} | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RenderAttributeProps } from '
|
|
1
|
+
import { RenderAttributeProps } from '../types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { WidgetOption } from 'displayer
|
|
3
|
+
import { WidgetOption } from '../displayer.utils';
|
|
4
4
|
export declare function DisplayDate({ object, attribute }: RenderAttributeProps): React.JSX.Element | null;
|
|
5
5
|
export declare function DisplayDefault({ object, attribute }: RenderAttributeProps): React.JSX.Element | null;
|
|
6
6
|
export declare function DisplayEmail({ object, attribute }: RenderAttributeProps): React.JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
|
-
import { WidgetOption } from 'displayer
|
|
4
|
+
import { WidgetOption } from '../../displayer.utils';
|
|
5
5
|
type CheckboxConfig = {
|
|
6
6
|
checkboxMode: 'radio' | 'checkbox' | 'toggle';
|
|
7
7
|
direction?: 'row' | 'column' | 'two-columns';
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
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
|
|
5
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
6
6
|
export type IncludeCustom = {
|
|
7
7
|
includes: 'tags';
|
|
8
8
|
};
|
|
@@ -5,4 +5,8 @@ export type JiaTextEnhanceQuery = {
|
|
|
5
5
|
capability: JIACapabilities;
|
|
6
6
|
text: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const useAI: () =>
|
|
8
|
+
export declare const useAI: () => {
|
|
9
|
+
readonly query: JiaTextEnhanceQuery | undefined;
|
|
10
|
+
readonly ext: import("jamespot-react-components/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions").TinyMCEExtension;
|
|
11
|
+
readonly isActive: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JTinyMCEExtensionsBuilders } from 'jamespot-react-components';
|
|
2
|
+
export declare const useMarkdownModal: () => {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onInsert: (v: string) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
ext: ReturnType<typeof JTinyMCEExtensionsBuilders.markdown>;
|
|
7
|
+
isActive?: boolean | undefined;
|
|
8
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const tinymceDynamicOptions: any;
|
|
2
|
+
export declare const tinymceExtendedOptions: any;
|
|
3
|
+
export declare const tinymceCommonOptions: {
|
|
4
|
+
height: number;
|
|
5
|
+
language: string;
|
|
6
|
+
cache_suffix: string;
|
|
7
|
+
toolbar: string;
|
|
8
|
+
content_css: string;
|
|
9
|
+
quickbars_selection_toolbar: string;
|
|
10
|
+
plugins: string[];
|
|
11
|
+
text_patterns: {
|
|
12
|
+
start: string;
|
|
13
|
+
end?: string | undefined;
|
|
14
|
+
format?: string | undefined;
|
|
15
|
+
cmd?: string | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
menubar: boolean;
|
|
18
|
+
branding: boolean;
|
|
19
|
+
skin: string;
|
|
20
|
+
convert_urls: boolean;
|
|
21
|
+
invalid_elements: string;
|
|
22
|
+
extended_valid_elements: string;
|
|
23
|
+
custom_elements: string;
|
|
24
|
+
inline_boundaries_selector: string;
|
|
25
|
+
toolbar_mode: "floating" | "sliding" | "scrolling" | "wrap";
|
|
26
|
+
promotion: boolean;
|
|
27
|
+
font_size_formats: string;
|
|
28
|
+
contextmenu: string | false;
|
|
29
|
+
paste_data_images: boolean;
|
|
30
|
+
browser_spellcheck: boolean;
|
|
31
|
+
quickbars_insert_toolbar: boolean;
|
|
32
|
+
license_key: "gpl";
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const store: import("./store").JInjectStore;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export interface Article {
|
|
3
|
+
uri: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: 'article';
|
|
6
|
+
}
|
|
7
|
+
export type ArticlesRootState = {
|
|
8
|
+
entities: {
|
|
9
|
+
articles: EntityState<Article>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const articleAdapter: import("@reduxjs/toolkit").EntityAdapter<Article>;
|
|
13
|
+
export declare const articleSlice: import("@reduxjs/toolkit").Slice<EntityState<Article>, {
|
|
14
|
+
addOne: {
|
|
15
|
+
<S extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, EntityState<Article>, S>, entity: Article): S;
|
|
16
|
+
<S_1 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, EntityState<Article>, S_1>, action: {
|
|
17
|
+
payload: Article;
|
|
18
|
+
type: string;
|
|
19
|
+
}): S_1;
|
|
20
|
+
};
|
|
21
|
+
addMany: {
|
|
22
|
+
<S_2 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, EntityState<Article>, S_2>, entities: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>): S_2;
|
|
23
|
+
<S_3 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, EntityState<Article>, S_3>, entities: {
|
|
24
|
+
payload: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>;
|
|
25
|
+
type: string;
|
|
26
|
+
}): S_3;
|
|
27
|
+
};
|
|
28
|
+
setAll: {
|
|
29
|
+
<S_4 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, EntityState<Article>, S_4>, entities: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>): S_4;
|
|
30
|
+
<S_5 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, EntityState<Article>, S_5>, entities: {
|
|
31
|
+
payload: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>;
|
|
32
|
+
type: string;
|
|
33
|
+
}): S_5;
|
|
34
|
+
};
|
|
35
|
+
}, "articles">;
|
|
36
|
+
export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelectors<Article, ArticlesRootState>;
|
|
37
|
+
export type ArticleSelectorType = typeof articlesSelector;
|
|
38
|
+
export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
39
|
+
addOne: {
|
|
40
|
+
<S extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, EntityState<Article>, S>, entity: Article): S;
|
|
41
|
+
<S_1 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, EntityState<Article>, S_1>, action: {
|
|
42
|
+
payload: Article;
|
|
43
|
+
type: string;
|
|
44
|
+
}): S_1;
|
|
45
|
+
};
|
|
46
|
+
addMany: {
|
|
47
|
+
<S_2 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, EntityState<Article>, S_2>, entities: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>): S_2;
|
|
48
|
+
<S_3 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, EntityState<Article>, S_3>, entities: {
|
|
49
|
+
payload: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>;
|
|
50
|
+
type: string;
|
|
51
|
+
}): S_3;
|
|
52
|
+
};
|
|
53
|
+
setAll: {
|
|
54
|
+
<S_4 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, EntityState<Article>, S_4>, entities: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>): S_4;
|
|
55
|
+
<S_5 extends EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, EntityState<Article>, S_5>, entities: {
|
|
56
|
+
payload: readonly Article[] | Record<import("@reduxjs/toolkit").EntityId, Article>;
|
|
57
|
+
type: string;
|
|
58
|
+
}): S_5;
|
|
59
|
+
};
|
|
60
|
+
}, "articles">;
|
|
61
|
+
export type ArticleActionsType = typeof articleActions;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export interface User {
|
|
3
|
+
uri: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: 'user';
|
|
6
|
+
}
|
|
7
|
+
export type UsersRootState = {
|
|
8
|
+
entities: {
|
|
9
|
+
users: EntityState<User>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const userAdapter: import("@reduxjs/toolkit").EntityAdapter<User>;
|
|
13
|
+
export declare const userSlice: import("@reduxjs/toolkit").Slice<EntityState<User>, {
|
|
14
|
+
addOne: {
|
|
15
|
+
<S extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, EntityState<User>, S>, entity: User): S;
|
|
16
|
+
<S_1 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, EntityState<User>, S_1>, action: {
|
|
17
|
+
payload: User;
|
|
18
|
+
type: string;
|
|
19
|
+
}): S_1;
|
|
20
|
+
};
|
|
21
|
+
addMany: {
|
|
22
|
+
<S_2 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, EntityState<User>, S_2>, entities: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>): S_2;
|
|
23
|
+
<S_3 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, EntityState<User>, S_3>, entities: {
|
|
24
|
+
payload: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>;
|
|
25
|
+
type: string;
|
|
26
|
+
}): S_3;
|
|
27
|
+
};
|
|
28
|
+
setAll: {
|
|
29
|
+
<S_4 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, EntityState<User>, S_4>, entities: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>): S_4;
|
|
30
|
+
<S_5 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, EntityState<User>, S_5>, entities: {
|
|
31
|
+
payload: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>;
|
|
32
|
+
type: string;
|
|
33
|
+
}): S_5;
|
|
34
|
+
};
|
|
35
|
+
}, "users">;
|
|
36
|
+
export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<User, UsersRootState>;
|
|
37
|
+
export type UsersSelectorType = typeof usersSelector;
|
|
38
|
+
export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
39
|
+
addOne: {
|
|
40
|
+
<S extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, EntityState<User>, S>, entity: User): S;
|
|
41
|
+
<S_1 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, EntityState<User>, S_1>, action: {
|
|
42
|
+
payload: User;
|
|
43
|
+
type: string;
|
|
44
|
+
}): S_1;
|
|
45
|
+
};
|
|
46
|
+
addMany: {
|
|
47
|
+
<S_2 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, EntityState<User>, S_2>, entities: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>): S_2;
|
|
48
|
+
<S_3 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, EntityState<User>, S_3>, entities: {
|
|
49
|
+
payload: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>;
|
|
50
|
+
type: string;
|
|
51
|
+
}): S_3;
|
|
52
|
+
};
|
|
53
|
+
setAll: {
|
|
54
|
+
<S_4 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, EntityState<User>, S_4>, entities: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>): S_4;
|
|
55
|
+
<S_5 extends EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, EntityState<User>, S_5>, entities: {
|
|
56
|
+
payload: readonly User[] | Record<import("@reduxjs/toolkit").EntityId, User>;
|
|
57
|
+
type: string;
|
|
58
|
+
}): S_5;
|
|
59
|
+
};
|
|
60
|
+
}, "users">;
|
|
61
|
+
export type UserActionsType = typeof userActions;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AllComponentListKey, AllComponentListType, AllComponentTypes } from './types';
|
|
3
|
+
export interface RegistryComponents {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare class ReactRegistry {
|
|
7
|
+
list: RegistryComponents;
|
|
8
|
+
listLazy: RegistryComponents;
|
|
9
|
+
getComponent(name: string): any;
|
|
10
|
+
registerLazyComponent(name: string, promise: React.LazyExoticComponent<React.ComponentType<any>>): void;
|
|
11
|
+
registerLib(componentList: Partial<AllComponentListType>, importPromise: any): void;
|
|
12
|
+
getLazyComponent<T extends AllComponentListKey>(name: T): AllComponentTypes[AllComponentListType[T]];
|
|
13
|
+
}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface RegistryComponents {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export declare class ReactRegistry {
|
|
7
|
-
list: RegistryComponents;
|
|
8
|
-
listLazy: RegistryComponents;
|
|
9
|
-
getComponent(name: string): any;
|
|
10
|
-
registerLazyComponent(name: string, promise: React.LazyExoticComponent<React.ComponentType<any>>): void;
|
|
11
|
-
registerLib(componentList: Partial<AllComponentListType>, importPromise: any): void;
|
|
12
|
-
getLazyComponent<T extends AllComponentListKey>(name: T): AllComponentTypes[AllComponentListType[T]];
|
|
13
|
-
}
|
|
14
|
-
declare const Registry: ReactRegistry;
|
|
15
|
-
export { Registry };
|
|
1
|
+
import { ReactRegistry } from './ReactRegistry';
|
|
2
|
+
export declare const Registry: ReactRegistry;
|
|
@@ -12,6 +12,7 @@ export declare const coreComponentsMapping: {
|
|
|
12
12
|
readonly InputTinyMCEWithExt: "JRCInputTinyMCEWithExt";
|
|
13
13
|
readonly ModalAudience: "ModalAudience";
|
|
14
14
|
readonly TinyMCEAIModal: "AIModal";
|
|
15
|
+
readonly TinyMCEMarkdownModal: "MarkdownModal";
|
|
15
16
|
readonly TwoColLayout: "TwoColLayout";
|
|
16
17
|
readonly WidgetWrapperCore: "WidgetWrapperCore";
|
|
17
18
|
readonly WidgetList: "WidgetList";
|
|
@@ -10,6 +10,7 @@ export { EditorsPortal } from '../components/editors/EditorsPortal';
|
|
|
10
10
|
export { Empty } from '../components/Empty';
|
|
11
11
|
export { JRCInputTinyMCEWithExt } from '../components/tinymce/JRCInputTinyMCEWithExt';
|
|
12
12
|
export { JRCInputTinyMCEWithExtRaw } from '../components/tinymce/JRCInputTinyMCEWithExtRaw';
|
|
13
|
+
export { MarkdownModal } from '../components/tinymce/extension/MarkdownModal';
|
|
13
14
|
export { ModalAudience } from '../components/modals/ModalAudience';
|
|
14
15
|
export { TwoColLayout } from '../components/TwoColLayout';
|
|
15
16
|
export { WidgetList } from '../components/widgets/WidgetList/WidgetList';
|
|
@@ -93,6 +93,7 @@ declare const _default: {
|
|
|
93
93
|
readonly InputSelectRaw: "JRCInputSelectRaw";
|
|
94
94
|
readonly InputText: "JRCInputText";
|
|
95
95
|
readonly InputTextarea: "JRCInputTextarea";
|
|
96
|
+
readonly InputTextareaRaw: "JRCInputTextareaRaw";
|
|
96
97
|
readonly InputPassword: "JRCInputPassword";
|
|
97
98
|
readonly InputTextIconButton: "JRCInputTextIconButton";
|
|
98
99
|
readonly InputTextRaw: "JRCInputTextRaw";
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { RouteObject } from 'react-router-dom';
|
|
4
4
|
import { TwoColLayoutRoute, TwoColLayoutRoutes } from '../components/types';
|
|
5
5
|
import { useDisplay, useDisplayList } from '../displayer/useDisplay';
|
|
6
|
-
import { ReactRegistry } from '../registry/Registry';
|
|
7
6
|
import { ReactRouter } from './router';
|
|
8
7
|
import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
|
|
8
|
+
import { ReactRegistry } from '../registry/ReactRegistry';
|
|
9
9
|
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';
|
|
10
10
|
export interface ReactCore {
|
|
11
11
|
extensions: ReactExtensions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.182",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -52,10 +52,14 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@reduxjs/toolkit": "^1.9.0",
|
|
55
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
56
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
57
|
+
"eslint-plugin-import": "^2.31.0",
|
|
55
58
|
"history": "^5.3.0",
|
|
56
|
-
"jamespot-front-business": "^1.1.
|
|
57
|
-
"jamespot-react-components": "^1.0.
|
|
58
|
-
"jamespot-user-api": "^1.0.
|
|
59
|
+
"jamespot-front-business": "^1.1.82",
|
|
60
|
+
"jamespot-react-components": "^1.0.231",
|
|
61
|
+
"jamespot-user-api": "^1.0.209",
|
|
62
|
+
"marked": "^15.0.3",
|
|
59
63
|
"react": "^17.0.2",
|
|
60
64
|
"react-dom": "^17.0.2",
|
|
61
65
|
"react-hook-form": "^7.25.0",
|