@homecode/ui 4.30.0 → 4.30.1

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.
@@ -0,0 +1,121 @@
1
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092763233,"runId":"post-fix3","hypothesisId":"H4"}
2
+ {"location":"Lazy.tsx:103","message":"Showing spinner","data":{},"timestamp":1771092763234,"runId":"post-fix3","hypothesisId":"H5"}
3
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092763261,"runId":"run1","hypothesisId":"H1"}
4
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092763261,"runId":"run1","hypothesisId":"H3"}
5
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092763267,"runId":"post-fix3","hypothesisId":"H4"}
6
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092763267,"runId":"post-fix4","hypothesisId":"H1"}
7
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092763741,"runId":"post-fix3","hypothesisId":"H4"}
8
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092763741,"runId":"post-fix4","hypothesisId":"H1"}
9
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092764461,"runId":"post-fix3","hypothesisId":"H4"}
10
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092764462,"runId":"post-fix3","hypothesisId":"H5"}
11
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at _construct (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:54"},"timestamp":1771092764464,"runId":"post-fix2","hypothesisId":"H2"}
12
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092764467,"runId":"post-fix3","hypothesisId":"H4"}
13
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092764467,"runId":"post-fix3","hypothesisId":"H5"}
14
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092764469,"runId":"post-fix2","hypothesisId":"H2"}
15
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092764469,"runId":"post-fix3","hypothesisId":"H4"}
16
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092764469,"runId":"post-fix4","hypothesisId":"H4"}
17
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092764976,"runId":"post-fix3","hypothesisId":"H4"}
18
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092764977,"runId":"post-fix4","hypothesisId":"H4"}
19
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092787825,"runId":"post-fix3","hypothesisId":"H4"}
20
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092787826,"runId":"post-fix3","hypothesisId":"H5"}
21
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092787827,"runId":"post-fix2","hypothesisId":"H2"}
22
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092787827,"runId":"post-fix3","hypothesisId":"H4"}
23
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092787827,"runId":"post-fix4","hypothesisId":"H4"}
24
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092787830,"runId":"post-fix3","hypothesisId":"H4"}
25
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092787831,"runId":"post-fix4","hypothesisId":"H4"}
26
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092789342,"runId":"post-fix3","hypothesisId":"H4"}
27
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092789342,"runId":"post-fix3","hypothesisId":"H5"}
28
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092789343,"runId":"post-fix2","hypothesisId":"H2"}
29
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092789344,"runId":"post-fix3","hypothesisId":"H4"}
30
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092789344,"runId":"post-fix4","hypothesisId":"H4"}
31
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092789347,"runId":"post-fix3","hypothesisId":"H4"}
32
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092789347,"runId":"post-fix4","hypothesisId":"H4"}
33
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092839514,"runId":"post-fix3","hypothesisId":"H4"}
34
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092839514,"runId":"post-fix4","hypothesisId":"H1"}
35
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092839518,"runId":"run1","hypothesisId":"H1"}
36
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092839519,"runId":"run1","hypothesisId":"H3"}
37
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092839519,"runId":"post-fix3","hypothesisId":"H4"}
38
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092839519,"runId":"post-fix4","hypothesisId":"H1"}
39
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092839532,"runId":"post-fix3","hypothesisId":"H4"}
40
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092839532,"runId":"post-fix3","hypothesisId":"H5"}
41
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092839535,"runId":"post-fix2","hypothesisId":"H2"}
42
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092839545,"runId":"post-fix3","hypothesisId":"H4"}
43
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092839546,"runId":"post-fix3","hypothesisId":"H5"}
44
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092839547,"runId":"post-fix2","hypothesisId":"H2"}
45
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092839548,"runId":"post-fix3","hypothesisId":"H4"}
46
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092839548,"runId":"post-fix4","hypothesisId":"H4"}
47
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092840024,"runId":"post-fix3","hypothesisId":"H4"}
48
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092840025,"runId":"post-fix4","hypothesisId":"H1"}
49
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092840057,"runId":"post-fix3","hypothesisId":"H4"}
50
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092840058,"runId":"post-fix4","hypothesisId":"H4"}
51
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092846348,"runId":"post-fix3","hypothesisId":"H4"}
52
+ {"location":"Lazy.tsx:103","message":"Showing spinner","data":{},"timestamp":1771092846348,"runId":"post-fix3","hypothesisId":"H5"}
53
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092846390,"runId":"run1","hypothesisId":"H1"}
54
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092846391,"runId":"run1","hypothesisId":"H3"}
55
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092846396,"runId":"post-fix3","hypothesisId":"H4"}
56
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092846396,"runId":"post-fix4","hypothesisId":"H1"}
57
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092846857,"runId":"post-fix3","hypothesisId":"H4"}
58
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092846858,"runId":"post-fix4","hypothesisId":"H1"}
59
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092847594,"runId":"post-fix3","hypothesisId":"H4"}
60
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092847594,"runId":"post-fix3","hypothesisId":"H5"}
61
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at _construct (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:54"},"timestamp":1771092847597,"runId":"post-fix2","hypothesisId":"H2"}
62
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092847601,"runId":"post-fix3","hypothesisId":"H4"}
63
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092847601,"runId":"post-fix3","hypothesisId":"H5"}
64
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092847603,"runId":"post-fix2","hypothesisId":"H2"}
65
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092847603,"runId":"post-fix3","hypothesisId":"H4"}
66
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092847603,"runId":"post-fix4","hypothesisId":"H4"}
67
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092848108,"runId":"post-fix3","hypothesisId":"H4"}
68
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092848109,"runId":"post-fix4","hypothesisId":"H4"}
69
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092852857,"runId":"post-fix3","hypothesisId":"H4"}
70
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092852857,"runId":"post-fix3","hypothesisId":"H5"}
71
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092852858,"runId":"post-fix2","hypothesisId":"H2"}
72
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092852861,"runId":"post-fix3","hypothesisId":"H4"}
73
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092852858,"runId":"post-fix3","hypothesisId":"H4"}
74
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092852858,"runId":"post-fix4","hypothesisId":"H4"}
75
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092852861,"runId":"post-fix4","hypothesisId":"H4"}
76
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092892910,"runId":"post-fix3","hypothesisId":"H4"}
77
+ {"location":"Lazy.tsx:103","message":"Showing spinner","data":{},"timestamp":1771092892911,"runId":"post-fix3","hypothesisId":"H5"}
78
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092892926,"runId":"run1","hypothesisId":"H1"}
79
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092892927,"runId":"run1","hypothesisId":"H3"}
80
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092892929,"runId":"post-fix3","hypothesisId":"H4"}
81
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092892929,"runId":"post-fix4","hypothesisId":"H1"}
82
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092893424,"runId":"post-fix3","hypothesisId":"H4"}
83
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092893425,"runId":"post-fix4","hypothesisId":"H1"}
84
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092896926,"runId":"post-fix3","hypothesisId":"H4"}
85
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092896927,"runId":"post-fix4","hypothesisId":"H1"}
86
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092896945,"runId":"post-fix3","hypothesisId":"H4"}
87
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092896946,"runId":"post-fix3","hypothesisId":"H5"}
88
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092896950,"runId":"post-fix2","hypothesisId":"H2"}
89
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092896956,"runId":"post-fix3","hypothesisId":"H4"}
90
+ {"location":"Lazy.tsx:99","message":"Showing progressElem","data":{"hasProgressElem":true},"timestamp":1771092896956,"runId":"post-fix3","hypothesisId":"H5"}
91
+ {"location":"Lazy.tsx:67","message":"Loader rejected","data":{"error":"require is not defined","stack":"ReferenceError: require is not defined\n at eval (eval at evalCode (http://localhost:8181/vendors-node_modules_prism-react-renderer_themes_vsDark_index_js-node_modules_prism-react-ren-464aa5.js:5439"},"timestamp":1771092896958,"runId":"post-fix2","hypothesisId":"H2"}
92
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092896960,"runId":"post-fix3","hypothesisId":"H4"}
93
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092896960,"runId":"post-fix4","hypothesisId":"H4"}
94
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":true,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092897474,"runId":"post-fix3","hypothesisId":"H4"}
95
+ {"location":"Lazy.tsx:122","message":"Showing progressElem after loading failed","data":{"hasProgressElem":true},"timestamp":1771092897474,"runId":"post-fix4","hypothesisId":"H4"}
96
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092900129,"runId":"post-fix3","hypothesisId":"H4"}
97
+ {"location":"Lazy.tsx:103","message":"Showing spinner","data":{},"timestamp":1771092900130,"runId":"post-fix3","hypothesisId":"H5"}
98
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092900150,"runId":"run1","hypothesisId":"H1"}
99
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092900150,"runId":"run1","hypothesisId":"H3"}
100
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092900151,"runId":"post-fix3","hypothesisId":"H4"}
101
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092900151,"runId":"post-fix4","hypothesisId":"H1"}
102
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092900640,"runId":"post-fix3","hypothesisId":"H4"}
103
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092900641,"runId":"post-fix4","hypothesisId":"H1"}
104
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":true,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":false,"hasDefault":false,"hasDefaultNode":false,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092906392,"runId":"post-fix3","hypothesisId":"H4"}
105
+ {"location":"Lazy.tsx:103","message":"Showing spinner","data":{},"timestamp":1771092906393,"runId":"post-fix3","hypothesisId":"H5"}
106
+ {"location":"Lazy.tsx:58","message":"Loader resolved","data":{"hasData":true,"hasDefault":true,"keys":["default"],"loaderStr":"function loader() {\n return Promise.all(/*! i"},"timestamp":1771092906403,"runId":"run1","hypothesisId":"H1"}
107
+ {"location":"Lazy.tsx:64","message":"State updated after resolve","data":{"loading":false,"hasImportData":true,"hasDefault":true},"timestamp":1771092906404,"runId":"run1","hypothesisId":"H3"}
108
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":false,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092906404,"runId":"post-fix3","hypothesisId":"H4"}
109
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092906404,"runId":"post-fix4","hypothesisId":"H1"}
110
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092906907,"runId":"post-fix3","hypothesisId":"H4"}
111
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092906908,"runId":"post-fix4","hypothesisId":"H1"}
112
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092908625,"runId":"post-fix3","hypothesisId":"H4"}
113
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092908626,"runId":"post-fix4","hypothesisId":"H1"}
114
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092910241,"runId":"post-fix3","hypothesisId":"H4"}
115
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092910242,"runId":"post-fix4","hypothesisId":"H1"}
116
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092911742,"runId":"post-fix3","hypothesisId":"H4"}
117
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092911742,"runId":"post-fix4","hypothesisId":"H1"}
118
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092912992,"runId":"post-fix3","hypothesisId":"H4"}
119
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092912993,"runId":"post-fix4","hypothesisId":"H1"}
120
+ {"location":"Lazy.tsx:95","message":"Render decision","data":{"loading":false,"spinnerTimeoutState":true,"hasProgressElem":false,"hasImportData":true,"hasDefault":true,"hasDefaultNode":true,"hasRender":false,"hasChildren":false,"childrenIsFunction":false},"timestamp":1771092914542,"runId":"post-fix3","hypothesisId":"H4"}
121
+ {"location":"Lazy.tsx:115","message":"Rendering DefaultNode","data":{"hasRestProps":true},"timestamp":1771092914543,"runId":"post-fix4","hypothesisId":"H1"}
@@ -136,6 +136,8 @@ function Autocomplete(props) {
136
136
  }
