@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.
Files changed (108) hide show
  1. package/dist/CarbonReact.d.ts +3 -0
  2. package/dist/components/Popup/Popup.d.ts +2 -2
  3. package/dist/index.cjs.js +2134 -5049
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +0 -49
  6. package/dist/index.esm.js +2115 -4952
  7. package/dist/index.esm.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/CarbonReact.tsx +3 -0
  10. package/src/api/hoc/getStatefulObjectWithWhere.tsx +2 -0
  11. package/src/components/Popup/Popup.tsx +3 -3
  12. package/src/index.ts +0 -49
  13. package/dist/api/rest/C6.d.ts +0 -579
  14. package/dist/api/rest/Carbons.d.ts +0 -88
  15. package/dist/api/rest/Carbons.test.d.ts +0 -14
  16. package/dist/api/rest/Chat_Messages.d.ts +0 -88
  17. package/dist/api/rest/Chat_Messages.test.d.ts +0 -20
  18. package/dist/api/rest/Documentation.d.ts +0 -88
  19. package/dist/api/rest/Documentation.test.d.ts +0 -11
  20. package/dist/api/rest/Feature_Group_References.d.ts +0 -88
  21. package/dist/api/rest/Feature_Group_References.test.d.ts +0 -13
  22. package/dist/api/rest/Features.d.ts +0 -88
  23. package/dist/api/rest/Features.test.d.ts +0 -14
  24. package/dist/api/rest/Group_References.d.ts +0 -88
  25. package/dist/api/rest/Group_References.test.d.ts +0 -13
  26. package/dist/api/rest/Groups.d.ts +0 -88
  27. package/dist/api/rest/Groups.test.d.ts +0 -15
  28. package/dist/api/rest/History_Logs.d.ts +0 -88
  29. package/dist/api/rest/History_Logs.test.d.ts +0 -13
  30. package/dist/api/rest/Likes.d.ts +0 -88
  31. package/dist/api/rest/Likes.test.d.ts +0 -13
  32. package/dist/api/rest/Location_References.d.ts +0 -88
  33. package/dist/api/rest/Location_References.test.d.ts +0 -14
  34. package/dist/api/rest/Locations.d.ts +0 -88
  35. package/dist/api/rest/Locations.test.d.ts +0 -18
  36. package/dist/api/rest/Photos.d.ts +0 -88
  37. package/dist/api/rest/Photos.test.d.ts +0 -20
  38. package/dist/api/rest/Posts.d.ts +0 -88
  39. package/dist/api/rest/Posts.test.d.ts +0 -22
  40. package/dist/api/rest/Projects.d.ts +0 -88
  41. package/dist/api/rest/Projects.test.d.ts +0 -21
  42. package/dist/api/rest/Reports.d.ts +0 -88
  43. package/dist/api/rest/Reports.test.d.ts +0 -11
  44. package/dist/api/rest/Sessions.d.ts +0 -88
  45. package/dist/api/rest/Sessions.test.d.ts +0 -14
  46. package/dist/api/rest/Subscription.d.ts +0 -88
  47. package/dist/api/rest/Subscription.test.d.ts +0 -20
  48. package/dist/api/rest/User_Followers.d.ts +0 -88
  49. package/dist/api/rest/User_Followers.test.d.ts +0 -16
  50. package/dist/api/rest/User_Groups.d.ts +0 -88
  51. package/dist/api/rest/User_Groups.test.d.ts +0 -13
  52. package/dist/api/rest/User_Messages.d.ts +0 -88
  53. package/dist/api/rest/User_Messages.test.d.ts +0 -20
  54. package/dist/api/rest/User_Sessions.d.ts +0 -88
  55. package/dist/api/rest/User_Sessions.test.d.ts +0 -14
  56. package/dist/api/rest/User_Tasks.d.ts +0 -88
  57. package/dist/api/rest/User_Tasks.test.d.ts +0 -22
  58. package/dist/api/rest/Users.d.ts +0 -88
  59. package/dist/api/rest/Users.test.d.ts +0 -44
  60. package/dist/api/rest/WsLiveUpdates.d.ts +0 -3
  61. package/src/api/rest/C6.tsx +0 -2687
  62. package/src/api/rest/Carbons.test.tsx +0 -128
  63. package/src/api/rest/Carbons.tsx +0 -145
  64. package/src/api/rest/Chat_Messages.test.tsx +0 -138
  65. package/src/api/rest/Chat_Messages.tsx +0 -151
  66. package/src/api/rest/Documentation.test.tsx +0 -128
  67. package/src/api/rest/Documentation.tsx +0 -142
  68. package/src/api/rest/Feature_Group_References.test.tsx +0 -126
  69. package/src/api/rest/Feature_Group_References.tsx +0 -144
  70. package/src/api/rest/Features.test.tsx +0 -128
  71. package/src/api/rest/Features.tsx +0 -145
  72. package/src/api/rest/Group_References.test.tsx +0 -126
  73. package/src/api/rest/Group_References.tsx +0 -144
  74. package/src/api/rest/Groups.test.tsx +0 -130
  75. package/src/api/rest/Groups.tsx +0 -146
  76. package/src/api/rest/History_Logs.test.tsx +0 -130
  77. package/src/api/rest/History_Logs.tsx +0 -144
  78. package/src/api/rest/Likes.test.tsx +0 -126
  79. package/src/api/rest/Likes.tsx +0 -144
  80. package/src/api/rest/Location_References.test.tsx +0 -128
  81. package/src/api/rest/Location_References.tsx +0 -145
  82. package/src/api/rest/Locations.test.tsx +0 -137
  83. package/src/api/rest/Locations.tsx +0 -149
  84. package/src/api/rest/Photos.test.tsx +0 -139
  85. package/src/api/rest/Photos.tsx +0 -151
  86. package/src/api/rest/Posts.test.tsx +0 -142
  87. package/src/api/rest/Posts.tsx +0 -153
  88. package/src/api/rest/Projects.test.tsx +0 -144
  89. package/src/api/rest/Projects.tsx +0 -152
  90. package/src/api/rest/Reports.test.tsx +0 -128
  91. package/src/api/rest/Reports.tsx +0 -142
  92. package/src/api/rest/Sessions.test.tsx +0 -133
  93. package/src/api/rest/Sessions.tsx +0 -145
  94. package/src/api/rest/Subscription.test.tsx +0 -138
  95. package/src/api/rest/Subscription.tsx +0 -151
  96. package/src/api/rest/User_Followers.test.tsx +0 -130
  97. package/src/api/rest/User_Followers.tsx +0 -147
  98. package/src/api/rest/User_Groups.test.tsx +0 -126
  99. package/src/api/rest/User_Groups.tsx +0 -144
  100. package/src/api/rest/User_Messages.test.tsx +0 -137
  101. package/src/api/rest/User_Messages.tsx +0 -151
  102. package/src/api/rest/User_Sessions.test.tsx +0 -133
  103. package/src/api/rest/User_Sessions.tsx +0 -145
  104. package/src/api/rest/User_Tasks.test.tsx +0 -141
  105. package/src/api/rest/User_Tasks.tsx +0 -153
  106. package/src/api/rest/Users.test.tsx +0 -193
  107. package/src/api/rest/Users.tsx +0 -175
  108. 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.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",
@@ -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
@@ -12,6 +12,8 @@ export interface iGetStatefulObjectWithWhere {
12
12
  export default ({request}: { request: iAPI<any> & iWHERE }) => {
13
13
 
14
14
 
15
+ console.log('request', request)
16
+
15
17
 
16
18
 
17
19
  }
@@ -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 null;
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";