@carbonorm/carbonreact 3.4.4 → 3.4.6
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/dist/CarbonReact.d.ts +3 -0
- package/dist/components/Popup/Popup.d.ts +2 -2
- package/dist/index.cjs.js +2134 -5049
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -49
- package/dist/index.esm.js +2115 -4952
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/CarbonReact.tsx +3 -0
- package/src/api/hoc/getStatefulObjectWithWhere.tsx +2 -0
- package/src/components/Popup/Popup.tsx +3 -3
- package/src/index.ts +0 -49
- package/dist/api/rest/C6.d.ts +0 -579
- package/dist/api/rest/Carbons.d.ts +0 -88
- package/dist/api/rest/Carbons.test.d.ts +0 -14
- package/dist/api/rest/Chat_Messages.d.ts +0 -88
- package/dist/api/rest/Chat_Messages.test.d.ts +0 -20
- package/dist/api/rest/Documentation.d.ts +0 -88
- package/dist/api/rest/Documentation.test.d.ts +0 -11
- package/dist/api/rest/Feature_Group_References.d.ts +0 -88
- package/dist/api/rest/Feature_Group_References.test.d.ts +0 -13
- package/dist/api/rest/Features.d.ts +0 -88
- package/dist/api/rest/Features.test.d.ts +0 -14
- package/dist/api/rest/Group_References.d.ts +0 -88
- package/dist/api/rest/Group_References.test.d.ts +0 -13
- package/dist/api/rest/Groups.d.ts +0 -88
- package/dist/api/rest/Groups.test.d.ts +0 -15
- package/dist/api/rest/History_Logs.d.ts +0 -88
- package/dist/api/rest/History_Logs.test.d.ts +0 -13
- package/dist/api/rest/Likes.d.ts +0 -88
- package/dist/api/rest/Likes.test.d.ts +0 -13
- package/dist/api/rest/Location_References.d.ts +0 -88
- package/dist/api/rest/Location_References.test.d.ts +0 -14
- package/dist/api/rest/Locations.d.ts +0 -88
- package/dist/api/rest/Locations.test.d.ts +0 -18
- package/dist/api/rest/Photos.d.ts +0 -88
- package/dist/api/rest/Photos.test.d.ts +0 -20
- package/dist/api/rest/Posts.d.ts +0 -88
- package/dist/api/rest/Posts.test.d.ts +0 -22
- package/dist/api/rest/Projects.d.ts +0 -88
- package/dist/api/rest/Projects.test.d.ts +0 -21
- package/dist/api/rest/Reports.d.ts +0 -88
- package/dist/api/rest/Reports.test.d.ts +0 -11
- package/dist/api/rest/Sessions.d.ts +0 -88
- package/dist/api/rest/Sessions.test.d.ts +0 -14
- package/dist/api/rest/Subscription.d.ts +0 -88
- package/dist/api/rest/Subscription.test.d.ts +0 -20
- package/dist/api/rest/User_Followers.d.ts +0 -88
- package/dist/api/rest/User_Followers.test.d.ts +0 -16
- package/dist/api/rest/User_Groups.d.ts +0 -88
- package/dist/api/rest/User_Groups.test.d.ts +0 -13
- package/dist/api/rest/User_Messages.d.ts +0 -88
- package/dist/api/rest/User_Messages.test.d.ts +0 -20
- package/dist/api/rest/User_Sessions.d.ts +0 -88
- package/dist/api/rest/User_Sessions.test.d.ts +0 -14
- package/dist/api/rest/User_Tasks.d.ts +0 -88
- package/dist/api/rest/User_Tasks.test.d.ts +0 -22
- package/dist/api/rest/Users.d.ts +0 -88
- package/dist/api/rest/Users.test.d.ts +0 -44
- package/dist/api/rest/WsLiveUpdates.d.ts +0 -3
- package/src/api/rest/C6.tsx +0 -2687
- package/src/api/rest/Carbons.test.tsx +0 -128
- package/src/api/rest/Carbons.tsx +0 -145
- package/src/api/rest/Chat_Messages.test.tsx +0 -138
- package/src/api/rest/Chat_Messages.tsx +0 -151
- package/src/api/rest/Documentation.test.tsx +0 -128
- package/src/api/rest/Documentation.tsx +0 -142
- package/src/api/rest/Feature_Group_References.test.tsx +0 -126
- package/src/api/rest/Feature_Group_References.tsx +0 -144
- package/src/api/rest/Features.test.tsx +0 -128
- package/src/api/rest/Features.tsx +0 -145
- package/src/api/rest/Group_References.test.tsx +0 -126
- package/src/api/rest/Group_References.tsx +0 -144
- package/src/api/rest/Groups.test.tsx +0 -130
- package/src/api/rest/Groups.tsx +0 -146
- package/src/api/rest/History_Logs.test.tsx +0 -130
- package/src/api/rest/History_Logs.tsx +0 -144
- package/src/api/rest/Likes.test.tsx +0 -126
- package/src/api/rest/Likes.tsx +0 -144
- package/src/api/rest/Location_References.test.tsx +0 -128
- package/src/api/rest/Location_References.tsx +0 -145
- package/src/api/rest/Locations.test.tsx +0 -137
- package/src/api/rest/Locations.tsx +0 -149
- package/src/api/rest/Photos.test.tsx +0 -139
- package/src/api/rest/Photos.tsx +0 -151
- package/src/api/rest/Posts.test.tsx +0 -142
- package/src/api/rest/Posts.tsx +0 -153
- package/src/api/rest/Projects.test.tsx +0 -144
- package/src/api/rest/Projects.tsx +0 -152
- package/src/api/rest/Reports.test.tsx +0 -128
- package/src/api/rest/Reports.tsx +0 -142
- package/src/api/rest/Sessions.test.tsx +0 -133
- package/src/api/rest/Sessions.tsx +0 -145
- package/src/api/rest/Subscription.test.tsx +0 -138
- package/src/api/rest/Subscription.tsx +0 -151
- package/src/api/rest/User_Followers.test.tsx +0 -130
- package/src/api/rest/User_Followers.tsx +0 -147
- package/src/api/rest/User_Groups.test.tsx +0 -126
- package/src/api/rest/User_Groups.tsx +0 -144
- package/src/api/rest/User_Messages.test.tsx +0 -137
- package/src/api/rest/User_Messages.tsx +0 -151
- package/src/api/rest/User_Sessions.test.tsx +0 -133
- package/src/api/rest/User_Sessions.tsx +0 -145
- package/src/api/rest/User_Tasks.test.tsx +0 -141
- package/src/api/rest/User_Tasks.tsx +0 -153
- package/src/api/rest/Users.test.tsx +0 -193
- package/src/api/rest/Users.tsx +0 -175
- package/src/api/rest/WsLiveUpdates.tsx +0 -150
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonorm/carbonreact",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.6",
|
|
4
4
|
"browser": "dist/index.umd.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"scripts": {
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
72
|
"c6": "wget https://raw.githubusercontent.com/RichardTMiles/CarbonPHP/lts/view/C6.tsx -O src/variables/C6.tsx",
|
|
73
|
-
"build": "rm -rf ./dist/ && npm run build:css && npm run build:index && rollup -c && npm run build:compileValidSQL",
|
|
73
|
+
"build": "rm -rf ./dist/ ./src/api/rest/ && npm run build:css && npm run build:index && rollup -c && npm run build:compileValidSQL",
|
|
74
74
|
"dev": "rollup -c -w",
|
|
75
75
|
"test": "node test/test.js",
|
|
76
76
|
"pretest": "npm run build",
|
package/src/CarbonReact.tsx
CHANGED
|
@@ -53,6 +53,9 @@ const CarbonReact= class <P = {}, S = {}> extends Component<{
|
|
|
53
53
|
} & any, any & iCarbonReactState>;
|
|
54
54
|
|
|
55
55
|
static lastLocation = window.location.pathname;
|
|
56
|
+
static websocketUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host + ':8888/ws';
|
|
57
|
+
static websocketTimeoutSeconds : number = 250;
|
|
58
|
+
static websocketHeartbeatSeconds : number = 250;
|
|
56
59
|
|
|
57
60
|
// @link https://github.com/welldone-software/why-did-you-render
|
|
58
61
|
// noinspection JSUnusedGlobalSymbols
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from "classnames";
|
|
2
2
|
import OutsideClickHandler from 'react-outside-click-handler';
|
|
3
3
|
import getStyles from "hoc/getStyles";
|
|
4
|
-
import {PropsWithChildren} from "react";
|
|
4
|
+
import {PropsWithChildren, ReactElement} from "react";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
interface iPopupProperties {
|
|
@@ -18,12 +18,12 @@ export default function Popup({
|
|
|
18
18
|
handleClose,
|
|
19
19
|
children,
|
|
20
20
|
maxWidth,
|
|
21
|
-
}: PropsWithChildren<iPopupProperties>) {
|
|
21
|
+
}: PropsWithChildren<iPopupProperties>) : ReactElement {
|
|
22
22
|
|
|
23
23
|
if (false === open) {
|
|
24
24
|
|
|
25
25
|
// @link https://legacy.reactjs.org/docs/conditional-rendering.html#preventing-component-from-rendering
|
|
26
|
-
return
|
|
26
|
+
return <></>;
|
|
27
27
|
|
|
28
28
|
}
|
|
29
29
|
|
package/src/index.ts
CHANGED
|
@@ -9,55 +9,6 @@ export * from "./api/hoc/getStatefulObjectWithWhere";
|
|
|
9
9
|
export * from "./api/hoc/useEffectOnce";
|
|
10
10
|
export { default as watchInputElementChangeEvent } from "./api/hoc/watchInputElementChangeEvent";
|
|
11
11
|
export * from "./api/hoc/watchInputElementChangeEvent";
|
|
12
|
-
export * from "./api/rest/C6";
|
|
13
|
-
export { default as Carbons } from "./api/rest/Carbons";
|
|
14
|
-
export * from "./api/rest/Carbons";
|
|
15
|
-
export { default as Chat_Messages } from "./api/rest/Chat_Messages";
|
|
16
|
-
export * from "./api/rest/Chat_Messages";
|
|
17
|
-
export { default as Documentation } from "./api/rest/Documentation";
|
|
18
|
-
export * from "./api/rest/Documentation";
|
|
19
|
-
export { default as Feature_Group_References } from "./api/rest/Feature_Group_References";
|
|
20
|
-
export * from "./api/rest/Feature_Group_References";
|
|
21
|
-
export { default as Features } from "./api/rest/Features";
|
|
22
|
-
export * from "./api/rest/Features";
|
|
23
|
-
export { default as Group_References } from "./api/rest/Group_References";
|
|
24
|
-
export * from "./api/rest/Group_References";
|
|
25
|
-
export { default as Groups } from "./api/rest/Groups";
|
|
26
|
-
export * from "./api/rest/Groups";
|
|
27
|
-
export { default as History_Logs } from "./api/rest/History_Logs";
|
|
28
|
-
export * from "./api/rest/History_Logs";
|
|
29
|
-
export { default as Likes } from "./api/rest/Likes";
|
|
30
|
-
export * from "./api/rest/Likes";
|
|
31
|
-
export { default as Location_References } from "./api/rest/Location_References";
|
|
32
|
-
export * from "./api/rest/Location_References";
|
|
33
|
-
export { default as Locations } from "./api/rest/Locations";
|
|
34
|
-
export * from "./api/rest/Locations";
|
|
35
|
-
export { default as Photos } from "./api/rest/Photos";
|
|
36
|
-
export * from "./api/rest/Photos";
|
|
37
|
-
export { default as Posts } from "./api/rest/Posts";
|
|
38
|
-
export * from "./api/rest/Posts";
|
|
39
|
-
export { default as Projects } from "./api/rest/Projects";
|
|
40
|
-
export * from "./api/rest/Projects";
|
|
41
|
-
export { default as Reports } from "./api/rest/Reports";
|
|
42
|
-
export * from "./api/rest/Reports";
|
|
43
|
-
export { default as Sessions } from "./api/rest/Sessions";
|
|
44
|
-
export * from "./api/rest/Sessions";
|
|
45
|
-
export { default as Subscription } from "./api/rest/Subscription";
|
|
46
|
-
export * from "./api/rest/Subscription";
|
|
47
|
-
export { default as User_Followers } from "./api/rest/User_Followers";
|
|
48
|
-
export * from "./api/rest/User_Followers";
|
|
49
|
-
export { default as User_Groups } from "./api/rest/User_Groups";
|
|
50
|
-
export * from "./api/rest/User_Groups";
|
|
51
|
-
export { default as User_Messages } from "./api/rest/User_Messages";
|
|
52
|
-
export * from "./api/rest/User_Messages";
|
|
53
|
-
export { default as User_Sessions } from "./api/rest/User_Sessions";
|
|
54
|
-
export * from "./api/rest/User_Sessions";
|
|
55
|
-
export { default as User_Tasks } from "./api/rest/User_Tasks";
|
|
56
|
-
export * from "./api/rest/User_Tasks";
|
|
57
|
-
export { default as Users } from "./api/rest/Users";
|
|
58
|
-
export * from "./api/rest/Users";
|
|
59
|
-
export { default as WsLiveUpdates } from "./api/rest/WsLiveUpdates";
|
|
60
|
-
export * from "./api/rest/WsLiveUpdates";
|
|
61
12
|
export { default as Alert } from "./components/Alert/Alert";
|
|
62
13
|
export * from "./components/Alert/Alert";
|
|
63
14
|
export { default as AccessDenied } from "./components/Errors/AccessDenied";
|