137
137
  }, debounceDelay);
138
138
  useEffect(() => {
139
+ if (typeof value !== 'string')
140
+ return;
139
141
  setSearchValue(value);
140
142
  setOptions([]);
141
143
  if (isFocusedRef.current)
@@ -1,7 +1,6 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { Component } from 'react';
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import { useState, useRef, useEffect } from 'react';
3
3
  import Time from 'timen';
4
- import { createStore } from 'justorm/react';
5
4
  import { Spinner } from '../Spinner/Spinner.js';
6
5
  import { Flex } from '../Flex/Flex.js';
7
6
 
@@ -9,64 +8,67 @@ function compare(cb1, cb2) {
9
8
  return cb1?.toString() === cb2?.toString();
10
9
  }
11
10
  const loaded = new Map();
12
- class Lazy extends Component {
13
- store;
14
- importData;
15
- DefaultNode;
16
- isLoaded = false;
17
- clearSpinnerTimeout;
18
- static defaultProps = {
19
- size: 'm',
20
- };
21
- constructor(props) {
22
- super(props);
23
- this.importData = loaded.get(this.props.loader);
24
- this.DefaultNode = this.importData?.default;
25
- const isLoaded = !!this.importData;
26
- this.store = createStore(this, {
27
- loading: !isLoaded,
28
- spinnerTimeout: isLoaded,
29
- });
30
- }
31
- componentDidMount() {
32
- if (!this.importData)
33
- this.update();
34
- }
35
- componentDidUpdate({ loader }) {
36
- if (!compare(this.props.loader, loader)) {
37
- // @ts-ignore
38
- this.clearSpinnerTimeout?.();
39
- this.update();
11
+ function useLazy(loader, spinnerTimeout = 500) {
12
+ const [loading, setLoading] = useState(() => {
13
+ const cached = loaded.get(loader);
14
+ return !cached;
15
+ });
16
+ const [spinnerTimeoutState, setSpinnerTimeoutState] = useState(() => {
17
+ const cached = loaded.get(loader);
18
+ return !!cached;
19
+ });
20
+ const [importData, setImportData] = useState(() => loaded.get(loader));
21
+ const loaderRef = useRef(loader);
22
+ const timeoutRef = useRef(null);
23
+ useEffect(() => {
24
+ const cached = loaded.get(loader);
25
+ // If already loaded, don't show loading state
26
+ if (cached) {
27
+ setImportData(cached);
28
+ setLoading(false);
29
+ setSpinnerTimeoutState(true);
30
+ return;
40
31
  }
41
- }
42
- update() {
43
- const { loader, spinnerTimeout = 500 } = this.props;
44
- this.clearSpinnerTimeout = Time.after(spinnerTimeout, () => this.setState({ spinnerTimeout: false }));
45
- this.store.loading = true;
32
+ // If loader changed, clear previous timeout
33
+ if (!compare(loaderRef.current, loader)) {
34
+ timeoutRef.current?.();
35
+ timeoutRef.current = null;
36
+ }
37
+ loaderRef.current = loader;
38
+ // Start loading
39
+ setLoading(true);
40
+ setSpinnerTimeoutState(false);
41
+ timeoutRef.current = Time.after(spinnerTimeout, () => {
42
+ setSpinnerTimeoutState(true);
43
+ });
46
44
  loader().then((data) => {
47
- if (!compare(this.props.loader, loader))
45
+ // Check if loader hasn't changed during async operation
46
+ if (!compare(loaderRef.current, loader))
48
47
  return;
49
- this.importData = data;
50
- this.DefaultNode = data.default;
51
48
  loaded.set(loader, data);
52
- this.store.loading = false;
49
+ setImportData(data);
50
+ setLoading(false);
53
51
  });
52
+ return () => {
53
+ timeoutRef.current?.();
54
+ };
55
+ }, [loader, spinnerTimeout]);
56
+ return { loading, spinnerTimeout: spinnerTimeoutState, importData };
57
+ }
58
+ function Lazy(props) {
59
+ const { progressElem, loader, render, children, hideSpinner, spinnerTimeout = 500, size = 'm', ...restProps } = props;
60
+ const { loading, spinnerTimeout: spinnerTimeoutState, importData, } = useLazy(loader, spinnerTimeout);
61
+ const DefaultNode = importData?.default;
62
+ if (loading && !spinnerTimeoutState && !hideSpinner) {
63
+ return (jsx(Fragment, { children: progressElem ?? (jsx(Flex, { justifyContent: "center", alignItems: "center", flexGrow: 1, width: "100%", height: "100%", children: jsx(Spinner, { size: size }) })) }));
54
64
  }
55
- render() {
56
- const { DefaultNode, importData } = this;
57
- const { progressElem, loader, render, children, hideSpinner, ...props } = this.props;
58
- const { loading, spinnerTimeout } = this.store;
59
- if (loading && !spinnerTimeout && !hideSpinner) {
60
- return (progressElem ?? (jsx(Flex, { justifyContent: "center", alignItems: "center", flexGrow: 1, width: "100%", height: "100%", children: jsx(Spinner, { size: props.size }) })));
61
- }
62
- if (render)
63
- return render(importData);
64
- if (typeof children === 'function')
65
- return children(importData);
66
- if (DefaultNode)
67
- return jsx(DefaultNode, { ...props });
68
- return children;
69
- }
65
+ if (render)
66
+ return jsx(Fragment, { children: render(importData) });
67
+ if (typeof children === 'function')
68
+ return jsx(Fragment, { children: children(importData) });
69
+ if (DefaultNode)
70
+ return jsx(DefaultNode, { ...restProps });
71
+ return jsx(Fragment, { children: children });
70
72
  }
71
73
 
72
74
  export { Lazy };
@@ -1,20 +1,3 @@
1
- import { Component, ComponentType } from 'react';
2
1
  import * as T from './Lazy.types';
3
2
  export type LazyProps = T.Props;
4
- export declare class Lazy extends Component<T.Props> {
5
- store: T.State;
6
- importData?: T.ImportData;
7
- DefaultNode?: ComponentType<any>;
8
- isLoaded: boolean;
9
- clearSpinnerTimeout: null;
10
- static defaultProps: {
11
- size: string;
12
- };
13
- constructor(props: T.Props);
14
- componentDidMount(): void;
15
- componentDidUpdate({ loader }: {
16
- loader: any;
17
- }): void;
18
- update(): void;
19
- render(): string | number | boolean | import("react").ReactFragment | JSX.Element;
20
- }
3
+ export declare function Lazy(props: T.Props): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.30.0",
3
+ "version": "4.30.1",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "tests": "jest",