@mapcomponents/react-maplibre 0.1.86 → 0.1.87

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.
@@ -11,6 +11,8 @@ interface LayerListItemProps {
11
11
  showDeleteButton?: boolean;
12
12
  listItemSx?: SxProps;
13
13
  buttons?: JSX.Element;
14
+ layerId?: string;
15
+ sortable?: boolean;
14
16
  }
15
17
  declare function LayerListItem({ layerComponent, visible, type, name, description, configurable, setLayerState, ...props }: LayerListItemProps): JSX.Element;
16
18
  declare namespace LayerListItem {
@@ -5,6 +5,7 @@ export interface LayerListItemFactoryProps {
5
5
  layers: LayerConfig[];
6
6
  setLayers?: (layers: LayerConfig[] | ((state: LayerConfig[]) => LayerConfig[])) => void;
7
7
  insertBeforeLayer?: string;
8
+ sortable?: boolean;
8
9
  }
9
10
  declare function LayerListItemFactory(props: LayerListItemFactoryProps): JSX.Element;
10
11
  declare namespace LayerListItemFactory {
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface SortableContainerProps {
3
+ children: ReactNode;
4
+ layerId: string;
5
+ }
6
+ declare function SortableContainer({ children, layerId }: SortableContainerProps): JSX.Element;
7
+ export default SortableContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcomponents/react-maplibre",
3
- "version": "0.1.86",
3
+ "version": "0.1.87",
4
4
  "main": "dist/index.esm.js",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.esm.js",
@@ -19,6 +19,9 @@
19
19
  "create-component": "./scripts/create-map-component.sh"
20
20
  },
21
21
  "dependencies": {
22
+ "@dnd-kit/core": "^6.0.8",
23
+ "@dnd-kit/modifiers": "^6.0.1",
24
+ "@dnd-kit/sortable": "^7.0.2",
22
25
  "@emotion/css": "^11.10.5",
23
26
  "@emotion/react": "^11.10.8",
24
27
  "@emotion/styled": "^11.10.8",