@common-stack/frontend-stack-react 8.0.2-alpha.0 → 8.2.1-alpha.0
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 +34 -21
- package/lib/backend/modules/modules.d.ts +1 -1
- package/lib/config/base-apollo-client.js +10 -4
- package/lib/config/base-redux-config.js +1 -0
- package/lib/modules.d.ts +6 -1
- package/package.json +12 -12
package/LICENSE
CHANGED
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 CDMBase LLC.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
IMPLIED,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
PROPRIETARY LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2025 CDMBase LLC. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are the
|
|
6
|
+
proprietary and confidential information of CDMBase LLC ("Confidential Information").
|
|
7
|
+
|
|
8
|
+
NOTICE: All information contained herein is, and remains the property of
|
|
9
|
+
CDMBase LLC. The intellectual and technical concepts contained herein are
|
|
10
|
+
proprietary to CDMBase LLC and may be covered by U.S. and Foreign Patents,
|
|
11
|
+
patents in process, and are protected by trade secret or copyright law.
|
|
12
|
+
|
|
13
|
+
Dissemination of this information or reproduction of this material is strictly
|
|
14
|
+
forbidden unless prior written permission is obtained from CDMBase LLC.
|
|
15
|
+
|
|
16
|
+
NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL
|
|
17
|
+
PROPERTY RIGHTS ARE GRANTED BY THIS DOCUMENT.
|
|
18
|
+
|
|
19
|
+
RESTRICTIONS:
|
|
20
|
+
1. You may NOT use, copy, modify, merge, publish, distribute, sublicense,
|
|
21
|
+
and/or sell copies of the Software without explicit written permission
|
|
22
|
+
from CDMBase LLC.
|
|
23
|
+
2. You may NOT reverse engineer, decompile, or disassemble the Software.
|
|
24
|
+
3. You may NOT remove or alter any proprietary notices or labels on the Software.
|
|
25
|
+
4. The Software is licensed, not sold.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
30
|
+
CDMBASE LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
31
|
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
32
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
33
|
+
|
|
34
|
+
For licensing inquiries, please contact: legal@cdmbase.com
|
|
@@ -42,10 +42,16 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
42
42
|
const connectionParams = async () => {
|
|
43
43
|
logger.debug('Getting WebSocket connection parameters');
|
|
44
44
|
const param = {};
|
|
45
|
-
const
|
|
46
|
-
for (const
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const list = Array.isArray(clientState?.connectionParams) ? clientState.connectionParams : [];
|
|
46
|
+
for (const entry of list) {
|
|
47
|
+
try {
|
|
48
|
+
const value = typeof entry === 'function' ? await entry() : await entry;
|
|
49
|
+
if (value)
|
|
50
|
+
merge(param, value);
|
|
51
|
+
}
|
|
52
|
+
catch (e) {
|
|
53
|
+
logger.warn && logger.warn('connectionParams entry failed', e);
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
56
|
return param;
|
|
51
57
|
};
|
|
@@ -36,6 +36,7 @@ const createReduxStore = ({ scope, isDebug, isDev, reducers, rootEpic, enhancers
|
|
|
36
36
|
REGISTER,
|
|
37
37
|
...(reduxConfig?.ignoredActions || []),
|
|
38
38
|
],
|
|
39
|
+
ignoredPaths: [...(reduxConfig?.ignoredPaths || [])],
|
|
39
40
|
},
|
|
40
41
|
}).concat(...middlewares),
|
|
41
42
|
devTools: isDev || isDebug,
|
package/lib/modules.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Feature } from '@common-stack/client-react';
|
|
2
2
|
declare const features: Feature;
|
|
3
|
-
export declare const plugins:
|
|
3
|
+
export declare const plugins: {
|
|
4
|
+
index: number;
|
|
5
|
+
name: string;
|
|
6
|
+
icon: string | React.ComponentElement<any, any> | Function;
|
|
7
|
+
render: React.FC | any;
|
|
8
|
+
}[];
|
|
4
9
|
export default features;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.1-alpha.0",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/cdmbase/fullstack-pro.git"
|
|
12
12
|
},
|
|
13
|
-
"license": "
|
|
13
|
+
"license": "UNLICENSED",
|
|
14
14
|
"author": "CDMBase LLC",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "lib/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@apollo/client": "^3.9.0",
|
|
33
|
-
"@cdm-logger/client": "^9.0.
|
|
34
|
-
"@cdm-logger/server": "^9.0.
|
|
35
|
-
"@common-stack/cache-api-server": "8.
|
|
36
|
-
"@common-stack/client-core": "8.
|
|
37
|
-
"@common-stack/client-react": "8.
|
|
38
|
-
"@common-stack/components-pro": "8.
|
|
39
|
-
"@common-stack/core": "8.
|
|
40
|
-
"@common-stack/remix-router-redux": "8.
|
|
41
|
-
"@common-stack/server-core": "8.
|
|
33
|
+
"@cdm-logger/client": "^9.0.8",
|
|
34
|
+
"@cdm-logger/server": "^9.0.15",
|
|
35
|
+
"@common-stack/cache-api-server": "8.2.1-alpha.0",
|
|
36
|
+
"@common-stack/client-core": "8.2.1-alpha.0",
|
|
37
|
+
"@common-stack/client-react": "8.2.1-alpha.0",
|
|
38
|
+
"@common-stack/components-pro": "8.2.1-alpha.0",
|
|
39
|
+
"@common-stack/core": "8.2.1-alpha.0",
|
|
40
|
+
"@common-stack/remix-router-redux": "8.2.1-alpha.0",
|
|
41
|
+
"@common-stack/server-core": "8.2.1-alpha.0",
|
|
42
42
|
"@reduxjs/toolkit": "^2.2.6",
|
|
43
43
|
"@remix-run/express": "~2.15.3",
|
|
44
44
|
"@remix-run/node": "~2.15.3",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"typescript": {
|
|
102
102
|
"definition": "lib/index.d.ts"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "b46db06f987271c3a2e050f081e266d3a01b285b"
|
|
105
105
|
}
|