@flozy/editor 8.0.7 → 8.0.9
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.
| @@ -154,7 +154,8 @@ const scrollToOptions = [{ | |
| 154 154 | 
             
            export const ScrollTopBottom = props => {
         | 
| 155 155 | 
             
              const {
         | 
| 156 156 | 
             
                value,
         | 
| 157 | 
            -
                onChange
         | 
| 157 | 
            +
                onChange,
         | 
| 158 | 
            +
                classes
         | 
| 158 159 | 
             
              } = props;
         | 
| 159 160 | 
             
              return /*#__PURE__*/_jsxs(_Fragment, {
         | 
| 160 161 | 
             
                children: [/*#__PURE__*/_jsx(Typography, {
         | 
| @@ -169,9 +170,7 @@ export const ScrollTopBottom = props => { | |
| 169 170 | 
             
                  value: value,
         | 
| 170 171 | 
             
                  onChange: e => onChange(e.target.value),
         | 
| 171 172 | 
             
                  MenuProps: {
         | 
| 172 | 
            -
                    sx:  | 
| 173 | 
            -
                      zIndex: "1302 !important"
         | 
| 174 | 
            -
                    }
         | 
| 173 | 
            +
                    sx: classes.customSelect
         | 
| 175 174 | 
             
                  },
         | 
| 176 175 | 
             
                  children: scrollToOptions.map((option, i) => {
         | 
| 177 176 | 
             
                    return /*#__PURE__*/_jsx(MenuItem, {
         | 
| @@ -87,9 +87,7 @@ export default function LinkSettings(props) { | |
| 87 87 | 
             
                    },
         | 
| 88 88 | 
             
                    displayEmpty: true,
         | 
| 89 89 | 
             
                    MenuProps: {
         | 
| 90 | 
            -
                      sx:  | 
| 91 | 
            -
                        zIndex: "1302 !important"
         | 
| 92 | 
            -
                      }
         | 
| 90 | 
            +
                      sx: classes.customSelect
         | 
| 93 91 | 
             
                    },
         | 
| 94 92 | 
             
                    children: navOptions.map((navOption, i) => {
         | 
| 95 93 | 
             
                      return /*#__PURE__*/_jsx(MenuItem, {
         | 
| @@ -111,7 +109,8 @@ export default function LinkSettings(props) { | |
| 111 109 | 
             
                      value: navValue,
         | 
| 112 110 | 
             
                      openInNewTab: openInNewTab,
         | 
| 113 111 | 
             
                      onNewTabChange: () => setOpenInNewTab(prev => !prev),
         | 
| 114 | 
            -
                      services: customProps.services
         | 
| 112 | 
            +
                      services: customProps.services,
         | 
| 113 | 
            +
                      classes: classes
         | 
| 115 114 | 
             
                    })
         | 
| 116 115 | 
             
                  }), /*#__PURE__*/_jsx(Box, {
         | 
| 117 116 | 
             
                    component: "div",
         | 
| @@ -35,6 +35,13 @@ const ButtonNavSettingsStyles = theme => ({ | |
| 35 35 | 
             
                  }
         | 
| 36 36 | 
             
                }
         | 
| 37 37 | 
             
              },
         | 
| 38 | 
            +
              customSelect: {
         | 
| 39 | 
            +
                zIndex: "1302 !important",
         | 
| 40 | 
            +
                "& .MuiPopover-paper": {
         | 
| 41 | 
            +
                  background: theme?.palette?.editor?.miniToolBarBackground,
         | 
| 42 | 
            +
                  color: theme?.palette?.editor?.textColor
         | 
| 43 | 
            +
                }
         | 
| 44 | 
            +
              },
         | 
| 38 45 | 
             
              saveBtn: {
         | 
| 39 46 | 
             
                color: "#fff",
         | 
| 40 47 | 
             
                background: "#2563EB",
         |