ui-layout-manager-dev 0.0.30-dev → 0.0.31-dev

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": "ui-layout-manager-dev",
3
- "version": "0.0.30-dev",
3
+ "version": "0.0.31-dev",
4
4
  "description": "A react component to manage layout and themes in single page applications.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -30,13 +30,13 @@ export const RootContainer = () => {
30
30
  const timerRef = useRef(null);
31
31
  const resizingRef = useRef(false);
32
32
  const loadingOverlayRef = useRef(null);
33
- const [showOverlay, setShowOverlay] = useState(true);
33
+ const [showLoadingScreen, setShowLoadingScreen] = useState(true);
34
34
 
35
35
  // Create the container API that will be used by the controller.
36
36
  const rootContainerAPI = useRef({});
37
37
  rootContainerAPI.current = {
38
- hideOverlay: () => {
39
- setShowOverlay(false);
38
+ hideLoadingScreen: () => {
39
+ setShowLoadingScreen(false);
40
40
  }
41
41
  };
42
42
 
@@ -124,7 +124,7 @@ export const RootContainer = () => {
124
124
  observer.disconnect();
125
125
  }
126
126
  }
127
- }, [layoutController, setShowOverlay, showOverlay]);
127
+ }, [layoutController, setShowLoadingScreen, showLoadingScreen]);
128
128
 
129
129
  const sensors = useSensors(
130
130
  useSensor(PointerSensor, {
@@ -153,7 +153,7 @@ export const RootContainer = () => {
153
153
  onDragEnd={dragController.onDragEnd}
154
154
  onDragCancel={dragController.onDragCancel}>
155
155
 
156
- {showOverlay && <div className="loading-overlay" ref={loadingOverlayRef}>
156
+ {showLoadingScreen && <div className="loading-overlay" ref={loadingOverlayRef}>
157
157
  <div className="loading-bar">
158
158
  <div className="loading-bar-fill"></div>
159
159
  </div>
@@ -7,8 +7,8 @@
7
7
 
8
8
  .relative-container {
9
9
  position: relative;
10
- display:flex;
11
- width:100%;
10
+ display: flex;
11
+ width: 100%;
12
12
  height: 100%;
13
13
  overflow: hidden;
14
14
  }
@@ -33,30 +33,31 @@
33
33
  }
34
34
 
35
35
  .loading-bar {
36
- width: 100%;
37
- height: 4px;
38
- background: #1a1a1a;
39
- overflow: hidden;
40
- position: relative;
41
- border-radius: 999px;
36
+ width: 100%;
37
+ height: 4px;
38
+ background: #1a1a1a;
39
+ overflow: hidden;
40
+ position: relative;
41
+ border-radius: 999px;
42
42
  }
43
43
 
44
44
  .loading-bar-fill {
45
- position: absolute;
46
- top: 0;
47
- left: -40%;
48
- width: 40%;
49
- height: 100%;
50
- background: #4da3ff;
51
- border-radius: 999px;
52
- animation: loading-slide 1.2s infinite ease-in-out;
45
+ position: absolute;
46
+ top: 0;
47
+ left: -40%;
48
+ width: 40%;
49
+ height: 100%;
50
+ background: #4da3ff;
51
+ border-radius: 999px;
52
+ animation: loading-slide 1.2s infinite ease-in-out;
53
53
  }
54
54
 
55
55
  @keyframes loading-slide {
56
- 0% {
57
- left: -40%;
58
- }
59
- 100% {
60
- left: 100%;
61
- }
56
+ 0% {
57
+ left: -40%;
58
+ }
59
+
60
+ 100% {
61
+ left: 100%;
62
+ }
62
63
  }
@@ -185,8 +185,8 @@ export class LayoutController {
185
185
  case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:
186
186
  transformations = event.data.data;
187
187
  this.applyTransformations(transformations, true);
188
- // After initial layout is applied, we can hide the loading overlay.
189
- this.containers["root"].current.hideOverlay();
188
+ // After initial layout is applied, we can hide the loading screen.
189
+ this.containers["root"].current.hideLoadingScreen();
190
190
  break;
191
191
  case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS:
192
192
  transformations = event.data.data;