mirror of
https://github.com/maputnik/editor.git
synced 2025-12-29 17:40:01 +00:00
Many dependency updates
@storybook 6.4.20 blocks most of others like: react 18, webpack 5, and keeps lots of unnecessary dependencies due to chakra 2 dep.
This commit is contained in:
@@ -4,7 +4,7 @@ import cloneDeep from 'lodash.clonedeep'
|
||||
import clamp from 'lodash.clamp'
|
||||
import get from 'lodash.get'
|
||||
import {unset} from 'lodash'
|
||||
import arrayMove from 'array-move'
|
||||
import {arrayMoveImmutable} from 'array-move'
|
||||
import url from 'url'
|
||||
import hash from "string-hash";
|
||||
|
||||
@@ -486,7 +486,7 @@ export default class App extends React.Component {
|
||||
}
|
||||
|
||||
layers = layers.slice(0);
|
||||
layers = arrayMove(layers, oldIndex, newIndex);
|
||||
layers = arrayMoveMutable(layers, oldIndex, newIndex);
|
||||
this.onLayersChange(layers);
|
||||
}
|
||||
|
||||
|
||||
@@ -276,26 +276,6 @@ export default class DataProperty extends React.Component {
|
||||
{deleteStopBtn}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
return <Block
|
||||
error={error}
|
||||
key={key}
|
||||
action={deleteStopBtn}
|
||||
label=""
|
||||
>
|
||||
{zoomInput}
|
||||
<div className="maputnik-data-spec-property-stop-data">
|
||||
{dataInput}
|
||||
</div>
|
||||
<div className="maputnik-data-spec-property-stop-value">
|
||||
<InputSpec
|
||||
fieldName={this.props.fieldName}
|
||||
fieldSpec={this.props.fieldSpec}
|
||||
value={value}
|
||||
onChange={(_, newValue) => this.changeStop(idx, {zoom: zoomLevel, value: dataLevel}, newValue)}
|
||||
/>
|
||||
</div>
|
||||
</Block>
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user