@onehat/ui 0.3.360 → 0.3.361

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.360",
3
+ "version": "0.3.361",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -40,7 +40,7 @@ function InputElement(props) {
40
40
  clearIsTypingTimeout();
41
41
  isTypingTimeoutRef.current = setTimeout(() => {
42
42
  setIsTyping(false);
43
- }, 2000);
43
+ }, autoSubmitDelay + 1000);
44
44
  },
45
45
  clearIsTypingTimeout = () => {
46
46
  if (isTypingTimeoutRef.current) {
@@ -35,7 +35,7 @@ const
35
35
  clearIsTypingTimeout();
36
36
  isTypingTimeoutRef.current = setTimeout(() => {
37
37
  setIsTyping(false);
38
- }, 2000);
38
+ }, autoSubmitDelay + 1000);
39
39
  },
40
40
  clearIsTypingTimeout = () => {
41
41
  if (isTypingTimeoutRef.current) {
@@ -26,7 +26,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
26
26
  const {
27
27
  isEditorShown = false,
28
28
  setIsEditorShown,
29
- editorProps = {},
29
+ _editor = {},
30
30
 
31
31
  // withComponent
32
32
  self,
@@ -48,7 +48,7 @@ export default function withInlineEditor(WrappedComponent, skipWrappers = false)
48
48
  isInlineEditorShown={isEditorShown}
49
49
  inlineEditor={<InlineEditor
50
50
  {...propsToPass}
51
- {...editorProps}
51
+ {..._editor}
52
52
  parent={self}
53
53
  reference="editor"
54
54
  columnsConfig={localColumnsConfig}
@@ -23,7 +23,7 @@ export default function withSideEditor(WrappedComponent, isTree = false) {
23
23
  const SideEditor = (props) => {
24
24
  const {
25
25
  Editor,
26
- editorProps = {},
26
+ _editor = {},
27
27
  sideFlex = 100,
28
28
  isResizable = false,
29
29
 
@@ -42,10 +42,10 @@ export default function withSideEditor(WrappedComponent, isTree = false) {
42
42
  }
43
43
 
44
44
  if (isResizable) {
45
- editorProps.w = 500;
46
- editorProps.isResizable = true;
45
+ _editor.w = 500;
46
+ _editor.isResizable = true;
47
47
  } else {
48
- editorProps.flex = sideFlex;
48
+ _editor.flex = sideFlex;
49
49
  }
50
50
 
51
51
  return <Container
@@ -61,7 +61,7 @@ export default function withSideEditor(WrappedComponent, isTree = false) {
61
61
  editorType={EDITOR_TYPE__SIDE}
62
62
  borderLeftWidth={1}
63
63
  borderLeftColor="#ccc"
64
- {...editorProps}
64
+ {..._editor}
65
65
  parent={self}
66
66
  reference="editor"
67
67
  />}
@@ -47,7 +47,7 @@ export default function withWindowedEditor(WrappedComponent, isTree = false) {
47
47
  isEditorShown = false,
48
48
  setIsEditorShown,
49
49
  Editor,
50
- editorProps = {},
50
+ _editor = {},
51
51
 
52
52
  // withComponent
53
53
  self,
@@ -75,7 +75,7 @@ export default function withWindowedEditor(WrappedComponent, isTree = false) {
75
75
  <Editor
76
76
  editorType={EDITOR_TYPE__WINDOWED}
77
77
  {...propsToPass}
78
- {...editorProps}
78
+ {..._editor}
79
79
  parent={self}
80
80
  reference="editor"
81
81
  />