@mapcomponents/ra-geospatial 1.0.4 → 1.5.5

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.
Files changed (37) hide show
  1. package/.babelrc +12 -0
  2. package/.storybook/main.ts +19 -0
  3. package/.storybook/manager.js +6 -0
  4. package/.storybook/mapcomponents_logo.png +0 -0
  5. package/.storybook/preview.ts +27 -0
  6. package/.storybook/style.css +20 -0
  7. package/.storybook/wheregroupTheme.js +9 -0
  8. package/README.md +71 -1
  9. package/assets/ra_geospatial_screenshots.png +0 -0
  10. package/eslint.config.cjs +3 -0
  11. package/package.json +22 -35
  12. package/project.json +8 -0
  13. package/src/components/GeospatialInput.stories.tsx +83 -0
  14. package/src/components/GeospatialInput.tsx +14 -17
  15. package/src/components/GeospatialInputMap.tsx +172 -169
  16. package/src/components/GeospatialShow.stories.tsx +84 -0
  17. package/src/components/GeospatialShow.tsx +15 -17
  18. package/src/components/GeospatialShowMap.tsx +53 -58
  19. package/src/contexts/DataContext.jsx +66 -0
  20. package/src/contexts/dataProvider.tsx +30 -0
  21. package/src/contexts/lsDataProvider.js +142 -0
  22. package/src/decorators/ReactAdminDefaultDecorator.tsx +41 -0
  23. package/src/index.ts +2 -2
  24. package/src/layout/GisLayout.jsx +97 -0
  25. package/src/ra_components/Poi.tsx +42 -0
  26. package/src/ra_components/Property.tsx +42 -0
  27. package/src/ra_components/Route.tsx +42 -0
  28. package/src/ra_components/raGeospatialProps.ts +5 -0
  29. package/src/ra_components/raGeospatialWebGisProps.ts +5 -0
  30. package/src/types.d.ts +3 -2
  31. package/tsconfig.json +7 -101
  32. package/tsconfig.lib.json +29 -0
  33. package/vite.config.ts +49 -0
  34. package/dist/index.esm.js +0 -155
  35. package/dist/index.esm.js.map +0 -1
  36. package/package-lock.json +0 -16564
  37. package/rollup.config.js +0 -50
package/rollup.config.js DELETED
@@ -1,50 +0,0 @@
1
- import peerDepsExternal from "rollup-plugin-peer-deps-external";
2
- import resolve from "@rollup/plugin-node-resolve";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import typescript from "rollup-plugin-typescript2";
5
-
6
- import babel from "@rollup/plugin-babel";
7
- import url from "@rollup/plugin-url";
8
- import external from "rollup-plugin-peer-deps-external";
9
-
10
- import del from "rollup-plugin-delete";
11
-
12
- const config = {
13
- input: "src/index.ts",
14
- output: [
15
- {
16
- inlineDynamicImports: true,
17
- file: "dist/index.esm.js",
18
- format: "esm",
19
- sourcemap: true,
20
- },
21
- ],
22
- plugins: [
23
- url(),
24
- babel({
25
- exclude: "node_modules/**",
26
- babelHelpers: "bundled",
27
- presets: ["@babel/preset-react"],
28
- }),
29
- external(),
30
- peerDepsExternal(),
31
- commonjs(),
32
- typescript({
33
- useTsconfigDeclarationDir: true,
34
- tsconfig: "tsconfig.json",
35
- }),
36
- del({ targets: ["build/*"] }),
37
- ],
38
- external: [
39
- "@mapcomponents/react-maplibre",
40
- "react-admin",
41
- "react",
42
- "wellknown",
43
- "@turf/turf",
44
- ],
45
-
46
- onwarn: function (warning, warn) {
47
- warn(warning);
48
- },
49
- };
50
- export default config;