@evergis/react 4.0.28 → 4.0.29

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/dist/react.esm.js CHANGED
@@ -9389,6 +9389,13 @@ const ElementModal = memo(({ type = WidgetType.Dashboard, elementConfig }) => {
9389
9389
  return (jsxs(Fragment$1, { children: [jsx(ModalIcon, { kind: icon || "new_window", onClick: handleOpen }), jsxs(Dialog, { isOpen: isOpen, onCloseRequest: handleClose, modal: true, maxWidth: maxWidth, minWidth: minWidth, minHeight: minHeight, style: { paddingBottom: "2rem" }, children: [jsx(DialogTitle, { children: jsxs(Flex, { justifyContent: "space-between", alignItems: "center", children: [!!title && jsx("span", { children: title }), jsx(IconButton, { kind: "close", onClick: handleClose })] }) }), jsx(DialogContent, { children: isLoading ? (jsx(DashboardLoading, {})) : (jsx(Container, { isColumn: true, noBorders: true, children: jsx(ContainerChildren, { type: type, items: modalContent, isMain: true, renderElement: renderElement }) })) })] })] }));
9390
9390
  });
9391
9391
 
9392
+ const ElementLayerName = memo(({ type }) => {
9393
+ const { layerInfo } = useWidgetContext(type);
9394
+ if (!layerInfo?.name)
9395
+ return null;
9396
+ return jsx("span", { children: layerInfo.name });
9397
+ });
9398
+
9392
9399
  const elementComponents = {
9393
9400
  control: ElementControl,
9394
9401
  image: ElementImage,
@@ -9405,6 +9412,7 @@ const elementComponents = {
9405
9412
  markdown: ElementMarkdown,
9406
9413
  uploader: ElementUploader,
9407
9414
  modal: ElementModal,
9415
+ layerName: ElementLayerName,
9408
9416
  };
9409
9417
 
9410
9418
  const getElementValue = ({ getDefaultContainer, ...props }) => {