andoncloud-map-widget 1.0.0

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.FC<import("andoncloud-dashboard-toolkit").WidgetProps<import("../types").WidgetData, import("../types").WidgetSettings>>>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<React.FC<import("andoncloud-dashboard-toolkit").WidgetProps<import("../types").WidgetData, import("../types").WidgetSettings>>>;
@@ -0,0 +1,23 @@
1
+ import type { BaseWidgetData, BaseWidgetSettings, FloorPlan, StatusChange, Workplace } from 'andoncloud-dashboard-toolkit';
2
+ import { BaseWidgetViewProps } from 'andoncloud-widget-base';
3
+ import { LatLng } from 'leaflet';
4
+ interface WidgetViewData {
5
+ workplaces: Workplace[];
6
+ statusChanges: StatusChange[];
7
+ }
8
+ interface WidgetSettingsData {
9
+ floorPlans: FloorPlan[];
10
+ }
11
+ export interface WidgetData extends BaseWidgetData, WidgetViewData, WidgetSettingsData {
12
+ }
13
+ export interface WidgetSettings extends BaseWidgetSettings {
14
+ floorPlanId: string;
15
+ center: LatLng;
16
+ zoom: number;
17
+ features: GeoJSON.Feature[];
18
+ }
19
+ export interface WidgetViewProps extends BaseWidgetViewProps<WidgetData, WidgetSettings> {
20
+ }
21
+ export interface MapProps extends WidgetViewProps {
22
+ }
23
+ export {};
@@ -0,0 +1 @@
1
+ export declare const LIBRARY_VERSION = "1.0.0";
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "andoncloud-map-widget",
3
+ "version": "1.0.0",
4
+ "description": "Made with create-andoncloud-widget",
5
+ "author": "Adrian Olszewski",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "source": "src/index.tsx",
10
+ "engines": {
11
+ "node": ">=14"
12
+ },
13
+ "scripts": {
14
+ "build": "library-scripts build --type widget",
15
+ "build:watch": "library-scripts build-watch --type widget",
16
+ "start:preview": "cd preview && npm run start",
17
+ "start": "run-p build:watch start:preview",
18
+ "lint": "eslint --ext .ts,.tsx --quiet --fix .",
19
+ "lint:ci": "eslint --ext .ts,.tsx --quiet .",
20
+ "i18n:extract": "i18next src/components/**/*.tsx [-oc]",
21
+ "prepare": "run-s build"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "^18.0.0"
25
+ },
26
+ "devDependencies": {
27
+ "@emotion/react": "^11.10.5",
28
+ "@emotion/styled": "^11.10.5",
29
+ "@types/leaflet": "^1.9.0",
30
+ "@types/style-inject": "^0.3.0",
31
+ "@types/uuid": "^9.0.0",
32
+ "andoncloud-library-scripts": "^1.0.3",
33
+ "eslint-config-andoncloud": "^1.0.0",
34
+ "mobx": "^6.7.0",
35
+ "mobx-react-lite": "^3.4.0",
36
+ "npm-run-all": "^4.1.5",
37
+ "postcss": "^8.4.20",
38
+ "react": "^18.2.0",
39
+ "react-dom": "^18.2.0",
40
+ "react-router-dom": "^6.6.1",
41
+ "react-scripts": "^5.0.1",
42
+ "sass": "^1.57.1",
43
+ "style-inject": "^0.3.0"
44
+ },
45
+ "files": [
46
+ "dist"
47
+ ],
48
+ "dependencies": {
49
+ "@react-hook/size": "^2.1.2",
50
+ "andoncloud-dashboard-toolkit": "^1.2.4",
51
+ "andoncloud-widget-base": "^1.1.6",
52
+ "leaflet": "^1.9.3",
53
+ "leaflet-clonelayer": "^1.0.7",
54
+ "leaflet-contextmenu": "^1.4.0",
55
+ "leaflet-draw": "^1.0.4",
56
+ "leaflet-path-drag": "^1.8.0-beta.3",
57
+ "react-leaflet": "^4.2.0",
58
+ "react-leaflet-custom-control": "^1.3.1",
59
+ "react-leaflet-draw": "^0.20.4",
60
+ "uuid": "^9.0.0"
61
+ }
62
+ }