jamespot-react-core 1.1.197 → 1.1.199
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/{940.621bece669f6c8feecb4.chunk.js → 940.6eb1159cc73c9ccc4a4b.chunk.js} +32 -32
- package/build/940.6eb1159cc73c9ccc4a4b.chunk.js.map +1 -0
- package/build/app.bundle.js +301 -301
- package/build/app.bundle.js.map +1 -1
- package/build/src/components/widgets/wrapper/JRCWidgetDatasourceTableWrapper.d.ts +1 -1
- package/build/src/components/widgets/wrapper/JRCWidgetExcelDatasourceTableWrapper.d.ts +1 -1
- package/build/src/hooks/useAI.d.ts +1 -1
- package/build/src/initTinymce.d.ts +1 -1
- package/build/src/redux/store.d.ts +40 -28
- package/build/src/utils/types.d.ts +2 -4
- package/package.json +4 -4
- package/script/traduction-react.php +7 -7
- package/build/940.621bece669f6c8feecb4.chunk.js.map +0 -1
|
@@ -3,8 +3,8 @@ import { WidgetDatasourceTableContent, WidgetDisplayMode } from 'jamespot-user-a
|
|
|
3
3
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const AbsoluteWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const WidgetDatasourceTableWrapper: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, mode, }: {
|
|
6
|
-
limit?: number | boolean | undefined;
|
|
7
6
|
uri?: string | undefined;
|
|
7
|
+
limit?: number | boolean | undefined;
|
|
8
8
|
tableColumnsData?: {
|
|
9
9
|
name?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
@@ -3,8 +3,8 @@ import { WidgetDisplayMode, WidgetExcelDatasourceTableContent } from 'jamespot-u
|
|
|
3
3
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const AbsoluteWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const WidgetExcelDatasourceTableWrapper: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, mode, }: {
|
|
6
|
-
limit?: number | boolean | undefined;
|
|
7
6
|
uri?: string | undefined;
|
|
7
|
+
limit?: number | boolean | undefined;
|
|
8
8
|
tableColumnsData?: {
|
|
9
9
|
name?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
@@ -8,5 +8,5 @@ export type JiaTextEnhanceQuery = {
|
|
|
8
8
|
export declare const useAI: () => {
|
|
9
9
|
readonly query: JiaTextEnhanceQuery | undefined;
|
|
10
10
|
readonly ext: import("jamespot-react-components/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions").TinyMCEExtension;
|
|
11
|
-
readonly isActive:
|
|
11
|
+
readonly isActive: number | false | null | undefined;
|
|
12
12
|
};
|
|
@@ -113,8 +113,8 @@ declare const staticReducers: {
|
|
|
113
113
|
plugins: string[];
|
|
114
114
|
text_patterns: {
|
|
115
115
|
start: string;
|
|
116
|
-
end?: string | undefined;
|
|
117
116
|
format?: string | undefined;
|
|
117
|
+
end?: string | undefined;
|
|
118
118
|
cmd?: string | undefined;
|
|
119
119
|
}[];
|
|
120
120
|
menubar: boolean;
|
|
@@ -222,8 +222,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
222
222
|
plugins: string[];
|
|
223
223
|
text_patterns: {
|
|
224
224
|
start: string;
|
|
225
|
-
end?: string | undefined;
|
|
226
225
|
format?: string | undefined;
|
|
226
|
+
end?: string | undefined;
|
|
227
227
|
cmd?: string | undefined;
|
|
228
228
|
}[];
|
|
229
229
|
menubar: boolean;
|
|
@@ -415,10 +415,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
415
415
|
title: string;
|
|
416
416
|
_url: string;
|
|
417
417
|
} & {
|
|
418
|
-
[key: string]: string | number | null;
|
|
418
|
+
[key: string]: string | number | null | undefined;
|
|
419
419
|
level: 0 | 3 | 5 | 9;
|
|
420
420
|
dateCreation: string;
|
|
421
421
|
dateModified: string;
|
|
422
|
+
variant?: "extraBot" | undefined;
|
|
422
423
|
};
|
|
423
424
|
_right: import("jamespot-user-api").Rights;
|
|
424
425
|
_audience: (import("jamespot-user-api").jUserLittle | {
|
|
@@ -477,8 +478,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
477
478
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
478
479
|
uniqid: string;
|
|
479
480
|
content: {
|
|
480
|
-
limit?: number | boolean | undefined;
|
|
481
481
|
uri?: string | undefined;
|
|
482
|
+
limit?: number | boolean | undefined;
|
|
482
483
|
tableColumnsData?: {
|
|
483
484
|
name?: string | undefined;
|
|
484
485
|
label?: string | undefined;
|
|
@@ -606,8 +607,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
606
607
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
607
608
|
uniqid: string;
|
|
608
609
|
content: {
|
|
609
|
-
limit?: number | boolean | undefined;
|
|
610
610
|
uri?: string | undefined;
|
|
611
|
+
limit?: number | boolean | undefined;
|
|
611
612
|
tableColumnsData?: {
|
|
612
613
|
name?: string | undefined;
|
|
613
614
|
label?: string | undefined;
|
|
@@ -663,10 +664,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
663
664
|
title: string;
|
|
664
665
|
_url: string;
|
|
665
666
|
} & {
|
|
666
|
-
[key: string]: string | number | null;
|
|
667
|
+
[key: string]: string | number | null | undefined;
|
|
667
668
|
level: 0 | 3 | 5 | 9;
|
|
668
669
|
dateCreation: string;
|
|
669
670
|
dateModified: string;
|
|
671
|
+
variant?: "extraBot" | undefined;
|
|
670
672
|
};
|
|
671
673
|
_right: import("jamespot-user-api").Rights;
|
|
672
674
|
tvChannelType: "DYNAMIC";
|
|
@@ -764,8 +766,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
764
766
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
765
767
|
uniqid: string;
|
|
766
768
|
content: {
|
|
767
|
-
limit?: number | boolean | undefined;
|
|
768
769
|
uri?: string | undefined;
|
|
770
|
+
limit?: number | boolean | undefined;
|
|
769
771
|
tableColumnsData?: {
|
|
770
772
|
name?: string | undefined;
|
|
771
773
|
label?: string | undefined;
|
|
@@ -821,10 +823,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
821
823
|
title: string;
|
|
822
824
|
_url: string;
|
|
823
825
|
} & {
|
|
824
|
-
[key: string]: string | number | null;
|
|
826
|
+
[key: string]: string | number | null | undefined;
|
|
825
827
|
level: 0 | 3 | 5 | 9;
|
|
826
828
|
dateCreation: string;
|
|
827
829
|
dateModified: string;
|
|
830
|
+
variant?: "extraBot" | undefined;
|
|
828
831
|
};
|
|
829
832
|
_right: import("jamespot-user-api").Rights;
|
|
830
833
|
tvChannelType: "SLIDESHOW";
|
|
@@ -895,8 +898,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
895
898
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
896
899
|
uniqid: string;
|
|
897
900
|
content: {
|
|
898
|
-
limit?: number | boolean | undefined;
|
|
899
901
|
uri?: string | undefined;
|
|
902
|
+
limit?: number | boolean | undefined;
|
|
900
903
|
tableColumnsData?: {
|
|
901
904
|
name?: string | undefined;
|
|
902
905
|
label?: string | undefined;
|
|
@@ -977,8 +980,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
977
980
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
978
981
|
uniqid: string;
|
|
979
982
|
content: {
|
|
980
|
-
limit?: number | boolean | undefined;
|
|
981
983
|
uri?: string | undefined;
|
|
984
|
+
limit?: number | boolean | undefined;
|
|
982
985
|
tableColumnsData?: {
|
|
983
986
|
name?: string | undefined;
|
|
984
987
|
label?: string | undefined;
|
|
@@ -1061,6 +1064,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1061
1064
|
title?: string | undefined;
|
|
1062
1065
|
_url?: string | undefined;
|
|
1063
1066
|
level?: 0 | 3 | 5 | 9 | undefined;
|
|
1067
|
+
variant?: "extraBot" | undefined;
|
|
1064
1068
|
}>;
|
|
1065
1069
|
flushedWidgets: string[];
|
|
1066
1070
|
rtObjectStack: {
|
|
@@ -1162,8 +1166,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1162
1166
|
plugins: string[];
|
|
1163
1167
|
text_patterns: {
|
|
1164
1168
|
start: string;
|
|
1165
|
-
end?: string | undefined;
|
|
1166
1169
|
format?: string | undefined;
|
|
1170
|
+
end?: string | undefined;
|
|
1167
1171
|
cmd?: string | undefined;
|
|
1168
1172
|
}[];
|
|
1169
1173
|
menubar: boolean;
|
|
@@ -1355,10 +1359,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1355
1359
|
title: string;
|
|
1356
1360
|
_url: string;
|
|
1357
1361
|
} & {
|
|
1358
|
-
[key: string]: string | number | null;
|
|
1362
|
+
[key: string]: string | number | null | undefined;
|
|
1359
1363
|
level: 0 | 3 | 5 | 9;
|
|
1360
1364
|
dateCreation: string;
|
|
1361
1365
|
dateModified: string;
|
|
1366
|
+
variant?: "extraBot" | undefined;
|
|
1362
1367
|
};
|
|
1363
1368
|
_right: import("jamespot-user-api").Rights;
|
|
1364
1369
|
_audience: (import("jamespot-user-api").jUserLittle | {
|
|
@@ -1417,8 +1422,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1417
1422
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
1418
1423
|
uniqid: string;
|
|
1419
1424
|
content: {
|
|
1420
|
-
limit?: number | boolean | undefined;
|
|
1421
1425
|
uri?: string | undefined;
|
|
1426
|
+
limit?: number | boolean | undefined;
|
|
1422
1427
|
tableColumnsData?: {
|
|
1423
1428
|
name?: string | undefined;
|
|
1424
1429
|
label?: string | undefined;
|
|
@@ -1546,8 +1551,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1546
1551
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
1547
1552
|
uniqid: string;
|
|
1548
1553
|
content: {
|
|
1549
|
-
limit?: number | boolean | undefined;
|
|
1550
1554
|
uri?: string | undefined;
|
|
1555
|
+
limit?: number | boolean | undefined;
|
|
1551
1556
|
tableColumnsData?: {
|
|
1552
1557
|
name?: string | undefined;
|
|
1553
1558
|
label?: string | undefined;
|
|
@@ -1603,10 +1608,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1603
1608
|
title: string;
|
|
1604
1609
|
_url: string;
|
|
1605
1610
|
} & {
|
|
1606
|
-
[key: string]: string | number | null;
|
|
1611
|
+
[key: string]: string | number | null | undefined;
|
|
1607
1612
|
level: 0 | 3 | 5 | 9;
|
|
1608
1613
|
dateCreation: string;
|
|
1609
1614
|
dateModified: string;
|
|
1615
|
+
variant?: "extraBot" | undefined;
|
|
1610
1616
|
};
|
|
1611
1617
|
_right: import("jamespot-user-api").Rights;
|
|
1612
1618
|
tvChannelType: "DYNAMIC";
|
|
@@ -1704,8 +1710,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1704
1710
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
1705
1711
|
uniqid: string;
|
|
1706
1712
|
content: {
|
|
1707
|
-
limit?: number | boolean | undefined;
|
|
1708
1713
|
uri?: string | undefined;
|
|
1714
|
+
limit?: number | boolean | undefined;
|
|
1709
1715
|
tableColumnsData?: {
|
|
1710
1716
|
name?: string | undefined;
|
|
1711
1717
|
label?: string | undefined;
|
|
@@ -1761,10 +1767,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1761
1767
|
title: string;
|
|
1762
1768
|
_url: string;
|
|
1763
1769
|
} & {
|
|
1764
|
-
[key: string]: string | number | null;
|
|
1770
|
+
[key: string]: string | number | null | undefined;
|
|
1765
1771
|
level: 0 | 3 | 5 | 9;
|
|
1766
1772
|
dateCreation: string;
|
|
1767
1773
|
dateModified: string;
|
|
1774
|
+
variant?: "extraBot" | undefined;
|
|
1768
1775
|
};
|
|
1769
1776
|
_right: import("jamespot-user-api").Rights;
|
|
1770
1777
|
tvChannelType: "SLIDESHOW";
|
|
@@ -1835,8 +1842,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1835
1842
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
1836
1843
|
uniqid: string;
|
|
1837
1844
|
content: {
|
|
1838
|
-
limit?: number | boolean | undefined;
|
|
1839
1845
|
uri?: string | undefined;
|
|
1846
|
+
limit?: number | boolean | undefined;
|
|
1840
1847
|
tableColumnsData?: {
|
|
1841
1848
|
name?: string | undefined;
|
|
1842
1849
|
label?: string | undefined;
|
|
@@ -1917,8 +1924,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
1917
1924
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
1918
1925
|
uniqid: string;
|
|
1919
1926
|
content: {
|
|
1920
|
-
limit?: number | boolean | undefined;
|
|
1921
1927
|
uri?: string | undefined;
|
|
1928
|
+
limit?: number | boolean | undefined;
|
|
1922
1929
|
tableColumnsData?: {
|
|
1923
1930
|
name?: string | undefined;
|
|
1924
1931
|
label?: string | undefined;
|
|
@@ -2001,6 +2008,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
2001
2008
|
title?: string | undefined;
|
|
2002
2009
|
_url?: string | undefined;
|
|
2003
2010
|
level?: 0 | 3 | 5 | 9 | undefined;
|
|
2011
|
+
variant?: "extraBot" | undefined;
|
|
2004
2012
|
}>;
|
|
2005
2013
|
flushedWidgets: string[];
|
|
2006
2014
|
rtObjectStack: {
|
|
@@ -2107,8 +2115,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2107
2115
|
plugins: string[];
|
|
2108
2116
|
text_patterns: {
|
|
2109
2117
|
start: string;
|
|
2110
|
-
end?: string | undefined;
|
|
2111
2118
|
format?: string | undefined;
|
|
2119
|
+
end?: string | undefined;
|
|
2112
2120
|
cmd?: string | undefined;
|
|
2113
2121
|
}[];
|
|
2114
2122
|
menubar: boolean;
|
|
@@ -2300,10 +2308,11 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2300
2308
|
title: string;
|
|
2301
2309
|
_url: string;
|
|
2302
2310
|
} & {
|
|
2303
|
-
[key: string]: string | number | null;
|
|
2311
|
+
[key: string]: string | number | null | undefined;
|
|
2304
2312
|
level: 0 | 3 | 5 | 9;
|
|
2305
2313
|
dateCreation: string;
|
|
2306
2314
|
dateModified: string;
|
|
2315
|
+
variant?: "extraBot" | undefined;
|
|
2307
2316
|
};
|
|
2308
2317
|
_right: import("jamespot-user-api").Rights;
|
|
2309
2318
|
_audience: (import("jamespot-user-api").jUserLittle | {
|
|
@@ -2362,8 +2371,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2362
2371
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
2363
2372
|
uniqid: string;
|
|
2364
2373
|
content: {
|
|
2365
|
-
limit?: number | boolean | undefined;
|
|
2366
2374
|
uri?: string | undefined;
|
|
2375
|
+
limit?: number | boolean | undefined;
|
|
2367
2376
|
tableColumnsData?: {
|
|
2368
2377
|
name?: string | undefined;
|
|
2369
2378
|
label?: string | undefined;
|
|
@@ -2491,8 +2500,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2491
2500
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
2492
2501
|
uniqid: string;
|
|
2493
2502
|
content: {
|
|
2494
|
-
limit?: number | boolean | undefined;
|
|
2495
2503
|
uri?: string | undefined;
|
|
2504
|
+
limit?: number | boolean | undefined;
|
|
2496
2505
|
tableColumnsData?: {
|
|
2497
2506
|
name?: string | undefined;
|
|
2498
2507
|
label?: string | undefined;
|
|
@@ -2548,10 +2557,11 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2548
2557
|
title: string;
|
|
2549
2558
|
_url: string;
|
|
2550
2559
|
} & {
|
|
2551
|
-
[key: string]: string | number | null;
|
|
2560
|
+
[key: string]: string | number | null | undefined;
|
|
2552
2561
|
level: 0 | 3 | 5 | 9;
|
|
2553
2562
|
dateCreation: string;
|
|
2554
2563
|
dateModified: string;
|
|
2564
|
+
variant?: "extraBot" | undefined;
|
|
2555
2565
|
};
|
|
2556
2566
|
_right: import("jamespot-user-api").Rights;
|
|
2557
2567
|
tvChannelType: "DYNAMIC";
|
|
@@ -2649,8 +2659,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2649
2659
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
2650
2660
|
uniqid: string;
|
|
2651
2661
|
content: {
|
|
2652
|
-
limit?: number | boolean | undefined;
|
|
2653
2662
|
uri?: string | undefined;
|
|
2663
|
+
limit?: number | boolean | undefined;
|
|
2654
2664
|
tableColumnsData?: {
|
|
2655
2665
|
name?: string | undefined;
|
|
2656
2666
|
label?: string | undefined;
|
|
@@ -2706,10 +2716,11 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2706
2716
|
title: string;
|
|
2707
2717
|
_url: string;
|
|
2708
2718
|
} & {
|
|
2709
|
-
[key: string]: string | number | null;
|
|
2719
|
+
[key: string]: string | number | null | undefined;
|
|
2710
2720
|
level: 0 | 3 | 5 | 9;
|
|
2711
2721
|
dateCreation: string;
|
|
2712
2722
|
dateModified: string;
|
|
2723
|
+
variant?: "extraBot" | undefined;
|
|
2713
2724
|
};
|
|
2714
2725
|
_right: import("jamespot-user-api").Rights;
|
|
2715
2726
|
tvChannelType: "SLIDESHOW";
|
|
@@ -2780,8 +2791,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2780
2791
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
2781
2792
|
uniqid: string;
|
|
2782
2793
|
content: {
|
|
2783
|
-
limit?: number | boolean | undefined;
|
|
2784
2794
|
uri?: string | undefined;
|
|
2795
|
+
limit?: number | boolean | undefined;
|
|
2785
2796
|
tableColumnsData?: {
|
|
2786
2797
|
name?: string | undefined;
|
|
2787
2798
|
label?: string | undefined;
|
|
@@ -2862,8 +2873,8 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2862
2873
|
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
2863
2874
|
uniqid: string;
|
|
2864
2875
|
content: {
|
|
2865
|
-
limit?: number | boolean | undefined;
|
|
2866
2876
|
uri?: string | undefined;
|
|
2877
|
+
limit?: number | boolean | undefined;
|
|
2867
2878
|
tableColumnsData?: {
|
|
2868
2879
|
name?: string | undefined;
|
|
2869
2880
|
label?: string | undefined;
|
|
@@ -2946,6 +2957,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
|
|
|
2946
2957
|
title?: string | undefined;
|
|
2947
2958
|
_url?: string | undefined;
|
|
2948
2959
|
level?: 0 | 3 | 5 | 9 | undefined;
|
|
2960
|
+
variant?: "extraBot" | undefined;
|
|
2949
2961
|
}>;
|
|
2950
2962
|
flushedWidgets: string[];
|
|
2951
2963
|
rtObjectStack: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationType, jUserList, Model, Readable, TinyMCECommonOptions, TinyMCEDynamicOptions, TinyMCEExtendedOptions } from 'jamespot-user-api';
|
|
1
|
+
import { ApplicationType, HookListType, jUserList, Model, Readable, TinyMCECommonOptions, TinyMCEDynamicOptions, TinyMCEExtendedOptions } from 'jamespot-user-api';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
import { RouteObject } from 'react-router-dom';
|
|
4
4
|
import { TwoColLayoutRoute, TwoColLayoutRoutes } from '../components/types';
|
|
@@ -94,9 +94,7 @@ export interface WindowJ {
|
|
|
94
94
|
jUserCurrent?: jUserList;
|
|
95
95
|
jamespotReactTheme: any;
|
|
96
96
|
applications: ApplicationType[];
|
|
97
|
-
hooks:
|
|
98
|
-
[name: string]: any;
|
|
99
|
-
};
|
|
97
|
+
hooks: HookListType;
|
|
100
98
|
models: Model<string>[];
|
|
101
99
|
debug: any;
|
|
102
100
|
urlBase: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.199",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
57
57
|
"eslint-plugin-import": "^2.31.0",
|
|
58
58
|
"history": "^5.3.0",
|
|
59
|
-
"jamespot-front-business": "^1.1.
|
|
60
|
-
"jamespot-react-components": "^1.0.
|
|
61
|
-
"jamespot-user-api": "^1.0.
|
|
59
|
+
"jamespot-front-business": "^1.1.97",
|
|
60
|
+
"jamespot-react-components": "^1.0.251",
|
|
61
|
+
"jamespot-user-api": "^1.0.225",
|
|
62
62
|
"marked": "^15.0.3",
|
|
63
63
|
"react": "^17.0.2",
|
|
64
64
|
"react-dom": "17.0.2",
|
|
@@ -12,6 +12,7 @@ class Translator
|
|
|
12
12
|
const EXTENSION_RESOURCE_PATH = "../../jamespot-react-extensions/src/extensions/*/translation/lang.json";
|
|
13
13
|
const EXTENSION_RESOURCE_PATH_SUB = "../../jamespot-react-extensions/src/extensions/*/*/translation/lang.json";
|
|
14
14
|
const COMPONENT_RESOURCE_PATH = "../../jamespot-react-components/src/translation/lang.json";
|
|
15
|
+
const CORE_RESOURCE_PATH = "../../jamespot-react-core/src/translation/lang.json";
|
|
15
16
|
|
|
16
17
|
const LANGUAGES = ['en', 'fr', 'es', 'fl', 'nl', 'de', 'it', 'pl', 'pt', 'ro', 'tr'];
|
|
17
18
|
|
|
@@ -33,6 +34,7 @@ class Translator
|
|
|
33
34
|
function translateReactResources()
|
|
34
35
|
{
|
|
35
36
|
$this->translateResource(self::COMPONENT_RESOURCE_PATH);
|
|
37
|
+
$this->translateResource(self::CORE_RESOURCE_PATH);
|
|
36
38
|
foreach ([self::EXTENSION_RESOURCE_PATH, self::EXTENSION_RESOURCE_PATH_SUB] as $path) {
|
|
37
39
|
foreach (glob($path) as $file) {
|
|
38
40
|
$this->translateResource($file);
|
|
@@ -58,13 +60,12 @@ class Translator
|
|
|
58
60
|
foreach ($json as $key => $value) {
|
|
59
61
|
if (array_key_exists($key, $this->traductionKeysTmp)) {
|
|
60
62
|
$output[$key] = $this->traductionKeysTmp[$key];
|
|
63
|
+
continue;
|
|
61
64
|
} else if (array_key_exists($key, $this->traductionKeys["en"])) {
|
|
62
65
|
$output[$key] = $this->traductionKeys["en"][$key];
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
} else {
|
|
67
|
-
$output[$key] = $value;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (in_array($language, ['en', 'fr', 'es'])) {
|
|
68
69
|
echo "\nKey not found: $key";
|
|
69
70
|
}
|
|
70
71
|
}
|
|
@@ -82,6 +83,5 @@ $translator->translateReactResources();
|
|
|
82
83
|
function addTrans($key, $value)
|
|
83
84
|
{
|
|
84
85
|
global $translator;
|
|
85
|
-
$
|
|
86
|
-
$translator->traductionKeysTmp[$key] = stripslashes($str);
|
|
86
|
+
$translator->traductionKeysTmp[$key] = $value;
|
|
87
87
|
}
|