jamespot-react-core 1.3.67 → 1.3.69
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/LICENSE +21 -0
- package/build/80.90138fc34a499276e635.chunk.js +1 -0
- package/build/app.bundle.js +1236 -1117
- package/build/app.bundle.js.LICENSE.txt +10 -9
- package/build/app.bundle.js.map +1 -1
- package/build/socket.sharedworker.50582fa5a376b37603e0.js.map +1 -1
- package/build/src/App.d.ts +2 -1
- package/build/src/components/widgets/utils.d.ts +2 -0
- package/build/src/components/widgets/wrapper/JRCWidgetCoverWrapper.d.ts +8 -0
- package/build/src/components/widgets/wrapper/utils.d.ts +4 -0
- package/build/src/redux/store.d.ts +6 -6
- package/build/src/registry/ext-component-list.d.ts +2 -0
- package/build/src/types.d.ts +1 -1
- package/package.json +4 -5
- package/eslint.config.js +0 -107
- package/externals.json +0 -15
- package/webpack.config.cjs +0 -144
package/build/src/App.d.ts
CHANGED
|
@@ -42,7 +42,8 @@ export * from './components';
|
|
|
42
42
|
export { useDisplay, useDisplayList, formatField } from './displayer/useDisplay';
|
|
43
43
|
export * from './hooks';
|
|
44
44
|
export * from './types';
|
|
45
|
-
export { AppDispatch
|
|
45
|
+
export type { AppDispatch };
|
|
46
|
+
export { useAppDispatch, useAppSelector };
|
|
46
47
|
export { createExtension, createSimpleExtension } from './utils/extensions';
|
|
47
48
|
export { getTinyMCEMentionsQueries } from './utils/tinymce';
|
|
48
49
|
export * from './utils/jamespot';
|
|
@@ -8,3 +8,5 @@ export declare function imageResize(width: number, height: number, maxWidth: num
|
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
10
|
};
|
|
11
|
+
export declare const toPx: (value: string | number, fallback?: string) => string;
|
|
12
|
+
export declare const toNumeric: (value: string | number) => number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetCoverType, WidgetDisplayMode } from 'jamespot-user-api';
|
|
2
|
+
type JRCWidgetCoverWrapperProps = {
|
|
3
|
+
widget: WidgetCoverType;
|
|
4
|
+
inplace: boolean;
|
|
5
|
+
mode?: WidgetDisplayMode;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCWidgetCoverWrapper: ({ widget, mode }: JRCWidgetCoverWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { WidgetTableColumn, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
2
|
+
/**
|
|
3
|
+
* Normalize CSS keys from Angular (kebab-case / legacy) to React (camelCase).
|
|
4
|
+
*/
|
|
5
|
+
export declare const normalizeCss: (css: Record<string, string | number> | undefined, keyMap: Record<string, string>) => Record<string, string | number> | undefined;
|
|
2
6
|
export declare const getVisibleColumns: (tableColumnsData: WidgetTableColumnsData, columns: WidgetTableColumn[]) => WidgetTableColumn[];
|
|
@@ -164,8 +164,8 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
164
164
|
extensions: {
|
|
165
165
|
[x: string]: any;
|
|
166
166
|
};
|
|
167
|
-
}, import("
|
|
168
|
-
dispatch: import("
|
|
167
|
+
}, import("@reduxjs/toolkit").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("@reduxjs/toolkit").StoreEnhancer<{
|
|
168
|
+
dispatch: import("@reduxjs/toolkit").ThunkDispatch<{
|
|
169
169
|
entities: {
|
|
170
170
|
applications: import("@reduxjs/toolkit").EntityState<ApplicationType, string>;
|
|
171
171
|
models: import("@reduxjs/toolkit").EntityState<ModelType<string>, string>;
|
|
@@ -258,11 +258,11 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
|
|
|
258
258
|
};
|
|
259
259
|
}, {
|
|
260
260
|
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
261
|
-
}, import("
|
|
262
|
-
}>, import("
|
|
261
|
+
}, import("@reduxjs/toolkit").UnknownAction>;
|
|
262
|
+
}>, import("@reduxjs/toolkit").StoreEnhancer]>>;
|
|
263
263
|
export type AppDispatch = ReturnType<typeof createStore>['dispatch'];
|
|
264
264
|
export type RootState = ReturnType<ReturnType<typeof createStore>['getState']>;
|
|
265
|
-
export declare const useAppDispatch: () => import("
|
|
265
|
+
export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispatch<{
|
|
266
266
|
entities: {
|
|
267
267
|
applications: import("@reduxjs/toolkit").EntityState<ApplicationType, string>;
|
|
268
268
|
models: import("@reduxjs/toolkit").EntityState<ModelType<string>, string>;
|
|
@@ -355,6 +355,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
355
355
|
};
|
|
356
356
|
}, {
|
|
357
357
|
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
358
|
-
}, import("
|
|
358
|
+
}, import("@reduxjs/toolkit").UnknownAction> & import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>;
|
|
359
359
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
360
360
|
export {};
|
|
@@ -178,6 +178,8 @@ declare const mapping: {
|
|
|
178
178
|
WidgetColorEditor: "JRCWidgetColorEditor";
|
|
179
179
|
WidgetContactCardDav: "JRCWidgetContactCardDav";
|
|
180
180
|
WidgetContactCardDavEditor: "JRCWidgetContactCardDavEditor";
|
|
181
|
+
WidgetCover: "JRCWidgetCover";
|
|
182
|
+
WidgetCoverEditor: "JRCWidgetCoverEditor";
|
|
181
183
|
WidgetDatasourceTableEditor: "JRCWidgetDatasourceTableEditor";
|
|
182
184
|
WidgetEmailsImap: "JRCWidgetEmailsImap";
|
|
183
185
|
WidgetEmailsImapEditor: "JRCWidgetEmailsImapEditor";
|
package/build/src/types.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export * from './displayer/types';
|
|
|
4
4
|
export * from './registry/types.common';
|
|
5
5
|
export * from './registry/types.core';
|
|
6
6
|
export * from './hooks/types';
|
|
7
|
-
export { SocialEventOrRecurringEventFormValues } from './components/calendar/socialEvent/types';
|
|
7
|
+
export type { SocialEventOrRecurringEventFormValues } from './components/calendar/socialEvent/types';
|
|
8
8
|
export type { RootState } from './redux/store';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.69",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -37,10 +37,9 @@
|
|
|
37
37
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
38
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
39
39
|
"history": "^5.3.0",
|
|
40
|
-
"
|
|
41
|
-
"jamespot-
|
|
42
|
-
"jamespot-
|
|
43
|
-
"jamespot-user-api": "^1.3.67",
|
|
40
|
+
"jamespot-front-business": "^1.3.69",
|
|
41
|
+
"jamespot-react-components": "^1.3.69",
|
|
42
|
+
"jamespot-user-api": "^1.3.69",
|
|
44
43
|
"jest": "^30.2.0",
|
|
45
44
|
"jest-environment-jsdom": "^30.2.0",
|
|
46
45
|
"knip": "^5.82.1",
|
package/eslint.config.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import ts from 'typescript-eslint';
|
|
3
|
-
import prettierConfig from 'eslint-config-prettier';
|
|
4
|
-
import reactPlugin from 'eslint-plugin-react';
|
|
5
|
-
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
6
|
-
import importPlugin from 'eslint-plugin-import';
|
|
7
|
-
import globals from 'globals';
|
|
8
|
-
import * as customPlugin from './eslint-plugin-custom/index.js';
|
|
9
|
-
|
|
10
|
-
export default [
|
|
11
|
-
{
|
|
12
|
-
ignores: [
|
|
13
|
-
'build/**',
|
|
14
|
-
'coverage/**',
|
|
15
|
-
'eslint-plugin-custom/**',
|
|
16
|
-
'node_modules/**',
|
|
17
|
-
'script/**',
|
|
18
|
-
'eslint.config.js',
|
|
19
|
-
'webpack.config.js',
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
js.configs.recommended,
|
|
23
|
-
...ts.configs.recommended,
|
|
24
|
-
{
|
|
25
|
-
files: ['**/*.{ts,tsx}'],
|
|
26
|
-
languageOptions: {
|
|
27
|
-
parser: ts.parser,
|
|
28
|
-
globals: {
|
|
29
|
-
...globals.browser,
|
|
30
|
-
...globals.node,
|
|
31
|
-
...globals.jest,
|
|
32
|
-
},
|
|
33
|
-
parserOptions: {
|
|
34
|
-
project: './tsconfig.json',
|
|
35
|
-
ecmaVersion: 2024,
|
|
36
|
-
sourceType: 'module',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
plugins: {
|
|
40
|
-
'@typescript-eslint': ts.plugin,
|
|
41
|
-
react: reactPlugin,
|
|
42
|
-
'react-hooks': reactHooksPlugin,
|
|
43
|
-
import: importPlugin,
|
|
44
|
-
custom: customPlugin,
|
|
45
|
-
},
|
|
46
|
-
rules: {
|
|
47
|
-
...ts.configs.recommended.rules,
|
|
48
|
-
...reactPlugin.configs.recommended.rules,
|
|
49
|
-
...reactHooksPlugin.configs.recommended.rules,
|
|
50
|
-
'custom/no-barrel-imports': 'error',
|
|
51
|
-
'import/no-duplicates': 'error',
|
|
52
|
-
'import/no-cycle': 'error',
|
|
53
|
-
'import/no-unresolved': 'error',
|
|
54
|
-
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
55
|
-
'no-restricted-imports': [
|
|
56
|
-
'error',
|
|
57
|
-
{
|
|
58
|
-
patterns: [
|
|
59
|
-
{
|
|
60
|
-
group: ['src/*'],
|
|
61
|
-
message: 'Use relative import (./ ou ../)',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
'react/react-in-jsx-scope': 'off',
|
|
67
|
-
'react-hooks/refs': 'warn',
|
|
68
|
-
'react-hooks/set-state-in-effect': 'warn',
|
|
69
|
-
'@typescript-eslint/ban-ts-comment': [
|
|
70
|
-
'error',
|
|
71
|
-
{
|
|
72
|
-
'ts-ignore': 'allow-with-description',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
'@typescript-eslint/ban-types': 'off',
|
|
76
|
-
'@typescript-eslint/no-empty-interface': 'off',
|
|
77
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
78
|
-
'@typescript-eslint/no-empty-object-type': 'warn',
|
|
79
|
-
'@typescript-eslint/no-namespace': 'off',
|
|
80
|
-
'@typescript-eslint/no-unused-expressions': 'error',
|
|
81
|
-
'@typescript-eslint/no-unused-vars': [
|
|
82
|
-
'error',
|
|
83
|
-
{
|
|
84
|
-
argsIgnorePattern: '^_',
|
|
85
|
-
varsIgnorePattern: '^_',
|
|
86
|
-
caughtErrorsIgnorePattern: '^_',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
90
|
-
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
91
|
-
'@typescript-eslint/prefer-as-const': 'error',
|
|
92
|
-
},
|
|
93
|
-
settings: {
|
|
94
|
-
react: {
|
|
95
|
-
version: 'detect',
|
|
96
|
-
jsxRuntime: 'automatic',
|
|
97
|
-
},
|
|
98
|
-
'import/resolver': {
|
|
99
|
-
typescript: {
|
|
100
|
-
alwaysTryTypes: true,
|
|
101
|
-
project: './tsconfig.json',
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
prettierConfig,
|
|
107
|
-
];
|
package/externals.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@reduxjs/toolkit": "reduxjsToolkit",
|
|
3
|
-
"jamespot-user-api": "jamespotUserApi",
|
|
4
|
-
"jamespot-react-components": "jamespotReactComponents",
|
|
5
|
-
"jamespot-react-core": "ReactCore",
|
|
6
|
-
"react": "React",
|
|
7
|
-
"react-dnd": "reactDnd",
|
|
8
|
-
"react-dnd-html5-backend": "reactDndHtml5Backend",
|
|
9
|
-
"react-dom": "ReactDOM",
|
|
10
|
-
"react-hook-form": "reactHookForm",
|
|
11
|
-
"react-intl": "reactIntl",
|
|
12
|
-
"react-redux": "reactRedux",
|
|
13
|
-
"react-router-dom": "reactRouterDom",
|
|
14
|
-
"styled-components": "styledComponents"
|
|
15
|
-
}
|
package/webpack.config.cjs
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const CopyPlugin = require('copy-webpack-plugin');
|
|
5
|
-
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
6
|
-
|
|
7
|
-
module.exports = (env) => {
|
|
8
|
-
const plugins = [
|
|
9
|
-
new CopyPlugin({
|
|
10
|
-
patterns: [{ from: 'node_modules/jamespot-react-components/build/assets', to: 'assets' }],
|
|
11
|
-
}),
|
|
12
|
-
];
|
|
13
|
-
if (process.env.NODE_ENV === 'development') {
|
|
14
|
-
plugins.push(
|
|
15
|
-
new ForkTsCheckerWebpackPlugin({
|
|
16
|
-
async: true,
|
|
17
|
-
typescript: {
|
|
18
|
-
configFile: 'tsconfig.json',
|
|
19
|
-
memoryLimit: 4096,
|
|
20
|
-
diagnosticOptions: {
|
|
21
|
-
semantic: false,
|
|
22
|
-
syntactic: true,
|
|
23
|
-
},
|
|
24
|
-
mode: 'readonly',
|
|
25
|
-
outputPath: path.resolve(__dirname, 'build'),
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return {
|
|
32
|
-
mode: env.NODE_ENV || 'none',
|
|
33
|
-
watch: env.WATCH === 'true',
|
|
34
|
-
devtool: 'source-map',
|
|
35
|
-
devServer: {
|
|
36
|
-
hot: true,
|
|
37
|
-
port: 3030,
|
|
38
|
-
headers: {
|
|
39
|
-
'Access-Control-Allow-Origin': '*',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
resolve: {
|
|
43
|
-
extensions: ['.ts', '.tsx', '.js'],
|
|
44
|
-
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
|
45
|
-
symlinks: false,
|
|
46
|
-
alias: {
|
|
47
|
-
'@reduxjs/toolkit': path.resolve(__dirname, './node_modules/@reduxjs/toolkit'),
|
|
48
|
-
'jamespot-user-api': path.resolve(__dirname, './node_modules/jamespot-user-api'),
|
|
49
|
-
react: path.resolve(__dirname, './node_modules/react'),
|
|
50
|
-
'react-dnd': path.resolve(__dirname, './node_modules/react-dnd'),
|
|
51
|
-
'react-dnd-html5-backend': path.resolve(__dirname, './node_modules/react-dnd-html5-backend'),
|
|
52
|
-
'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
|
|
53
|
-
'react-hook-form': path.resolve(__dirname, './node_modules/react-hook-form'),
|
|
54
|
-
'react-intl': path.resolve(__dirname, './node_modules/react-intl'),
|
|
55
|
-
'react-redux': path.resolve(__dirname, './node_modules/react-redux'),
|
|
56
|
-
'react-router-dom': path.resolve(__dirname, './node_modules/react-router-dom'),
|
|
57
|
-
'styled-components': path.resolve(__dirname, './node_modules/styled-components'),
|
|
58
|
-
uuid: path.resolve(__dirname, './node_modules/uuid'),
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
watchOptions: {
|
|
62
|
-
ignored: [
|
|
63
|
-
'**/.github/**',
|
|
64
|
-
'**/.husky/**',
|
|
65
|
-
'**/.vscode/**',
|
|
66
|
-
'**/build/**',
|
|
67
|
-
'**/coverage/**',
|
|
68
|
-
'**/node_modules/**',
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
module: {
|
|
72
|
-
rules: [
|
|
73
|
-
// Worker loader need to be before ts-loader (https://v4.webpack.js.org/loaders/worker-loader/)
|
|
74
|
-
{
|
|
75
|
-
test: /\.sharedworker\.ts$/,
|
|
76
|
-
use: [
|
|
77
|
-
{
|
|
78
|
-
loader: 'worker-loader',
|
|
79
|
-
options: {
|
|
80
|
-
filename: '[name].[contenthash].js',
|
|
81
|
-
worker: {
|
|
82
|
-
type: 'SharedWorker',
|
|
83
|
-
options: {
|
|
84
|
-
type: 'classic',
|
|
85
|
-
name: 'JamespotSocket',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
test: /\.ts(x?)$/,
|
|
94
|
-
exclude: /node_modules/,
|
|
95
|
-
use: [
|
|
96
|
-
{
|
|
97
|
-
loader: 'ts-loader',
|
|
98
|
-
options: {
|
|
99
|
-
transpileOnly: process.env.NODE_ENV === 'development',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
|
|
105
|
-
{
|
|
106
|
-
enforce: 'pre',
|
|
107
|
-
test: /\.js$/,
|
|
108
|
-
loader: 'source-map-loader',
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
optimization: {
|
|
113
|
-
splitChunks: {
|
|
114
|
-
cacheGroups: {
|
|
115
|
-
styles: {
|
|
116
|
-
name: 'styles',
|
|
117
|
-
test: /\.css$/,
|
|
118
|
-
chunks: 'all',
|
|
119
|
-
enforce: true,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
entry: {
|
|
125
|
-
app: './src/App.tsx',
|
|
126
|
-
},
|
|
127
|
-
output: {
|
|
128
|
-
clean: {
|
|
129
|
-
keep: /(\.d\.ts)|\.tsbuildinfo/,
|
|
130
|
-
},
|
|
131
|
-
path: path.resolve(__dirname, 'build'),
|
|
132
|
-
filename: '[name].bundle.js',
|
|
133
|
-
chunkFilename: '[name].[contenthash].chunk.js',
|
|
134
|
-
library: 'ReactCore',
|
|
135
|
-
publicPath:
|
|
136
|
-
env.NODE_ENV === 'production' || (env.NODE_ENV === 'development' && env.NODE_RUN === 'VM')
|
|
137
|
-
? '/react-core/'
|
|
138
|
-
: env.NODE_ENV === 'development'
|
|
139
|
-
? 'http://localhost:3030/'
|
|
140
|
-
: /* env.NODE_ENV === "theme" */ '/themes/EXT-reactjs/js/jamespot-react-core/',
|
|
141
|
-
},
|
|
142
|
-
plugins,
|
|
143
|
-
};
|
|
144
|
-
};
|