@geowiki/ui 0.16.9-dev.8 → 0.16.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.
- package/dist/{chunk-2KORXHVU.mjs → chunk-IIIL7C6U.mjs} +1 -2
- package/dist/{cluster-map-WZNS6WYH.mjs → cluster-map-YODMYBPK.mjs} +6 -8
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +160 -191
- package/dist/index.mjs +145 -170
- package/dist/styles.css +1 -1
- package/package.json +78 -78
|
@@ -20,8 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
21
21
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
22
22
|
}) : x)(function(x) {
|
|
23
|
-
if (typeof require !== "undefined")
|
|
24
|
-
return require.apply(this, arguments);
|
|
23
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
25
24
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
26
25
|
});
|
|
27
26
|
var __objRest = (source, exclude) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__objRest,
|
|
4
4
|
__spreadProps,
|
|
5
5
|
__spreadValues
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IIIL7C6U.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/ClusterMap/cluster-map.tsx
|
|
9
9
|
import { MapContainer, TileLayer } from "react-leaflet";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
createElementObject,
|
|
42
42
|
createPathComponent
|
|
43
43
|
} from "@react-leaflet/core";
|
|
44
|
-
import
|
|
44
|
+
import L from "leaflet";
|
|
45
45
|
import "leaflet.markercluster";
|
|
46
46
|
function getPropsAndEvents(props) {
|
|
47
47
|
let clusterProps = {};
|
|
@@ -70,7 +70,7 @@ function createMarkerClusterGroup(props, context) {
|
|
|
70
70
|
}
|
|
71
71
|
var updateMarkerCluster = () => {
|
|
72
72
|
};
|
|
73
|
-
var
|
|
73
|
+
var MarkerClusterGroup = createPathComponent(
|
|
74
74
|
createMarkerClusterGroup,
|
|
75
75
|
updateMarkerCluster
|
|
76
76
|
);
|
|
@@ -90,12 +90,10 @@ var ClusterMarkers = (_props) => {
|
|
|
90
90
|
const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = useConfigSettings();
|
|
91
91
|
const { data, error, isLoading } = useClusterMapInfo();
|
|
92
92
|
const fileUrl = useFileUrl();
|
|
93
|
-
if (error)
|
|
94
|
-
|
|
95
|
-
if (isLoading || IsConfigSettingsLoaded)
|
|
96
|
-
return /* @__PURE__ */ jsx2(LoaderFull, {});
|
|
93
|
+
if (error) return null;
|
|
94
|
+
if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ jsx2(LoaderFull, {});
|
|
97
95
|
if ((_b = (_a = ConfigSettings == null ? void 0 : ConfigSettings.ConfigSettings) == null ? void 0 : _a.FeaturesFarmerCluster) == null ? void 0 : _b.Text) {
|
|
98
|
-
return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(
|
|
96
|
+
return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(MarkerClusterGroup, { children: data == null ? void 0 : data.map((cluster) => {
|
|
99
97
|
var _a2, _b2;
|
|
100
98
|
return /* @__PURE__ */ jsx2(
|
|
101
99
|
Marker2,
|
package/dist/index.d.mts
CHANGED
|
@@ -366,7 +366,7 @@ type Props$r = {
|
|
|
366
366
|
priority?: boolean;
|
|
367
367
|
showPlaceholder?: boolean;
|
|
368
368
|
};
|
|
369
|
-
declare const CmsImage: ({ src, width, height, alt, className, showPlaceholder, }: Props$r) => react_jsx_runtime.JSX.Element
|
|
369
|
+
declare const CmsImage: ({ src, width, height, alt, className, showPlaceholder, }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
370
370
|
|
|
371
371
|
declare const Video: ({ media, poster, className, controls, autoPlay, }: any) => react_jsx_runtime.JSX.Element;
|
|
372
372
|
|
|
@@ -737,7 +737,7 @@ type ApiImageProps = {
|
|
|
737
737
|
className?: string;
|
|
738
738
|
sizes?: string;
|
|
739
739
|
};
|
|
740
|
-
declare const ApiImage: ({ imageId, className, alt, width, height, }: ApiImageProps) => react_jsx_runtime.JSX.Element
|
|
740
|
+
declare const ApiImage: ({ imageId, className, alt, width, height, }: ApiImageProps) => react_jsx_runtime.JSX.Element;
|
|
741
741
|
|
|
742
742
|
interface SignUpBannerProps {
|
|
743
743
|
title: string;
|
|
@@ -980,7 +980,7 @@ declare const SubtitleH3Body: ({ title, subtitle, content, button, backgroundCol
|
|
|
980
980
|
interface Props$5 {
|
|
981
981
|
title: string;
|
|
982
982
|
subtitle: string;
|
|
983
|
-
textBody: string;
|
|
983
|
+
textBody: string | null | undefined;
|
|
984
984
|
links: LinkProps[];
|
|
985
985
|
}
|
|
986
986
|
declare const SubtitleH3BodyInternalLinkList: ({ title, subtitle, textBody, links, }: Props$5) => react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -366,7 +366,7 @@ type Props$r = {
|
|
|
366
366
|
priority?: boolean;
|
|
367
367
|
showPlaceholder?: boolean;
|
|
368
368
|
};
|
|
369
|
-
declare const CmsImage: ({ src, width, height, alt, className, showPlaceholder, }: Props$r) => react_jsx_runtime.JSX.Element
|
|
369
|
+
declare const CmsImage: ({ src, width, height, alt, className, showPlaceholder, }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
370
370
|
|
|
371
371
|
declare const Video: ({ media, poster, className, controls, autoPlay, }: any) => react_jsx_runtime.JSX.Element;
|
|
372
372
|
|
|
@@ -737,7 +737,7 @@ type ApiImageProps = {
|
|
|
737
737
|
className?: string;
|
|
738
738
|
sizes?: string;
|
|
739
739
|
};
|
|
740
|
-
declare const ApiImage: ({ imageId, className, alt, width, height, }: ApiImageProps) => react_jsx_runtime.JSX.Element
|
|
740
|
+
declare const ApiImage: ({ imageId, className, alt, width, height, }: ApiImageProps) => react_jsx_runtime.JSX.Element;
|
|
741
741
|
|
|
742
742
|
interface SignUpBannerProps {
|
|
743
743
|
title: string;
|
|
@@ -980,7 +980,7 @@ declare const SubtitleH3Body: ({ title, subtitle, content, button, backgroundCol
|
|
|
980
980
|
interface Props$5 {
|
|
981
981
|
title: string;
|
|
982
982
|
subtitle: string;
|
|
983
|
-
textBody: string;
|
|
983
|
+
textBody: string | null | undefined;
|
|
984
984
|
links: LinkProps[];
|
|
985
985
|
}
|
|
986
986
|
declare const SubtitleH3BodyInternalLinkList: ({ title, subtitle, textBody, links, }: Props$5) => react_jsx_runtime.JSX.Element;
|