2020-05-28 18:10:26 +00:00
|
|
|
import React from "react";
|
|
|
|
|
|
2021-05-20 12:03:08 +00:00
|
|
|
export enum Indices {
|
2020-05-28 18:10:26 +00:00
|
|
|
Layer0,
|
|
|
|
|
Layer1,
|
|
|
|
|
Layer2,
|
|
|
|
|
Layer3,
|
|
|
|
|
Layer4,
|
|
|
|
|
Layer5,
|
|
|
|
|
Layer6,
|
|
|
|
|
Layer7,
|
2021-05-20 12:03:08 +00:00
|
|
|
Layer8,
|
|
|
|
|
Layer9,
|
2021-07-26 16:44:10 +00:00
|
|
|
Layer10,
|
2021-05-26 13:56:40 +00:00
|
|
|
Layer21 = 21,
|
2020-05-28 18:10:26 +00:00
|
|
|
LayerMax = 99999,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Layers = {
|
|
|
|
|
dropZone: Indices.Layer0,
|
2021-05-18 18:29:39 +00:00
|
|
|
|
2020-05-28 18:10:26 +00:00
|
|
|
dragPreview: Indices.Layer1,
|
2021-05-18 18:29:39 +00:00
|
|
|
// All Widgets Parent layer
|
|
|
|
|
positionedWidget: Indices.Layer1,
|
|
|
|
|
// Modal needs to higher than other widgets.
|
2021-10-28 02:11:19 +00:00
|
|
|
modalWidget: Indices.Layer3,
|
2021-05-26 13:56:40 +00:00
|
|
|
// Dropdown portaled to the canvas
|
|
|
|
|
dropdownWidget: Indices.Layer2,
|
|
|
|
|
// dropdown portaled to Modal Container with higher index than Overlay
|
|
|
|
|
dropdownModalWidget: Indices.Layer21,
|
2021-05-27 06:41:38 +00:00
|
|
|
selectedWidget: Indices.Layer2,
|
2021-05-18 18:29:39 +00:00
|
|
|
// Layers when dragging
|
|
|
|
|
animatedSnappingDropZone: Indices.Layer2,
|
|
|
|
|
|
2021-08-09 05:35:01 +00:00
|
|
|
focusedWidget: Indices.Layer3,
|
2021-05-18 18:29:39 +00:00
|
|
|
animatedDropZone: Indices.Layer3,
|
|
|
|
|
// Must be higher than any widget
|
|
|
|
|
widgetName: Indices.Layer3,
|
2020-05-28 18:10:26 +00:00
|
|
|
apiPane: Indices.Layer3,
|
2021-05-18 18:29:39 +00:00
|
|
|
// Propane needs to match sidebar to show propane on top side bar.
|
|
|
|
|
// Sidebar needs to be more than modal so that u can use side bar whilst u have the modal showing up on the canvas.
|
|
|
|
|
sideBar: Indices.Layer3,
|
|
|
|
|
propertyPane: Indices.Layer3,
|
2021-07-20 05:18:58 +00:00
|
|
|
tableFilterPane: Indices.Layer6,
|
2021-05-18 18:29:39 +00:00
|
|
|
|
2020-05-28 18:10:26 +00:00
|
|
|
help: Indices.Layer4,
|
2021-07-08 06:30:19 +00:00
|
|
|
contextMenu: Indices.Layer4,
|
2020-05-28 18:10:26 +00:00
|
|
|
dynamicAutoComplete: Indices.Layer5,
|
2021-04-23 13:50:55 +00:00
|
|
|
debugger: Indices.Layer6,
|
2021-09-06 09:29:35 +00:00
|
|
|
bottomBar: Indices.Layer6,
|
2021-02-11 06:36:07 +00:00
|
|
|
productUpdates: Indices.Layer7,
|
2021-08-29 03:50:16 +00:00
|
|
|
portals: Indices.Layer9,
|
2021-05-20 12:03:08 +00:00
|
|
|
header: Indices.Layer9,
|
2023-06-22 13:05:01 +00:00
|
|
|
signpostingOverlay: Indices.Layer9,
|
2021-07-26 16:44:10 +00:00
|
|
|
snipeableZone: Indices.Layer10,
|
2020-05-28 18:10:26 +00:00
|
|
|
max: Indices.LayerMax,
|
2021-08-05 13:48:51 +00:00
|
|
|
sideStickyBar: Indices.Layer7,
|
2021-09-23 08:05:36 +00:00
|
|
|
evaluationPopper: Indices.Layer3,
|
2021-10-04 08:01:46 +00:00
|
|
|
concurrentEditorWarning: Indices.Layer2,
|
2022-03-25 10:43:26 +00:00
|
|
|
manualUpgrade: Indices.Layer10,
|
2022-11-24 18:40:06 +00:00
|
|
|
|
|
|
|
|
autoHeightWithLimitsOverlay: Indices.Layer3,
|
2023-07-24 10:13:55 +00:00
|
|
|
|
|
|
|
|
// Should be higher than header and portal layer
|
|
|
|
|
guidedTour: Indices.Layer10,
|
2020-05-28 18:10:26 +00:00
|
|
|
};
|
|
|
|
|
|
2021-11-23 08:01:46 +00:00
|
|
|
export const tailwindLayers = {
|
2022-06-21 13:57:34 +00:00
|
|
|
propertyPane: "z-[3]",
|
|
|
|
|
entityExplorer: "z-[3]",
|
|
|
|
|
resizer: "z-[4]",
|
2021-11-23 08:01:46 +00:00
|
|
|
};
|
|
|
|
|
|
2020-05-28 18:10:26 +00:00
|
|
|
export const LayersContext = React.createContext(Layers);
|