@geowiki/ui 0.16.9-dev.20 → 0.16.9-dev.22
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/{cluster-map-VNFQJ56C.mjs → cluster-map-YODMYBPK.mjs} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +88 -84
- package/dist/index.mjs +74 -70
- package/package.json +47 -47
|
@@ -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
|
);
|
|
@@ -93,7 +93,7 @@ var ClusterMarkers = (_props) => {
|
|
|
93
93
|
if (error) return null;
|
|
94
94
|
if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ jsx2(LoaderFull, {});
|
|
95
95
|
if ((_b = (_a = ConfigSettings == null ? void 0 : ConfigSettings.ConfigSettings) == null ? void 0 : _a.FeaturesFarmerCluster) == null ? void 0 : _b.Text) {
|
|
96
|
-
return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(
|
|
96
|
+
return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(MarkerClusterGroup, { children: data == null ? void 0 : data.map((cluster) => {
|
|
97
97
|
var _a2, _b2;
|
|
98
98
|
return /* @__PURE__ */ jsx2(
|
|
99
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;
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ function getPropsAndEvents(props) {
|
|
|
121
121
|
}
|
|
122
122
|
function createMarkerClusterGroup(props, context) {
|
|
123
123
|
const { clusterProps, clusterEvents } = getPropsAndEvents(props);
|
|
124
|
-
const markerClusterGroup = new
|
|
124
|
+
const markerClusterGroup = new import_leaflet2.default.MarkerClusterGroup(clusterProps);
|
|
125
125
|
Object.entries(clusterEvents).forEach(([eventAsProp, callback]) => {
|
|
126
126
|
const clusterEvent = `cluster${eventAsProp.substring(2).toLowerCase()}`;
|
|
127
127
|
markerClusterGroup.on(clusterEvent, callback);
|
|
@@ -131,17 +131,17 @@ function createMarkerClusterGroup(props, context) {
|
|
|
131
131
|
(0, import_core74.extendContext)(context, { layerContainer: markerClusterGroup })
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
var import_core74,
|
|
134
|
+
var import_core74, import_leaflet2, import_leaflet3, updateMarkerCluster, MarkerClusterGroup;
|
|
135
135
|
var init_MarkerClusterGroup = __esm({
|
|
136
136
|
"src/components/ClusterMap/MarkerClusterGroup.tsx"() {
|
|
137
137
|
"use strict";
|
|
138
138
|
"use client";
|
|
139
139
|
import_core74 = require("@react-leaflet/core");
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
import_leaflet2 = __toESM(require("leaflet"));
|
|
141
|
+
import_leaflet3 = require("leaflet.markercluster");
|
|
142
142
|
updateMarkerCluster = () => {
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
MarkerClusterGroup = (0, import_core74.createPathComponent)(
|
|
145
145
|
createMarkerClusterGroup,
|
|
146
146
|
updateMarkerCluster
|
|
147
147
|
);
|
|
@@ -153,12 +153,12 @@ function getIcon() {
|
|
|
153
153
|
const MyIcon = import_InformationCircleIcon.default;
|
|
154
154
|
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(MyIcon, { height: 24, color: "black" }));
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var import_leaflet4, import_react_leaflet2, import_core75, import_design_system62, import_core76, import_core77, import_InformationCircleIcon, import_server, import_core78, import_jsx_runtime82, ClusterMarkers;
|
|
157
157
|
var init_cluster_markers = __esm({
|
|
158
158
|
"src/components/ClusterMap/cluster-markers.tsx"() {
|
|
159
159
|
"use strict";
|
|
160
160
|
"use client";
|
|
161
|
-
|
|
161
|
+
import_leaflet4 = require("leaflet");
|
|
162
162
|
import_react_leaflet2 = require("react-leaflet");
|
|
163
163
|
import_core75 = require("@geowiki/core");
|
|
164
164
|
import_design_system62 = require("@geowiki/design-system");
|
|
@@ -177,20 +177,20 @@ var init_cluster_markers = __esm({
|
|
|
177
177
|
if (error) return null;
|
|
178
178
|
if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_design_system62.LoaderFull, {});
|
|
179
179
|
if ((_b = (_a = ConfigSettings == null ? void 0 : ConfigSettings.ConfigSettings) == null ? void 0 : _a.FeaturesFarmerCluster) == null ? void 0 : _b.Text) {
|
|
180
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(MarkerClusterGroup, { children: data == null ? void 0 : data.map((cluster) => {
|
|
181
181
|
var _a2, _b2;
|
|
182
182
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
183
183
|
import_react_leaflet2.Marker,
|
|
184
184
|
{
|
|
185
|
-
icon: new
|
|
185
|
+
icon: new import_leaflet4.DivIcon({
|
|
186
186
|
iconSize: [30, 30],
|
|
187
187
|
html: `<div class='marker-pin' style="background:#467327;"></div><i>${getIcon()}</i>`,
|
|
188
188
|
className: "custom-div-icon"
|
|
189
189
|
}),
|
|
190
|
-
position: cluster.location ? new
|
|
190
|
+
position: cluster.location ? new import_leaflet4.LatLng(
|
|
191
191
|
(_a2 = cluster == null ? void 0 : cluster.location) == null ? void 0 : _a2.latitude,
|
|
192
192
|
(_b2 = cluster == null ? void 0 : cluster.location) == null ? void 0 : _b2.longitude
|
|
193
|
-
) : new
|
|
193
|
+
) : new import_leaflet4.LatLng(0, 0),
|
|
194
194
|
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react_leaflet2.Popup, { maxWidth: 600, children: [
|
|
195
195
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "bg-no-repeat bg-cover ripple shadow-lg rounded-lg mb-6 object-cover", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
196
196
|
import_core76.Image,
|
|
@@ -232,18 +232,18 @@ __export(cluster_map_exports, {
|
|
|
232
232
|
FarmerClusterMap: () => FarmerClusterMap,
|
|
233
233
|
default: () => cluster_map_default
|
|
234
234
|
});
|
|
235
|
-
var import_react_leaflet3,
|
|
235
|
+
var import_react_leaflet3, import_leaflet5, import_leaflet6, import_jsx_runtime83, centerLocation, FarmerClusterMap, cluster_map_default;
|
|
236
236
|
var init_cluster_map = __esm({
|
|
237
237
|
"src/components/ClusterMap/cluster-map.tsx"() {
|
|
238
238
|
"use strict";
|
|
239
239
|
"use client";
|
|
240
240
|
import_react_leaflet3 = require("react-leaflet");
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
import_leaflet5 = require("leaflet/dist/leaflet.css");
|
|
242
|
+
import_leaflet6 = require("leaflet");
|
|
243
243
|
init_location_marker();
|
|
244
244
|
init_cluster_markers();
|
|
245
245
|
import_jsx_runtime83 = require("react/jsx-runtime");
|
|
246
|
-
centerLocation = new
|
|
246
|
+
centerLocation = new import_leaflet6.LatLng(48.2082, 16.3738);
|
|
247
247
|
FarmerClusterMap = (props) => {
|
|
248
248
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "w-full", children: [
|
|
249
249
|
props.enableLocationMarker && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "text-center text-xl pb-4", children: [
|
|
@@ -3214,7 +3214,7 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
3214
3214
|
if (userCurrentProject && (userCurrentProject[0].contract_start_date != contractStartDate || userCurrentProject[0].contract_end_date != contractEndDate)) {
|
|
3215
3215
|
if (contractStartDate == "") setContractStartDate(null);
|
|
3216
3216
|
if (contractEndDate == "") setContractEndDate(null);
|
|
3217
|
-
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(
|
|
3217
|
+
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(contractStartDate)) {
|
|
3218
3218
|
alert("Please provide correct date");
|
|
3219
3219
|
return;
|
|
3220
3220
|
}
|
|
@@ -5806,8 +5806,7 @@ var CmsImage = ({
|
|
|
5806
5806
|
className = "relative w-full h-full",
|
|
5807
5807
|
showPlaceholder = true
|
|
5808
5808
|
}) => {
|
|
5809
|
-
|
|
5810
|
-
if (isLoading) return null;
|
|
5809
|
+
const cmsImageUrl = (0, import_core56.useCmsImage)(src);
|
|
5811
5810
|
if (width && height) {
|
|
5812
5811
|
if (!showPlaceholder)
|
|
5813
5812
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -6828,7 +6827,6 @@ var NewsArticle = (props) => {
|
|
|
6828
6827
|
|
|
6829
6828
|
// src/components/News/NewsItemList.tsx
|
|
6830
6829
|
var import_core70 = require("@geowiki/core");
|
|
6831
|
-
var import_uuid8 = require("uuid");
|
|
6832
6830
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6833
6831
|
var NewsItemList = ({ newsItems }) => {
|
|
6834
6832
|
const allLanguages = [
|
|
@@ -6871,19 +6869,22 @@ var NewsItemList = ({ newsItems }) => {
|
|
|
6871
6869
|
index
|
|
6872
6870
|
);
|
|
6873
6871
|
}) }) }) }) }),
|
|
6874
|
-
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle) =>
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6872
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle, index) => {
|
|
6873
|
+
var _a;
|
|
6874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6875
|
+
NewsArticle,
|
|
6876
|
+
{
|
|
6877
|
+
title: newsArticle.title,
|
|
6878
|
+
description: newsArticle.description,
|
|
6879
|
+
username: newsArticle.sourceName,
|
|
6880
|
+
time: newsArticle.publishDate,
|
|
6881
|
+
language: newsArticle.language,
|
|
6882
|
+
path: newsArticle.imageUrl,
|
|
6883
|
+
link: newsArticle.url
|
|
6884
|
+
},
|
|
6885
|
+
(_a = newsArticle.url) != null ? _a : `news-${index}`
|
|
6886
|
+
);
|
|
6887
|
+
}) }) }) })
|
|
6887
6888
|
] }) });
|
|
6888
6889
|
};
|
|
6889
6890
|
|
|
@@ -6948,9 +6949,9 @@ var PublicationItem = ({ publication }) => {
|
|
|
6948
6949
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6949
6950
|
var motion7 = import_framer_motion7.motion;
|
|
6950
6951
|
var PublicationList = ({ publications }) => {
|
|
6951
|
-
publications.sort(
|
|
6952
|
-
|
|
6953
|
-
|
|
6952
|
+
const sorted = [...publications].sort(
|
|
6953
|
+
(a, b) => new Date(b.PublishedUtc).getTime() - new Date(a.PublishedUtc).getTime()
|
|
6954
|
+
);
|
|
6954
6955
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6955
6956
|
motion7.ul,
|
|
6956
6957
|
{
|
|
@@ -6959,7 +6960,7 @@ var PublicationList = ({ publications }) => {
|
|
|
6959
6960
|
animate: "enter",
|
|
6960
6961
|
exit: "exit",
|
|
6961
6962
|
variants: import_core73.listVariants,
|
|
6962
|
-
children:
|
|
6963
|
+
children: sorted.map((post) => {
|
|
6963
6964
|
var _a;
|
|
6964
6965
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(PublicationItem, { publication: post }, (_a = post.AutoroutePart) == null ? void 0 : _a.Path);
|
|
6965
6966
|
})
|
|
@@ -7462,7 +7463,7 @@ var UpdateUserProfile = ({
|
|
|
7462
7463
|
text: "Profile updated successfully",
|
|
7463
7464
|
icon: "success"
|
|
7464
7465
|
}).then(() => {
|
|
7465
|
-
|
|
7466
|
+
window.location.reload();
|
|
7466
7467
|
});
|
|
7467
7468
|
} else {
|
|
7468
7469
|
import_sweetalert22.default.fire({
|
|
@@ -8610,6 +8611,7 @@ var FilterDropdown = ({
|
|
|
8610
8611
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8611
8612
|
import_react60.Disclosure,
|
|
8612
8613
|
{
|
|
8614
|
+
as: "div",
|
|
8613
8615
|
"data-component": "FilterDropdown",
|
|
8614
8616
|
defaultOpen: filterValues.length > 0,
|
|
8615
8617
|
children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
|
|
@@ -8684,7 +8686,7 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8684
8686
|
// src/components/DesignElements/BannerFollowLinks.tsx
|
|
8685
8687
|
var import_design_system78 = require("@geowiki/design-system");
|
|
8686
8688
|
var import_core89 = require("@geowiki/core");
|
|
8687
|
-
var
|
|
8689
|
+
var import_uuid8 = require("uuid");
|
|
8688
8690
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
8689
8691
|
var BannerFollowLinks = ({ title, links }) => {
|
|
8690
8692
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: " py-8 mt-6 flex-col flex items-center justify-center bg-primary text-white rounded-2xl lg:pt-[100px] lg:mt-10 lg:pb-[88px] space-y-8", children: [
|
|
@@ -8697,7 +8699,7 @@ var BannerFollowLinks = ({ title, links }) => {
|
|
|
8697
8699
|
rel: "noreferrer",
|
|
8698
8700
|
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_design_system78.H9Design, { children: link.text })
|
|
8699
8701
|
},
|
|
8700
|
-
(0,
|
|
8702
|
+
(0, import_uuid8.v4)()
|
|
8701
8703
|
)) })
|
|
8702
8704
|
] });
|
|
8703
8705
|
};
|
|
@@ -8877,14 +8879,13 @@ var ApiImage = ({
|
|
|
8877
8879
|
width = 0,
|
|
8878
8880
|
height = 0
|
|
8879
8881
|
}) => {
|
|
8880
|
-
|
|
8881
|
-
if (isLoading) return null;
|
|
8882
|
+
const src = (0, import_core91.useApiImage)(imageId);
|
|
8882
8883
|
if (width > 0 && height > 0) {
|
|
8883
8884
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8884
8885
|
import_core92.Image,
|
|
8885
8886
|
{
|
|
8886
8887
|
className,
|
|
8887
|
-
src
|
|
8888
|
+
src,
|
|
8888
8889
|
alt,
|
|
8889
8890
|
placeholder: `data:image/svg+xml;base64,${(0, import_core91.toBase64)((0, import_core91.shimmer)(700, 490))}`,
|
|
8890
8891
|
width,
|
|
@@ -8898,7 +8899,7 @@ var ApiImage = ({
|
|
|
8898
8899
|
import_core92.Image,
|
|
8899
8900
|
{
|
|
8900
8901
|
className: "object-cover rounded-xl",
|
|
8901
|
-
src
|
|
8902
|
+
src,
|
|
8902
8903
|
alt,
|
|
8903
8904
|
fill: true,
|
|
8904
8905
|
placeholder: `data:image/svg+xml;base64,${(0, import_core91.toBase64)((0, import_core91.shimmer)(700, 490))}`,
|
|
@@ -8911,7 +8912,7 @@ var ApiImage = ({
|
|
|
8911
8912
|
// src/components/DesignElements/SignUpBanner.tsx
|
|
8912
8913
|
var import_design_system81 = require("@geowiki/design-system");
|
|
8913
8914
|
var import_core93 = require("@geowiki/core");
|
|
8914
|
-
var
|
|
8915
|
+
var import_uuid9 = require("uuid");
|
|
8915
8916
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
8916
8917
|
var SignUpBanner = ({
|
|
8917
8918
|
title,
|
|
@@ -8950,7 +8951,7 @@ var SignUpBanner = ({
|
|
|
8950
8951
|
height: 172,
|
|
8951
8952
|
className: "w-[172px] h-[172px] rounded-xl object-cover"
|
|
8952
8953
|
},
|
|
8953
|
-
(0,
|
|
8954
|
+
(0, import_uuid9.v4)()
|
|
8954
8955
|
))
|
|
8955
8956
|
] }),
|
|
8956
8957
|
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "lg:hidden w-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
@@ -9086,7 +9087,6 @@ var import_react62 = require("react");
|
|
|
9086
9087
|
var import_react63 = require("@headlessui/react");
|
|
9087
9088
|
var import_outline7 = require("@heroicons/react/24/outline");
|
|
9088
9089
|
var import_core96 = require("@geowiki/core");
|
|
9089
|
-
var import_uuid11 = require("uuid");
|
|
9090
9090
|
var import_design_system83 = require("@geowiki/design-system");
|
|
9091
9091
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
9092
9092
|
function MobileFilterPopupOpened({
|
|
@@ -9191,27 +9191,30 @@ function MobileFilterPopupOpened({
|
|
|
9191
9191
|
}
|
|
9192
9192
|
) })
|
|
9193
9193
|
] }),
|
|
9194
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: " h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto ", children: list == null ? void 0 : list.map((item, index) =>
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
{
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9194
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: " h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto ", children: list == null ? void 0 : list.map((item, index) => {
|
|
9195
|
+
var _a;
|
|
9196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
9197
|
+
"div",
|
|
9198
|
+
{
|
|
9199
|
+
className: " cursor-pointer ",
|
|
9200
|
+
onClick: () => handleClick(item.value),
|
|
9201
|
+
children: [
|
|
9202
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex justify-between", children: [
|
|
9203
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "pb-4 text-black text-base font-normal leading-snug", children: item.label }),
|
|
9204
|
+
checkValues.includes(item.value) && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
9205
|
+
import_outline7.CheckIcon,
|
|
9206
|
+
{
|
|
9207
|
+
className: "h-6 w-6 text-primary",
|
|
9208
|
+
"aria-hidden": "true"
|
|
9209
|
+
}
|
|
9210
|
+
) })
|
|
9211
|
+
] }),
|
|
9212
|
+
index !== list.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9213
|
+
]
|
|
9214
|
+
},
|
|
9215
|
+
(_a = item.value) != null ? _a : `item-${index}`
|
|
9216
|
+
);
|
|
9217
|
+
}) }),
|
|
9215
9218
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "absolute bottom-0 right-0 px-5 w-full pb-6 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system83.DesignButton, { className: "w-full ", onClick: handleShowResults, children: "View results" }) })
|
|
9216
9219
|
] })
|
|
9217
9220
|
}
|
|
@@ -9466,7 +9469,7 @@ var ClusterNewsItem = (props) => {
|
|
|
9466
9469
|
};
|
|
9467
9470
|
|
|
9468
9471
|
// src/components/DesignElements/ClusterNews/ClusterNewsList.tsx
|
|
9469
|
-
var
|
|
9472
|
+
var import_uuid10 = require("uuid");
|
|
9470
9473
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
9471
9474
|
var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
9472
9475
|
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: clusterNewsItems == null ? void 0 : clusterNewsItems.map((clusterNewsItem) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
@@ -9480,14 +9483,14 @@ var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
|
9480
9483
|
clusterCountry: clusterNewsItem.clusterCountry,
|
|
9481
9484
|
path: clusterNewsItem.path
|
|
9482
9485
|
},
|
|
9483
|
-
(0,
|
|
9486
|
+
(0, import_uuid10.v4)()
|
|
9484
9487
|
)) }) });
|
|
9485
9488
|
};
|
|
9486
9489
|
|
|
9487
9490
|
// src/components/DesignElements/ClusterNews/ClusterStoryItem.tsx
|
|
9488
9491
|
var import_design_system88 = require("@geowiki/design-system");
|
|
9489
9492
|
var import_core100 = require("@geowiki/core");
|
|
9490
|
-
var
|
|
9493
|
+
var import_uuid11 = require("uuid");
|
|
9491
9494
|
var import_design_system89 = require("@geowiki/design-system");
|
|
9492
9495
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
9493
9496
|
var ClusterStoryItem = (props) => {
|
|
@@ -9508,7 +9511,7 @@ var ClusterStoryItem = (props) => {
|
|
|
9508
9511
|
}
|
|
9509
9512
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.slice(0, 3).map((clusterNewsItem) => {
|
|
9510
9513
|
return {
|
|
9511
|
-
key: (0,
|
|
9514
|
+
key: (0, import_uuid11.v4)(),
|
|
9512
9515
|
id: clusterNewsItem.id,
|
|
9513
9516
|
title: clusterNewsItem.title,
|
|
9514
9517
|
clusterName: props.ClusterName,
|
|
@@ -9602,7 +9605,7 @@ var ClusterStoryItem = (props) => {
|
|
|
9602
9605
|
var import_design_system90 = require("@geowiki/design-system");
|
|
9603
9606
|
var import_react67 = require("react");
|
|
9604
9607
|
var import_design_system91 = require("@geowiki/design-system");
|
|
9605
|
-
var
|
|
9608
|
+
var import_uuid12 = require("uuid");
|
|
9606
9609
|
var import_core101 = require("@geowiki/core");
|
|
9607
9610
|
var import_design_system92 = require("@geowiki/design-system");
|
|
9608
9611
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
@@ -9633,7 +9636,7 @@ var ClusterNews = ({
|
|
|
9633
9636
|
const clusterNewsDisplay = showAll ? currentItems : publishedItems == null ? void 0 : publishedItems.slice(0, 3);
|
|
9634
9637
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.map((clusterNewsItem) => {
|
|
9635
9638
|
return {
|
|
9636
|
-
key: (0,
|
|
9639
|
+
key: (0, import_uuid12.v4)(),
|
|
9637
9640
|
id: clusterNewsItem.id,
|
|
9638
9641
|
title: clusterNewsItem.title,
|
|
9639
9642
|
clusterName,
|
|
@@ -9679,7 +9682,7 @@ var ClusterNews = ({
|
|
|
9679
9682
|
|
|
9680
9683
|
// src/components/DesignElements/ClusterNews/SixClusterNews.tsx
|
|
9681
9684
|
var import_core102 = require("@geowiki/core");
|
|
9682
|
-
var
|
|
9685
|
+
var import_uuid13 = require("uuid");
|
|
9683
9686
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
9684
9687
|
var SixClusterNews = () => {
|
|
9685
9688
|
var _a, _b, _c;
|
|
@@ -9720,7 +9723,7 @@ var SixClusterNews = () => {
|
|
|
9720
9723
|
];
|
|
9721
9724
|
const clusterNews = (_a = clusterNewsArray.filter((item) => item != null).map(
|
|
9722
9725
|
(clusterNewsItem) => ({
|
|
9723
|
-
key: (0,
|
|
9726
|
+
key: (0, import_uuid13.v4)(),
|
|
9724
9727
|
id: clusterNewsItem.id,
|
|
9725
9728
|
title: clusterNewsItem.title,
|
|
9726
9729
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9732,7 +9735,7 @@ var SixClusterNews = () => {
|
|
|
9732
9735
|
)) != null ? _a : [];
|
|
9733
9736
|
const firstClusterNews = (_c = (_b = news == null ? void 0 : news.items) == null ? void 0 : _b.map((clusterNewsItem) => {
|
|
9734
9737
|
return {
|
|
9735
|
-
key: (0,
|
|
9738
|
+
key: (0, import_uuid13.v4)(),
|
|
9736
9739
|
id: clusterNewsItem.id,
|
|
9737
9740
|
title: clusterNewsItem.title,
|
|
9738
9741
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9799,7 +9802,7 @@ var ClusterList = ({ clusters }) => {
|
|
|
9799
9802
|
var import_design_system95 = require("@geowiki/design-system");
|
|
9800
9803
|
var import_design_system96 = require("@geowiki/design-system");
|
|
9801
9804
|
var import_core104 = require("@geowiki/core");
|
|
9802
|
-
var
|
|
9805
|
+
var import_uuid14 = require("uuid");
|
|
9803
9806
|
var import_core105 = require("@geowiki/core");
|
|
9804
9807
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
9805
9808
|
var H3Clusters = ({ clusters }) => {
|
|
@@ -9823,7 +9826,7 @@ var H3Clusters = ({ clusters }) => {
|
|
|
9823
9826
|
clusters: clusters == null ? void 0 : clusters.slice(0, 4).map((cluster) => {
|
|
9824
9827
|
var _a;
|
|
9825
9828
|
return {
|
|
9826
|
-
key: (0,
|
|
9829
|
+
key: (0, import_uuid14.v4)(),
|
|
9827
9830
|
title: cluster.name,
|
|
9828
9831
|
imageId: cluster.coverImageId || "",
|
|
9829
9832
|
country: ((_a = countries == null ? void 0 : countries.find((c) => c.id === cluster.countryId)) == null ? void 0 : _a.country) || "Missing Country",
|
|
@@ -9873,7 +9876,7 @@ var GalleryCarouselOpen = ({
|
|
|
9873
9876
|
}) => {
|
|
9874
9877
|
const [defaultPhoto, setDefaultPhoto] = (0, import_react70.useState)(currentPhoto);
|
|
9875
9878
|
const [text, setDefaultText] = (0, import_react70.useState)("");
|
|
9876
|
-
|
|
9879
|
+
const data = (0, import_core106.useApiImage)(defaultPhoto.imageId);
|
|
9877
9880
|
(0, import_react70.useEffect)(() => {
|
|
9878
9881
|
setDefaultPhoto(currentPhoto);
|
|
9879
9882
|
}, [currentPhoto]);
|
|
@@ -10436,10 +10439,11 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10436
10439
|
return text.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'");
|
|
10437
10440
|
};
|
|
10438
10441
|
const addLinksStyles = (content) => {
|
|
10442
|
+
if (!content) return "";
|
|
10439
10443
|
const decodedContent = decodeHtmlEntities(content);
|
|
10440
10444
|
const textToAdd = " class='text-white font-semibold no-underline'";
|
|
10441
10445
|
const regex = /(<a(?=[^>]*>))/g;
|
|
10442
|
-
const modifiedText = decodedContent
|
|
10446
|
+
const modifiedText = decodedContent.replace(regex, `$1${textToAdd}`);
|
|
10443
10447
|
return modifiedText;
|
|
10444
10448
|
};
|
|
10445
10449
|
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
@@ -10510,7 +10514,7 @@ var SubtitleH3Faq = ({
|
|
|
10510
10514
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-4-column.tsx
|
|
10511
10515
|
var import_design_system113 = require("@geowiki/design-system");
|
|
10512
10516
|
var import_core115 = require("@geowiki/core");
|
|
10513
|
-
var
|
|
10517
|
+
var import_uuid15 = require("uuid");
|
|
10514
10518
|
var import_design_system114 = require("@geowiki/design-system");
|
|
10515
10519
|
var import_core116 = require("@geowiki/core");
|
|
10516
10520
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
@@ -10560,7 +10564,7 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10560
10564
|
clusters: (_a = clusters == null ? void 0 : clusters.items) == null ? void 0 : _a.map((cluster) => {
|
|
10561
10565
|
var _a2;
|
|
10562
10566
|
return {
|
|
10563
|
-
key: (0,
|
|
10567
|
+
key: (0, import_uuid15.v4)(),
|
|
10564
10568
|
title: cluster.name,
|
|
10565
10569
|
imageId: cluster.coverImageId || "",
|
|
10566
10570
|
country: ((_a2 = countries == null ? void 0 : countries.find((x) => x.id === cluster.countryId)) == null ? void 0 : _a2.country) || "Missing Country",
|
|
@@ -10578,7 +10582,7 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10578
10582
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-news-3-column.tsx
|
|
10579
10583
|
var import_design_system115 = require("@geowiki/design-system");
|
|
10580
10584
|
var import_core117 = require("@geowiki/core");
|
|
10581
|
-
var
|
|
10585
|
+
var import_uuid16 = require("uuid");
|
|
10582
10586
|
var import_design_system116 = require("@geowiki/design-system");
|
|
10583
10587
|
var import_core118 = require("@geowiki/core");
|
|
10584
10588
|
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
@@ -10591,7 +10595,7 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10591
10595
|
const { data: news, isLoading } = (0, import_core117.useNewsFromAllClusters)(0, 3);
|
|
10592
10596
|
const clusterNewsItems = (_a = news == null ? void 0 : news.items) == null ? void 0 : _a.map((clusterNewsItem) => {
|
|
10593
10597
|
return {
|
|
10594
|
-
key: (0,
|
|
10598
|
+
key: (0, import_uuid16.v4)(),
|
|
10595
10599
|
id: clusterNewsItem.id,
|
|
10596
10600
|
title: clusterNewsItem.title,
|
|
10597
10601
|
clusterName: clusterNewsItem.clusterName,
|
package/dist/index.mjs
CHANGED
|
@@ -2925,7 +2925,7 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
2925
2925
|
if (userCurrentProject && (userCurrentProject[0].contract_start_date != contractStartDate || userCurrentProject[0].contract_end_date != contractEndDate)) {
|
|
2926
2926
|
if (contractStartDate == "") setContractStartDate(null);
|
|
2927
2927
|
if (contractEndDate == "") setContractEndDate(null);
|
|
2928
|
-
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(
|
|
2928
|
+
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(contractStartDate)) {
|
|
2929
2929
|
alert("Please provide correct date");
|
|
2930
2930
|
return;
|
|
2931
2931
|
}
|
|
@@ -5595,8 +5595,7 @@ var CmsImage = ({
|
|
|
5595
5595
|
className = "relative w-full h-full",
|
|
5596
5596
|
showPlaceholder = true
|
|
5597
5597
|
}) => {
|
|
5598
|
-
|
|
5599
|
-
if (isLoading) return null;
|
|
5598
|
+
const cmsImageUrl = useCmsImage(src);
|
|
5600
5599
|
if (width && height) {
|
|
5601
5600
|
if (!showPlaceholder)
|
|
5602
5601
|
return /* @__PURE__ */ jsx58(
|
|
@@ -6621,7 +6620,6 @@ var NewsArticle = (props) => {
|
|
|
6621
6620
|
|
|
6622
6621
|
// src/components/News/NewsItemList.tsx
|
|
6623
6622
|
import { useRouter as useRouter3 } from "@geowiki/core";
|
|
6624
|
-
import { v4 as v48 } from "uuid";
|
|
6625
6623
|
import { Fragment as Fragment20, jsx as jsx76, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6626
6624
|
var NewsItemList = ({ newsItems }) => {
|
|
6627
6625
|
const allLanguages = [
|
|
@@ -6664,19 +6662,22 @@ var NewsItemList = ({ newsItems }) => {
|
|
|
6664
6662
|
index
|
|
6665
6663
|
);
|
|
6666
6664
|
}) }) }) }) }),
|
|
6667
|
-
/* @__PURE__ */ jsx76("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ jsx76("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ jsx76("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle) =>
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6665
|
+
/* @__PURE__ */ jsx76("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ jsx76("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ jsx76("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle, index) => {
|
|
6666
|
+
var _a;
|
|
6667
|
+
return /* @__PURE__ */ jsx76(
|
|
6668
|
+
NewsArticle,
|
|
6669
|
+
{
|
|
6670
|
+
title: newsArticle.title,
|
|
6671
|
+
description: newsArticle.description,
|
|
6672
|
+
username: newsArticle.sourceName,
|
|
6673
|
+
time: newsArticle.publishDate,
|
|
6674
|
+
language: newsArticle.language,
|
|
6675
|
+
path: newsArticle.imageUrl,
|
|
6676
|
+
link: newsArticle.url
|
|
6677
|
+
},
|
|
6678
|
+
(_a = newsArticle.url) != null ? _a : `news-${index}`
|
|
6679
|
+
);
|
|
6680
|
+
}) }) }) })
|
|
6680
6681
|
] }) });
|
|
6681
6682
|
};
|
|
6682
6683
|
|
|
@@ -6741,9 +6742,9 @@ var PublicationItem = ({ publication }) => {
|
|
|
6741
6742
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6742
6743
|
var motion7 = motionRaw3;
|
|
6743
6744
|
var PublicationList = ({ publications }) => {
|
|
6744
|
-
publications.sort(
|
|
6745
|
-
|
|
6746
|
-
|
|
6745
|
+
const sorted = [...publications].sort(
|
|
6746
|
+
(a, b) => new Date(b.PublishedUtc).getTime() - new Date(a.PublishedUtc).getTime()
|
|
6747
|
+
);
|
|
6747
6748
|
return /* @__PURE__ */ jsx78(
|
|
6748
6749
|
motion7.ul,
|
|
6749
6750
|
{
|
|
@@ -6752,7 +6753,7 @@ var PublicationList = ({ publications }) => {
|
|
|
6752
6753
|
animate: "enter",
|
|
6753
6754
|
exit: "exit",
|
|
6754
6755
|
variants: listVariants3,
|
|
6755
|
-
children:
|
|
6756
|
+
children: sorted.map((post) => {
|
|
6756
6757
|
var _a;
|
|
6757
6758
|
return /* @__PURE__ */ jsx78(PublicationItem, { publication: post }, (_a = post.AutoroutePart) == null ? void 0 : _a.Path);
|
|
6758
6759
|
})
|
|
@@ -6813,7 +6814,7 @@ import { dynamic as dynamic2 } from "@geowiki/core";
|
|
|
6813
6814
|
import { useState as useState34 } from "react";
|
|
6814
6815
|
import { jsx as jsx81, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6815
6816
|
var MapWithNoSSR = dynamic2(
|
|
6816
|
-
() => import("./cluster-map-
|
|
6817
|
+
() => import("./cluster-map-YODMYBPK.mjs").then((x) => x.FarmerClusterMap),
|
|
6817
6818
|
{
|
|
6818
6819
|
ssr: false
|
|
6819
6820
|
}
|
|
@@ -7255,7 +7256,7 @@ var UpdateUserProfile = ({
|
|
|
7255
7256
|
text: "Profile updated successfully",
|
|
7256
7257
|
icon: "success"
|
|
7257
7258
|
}).then(() => {
|
|
7258
|
-
|
|
7259
|
+
window.location.reload();
|
|
7259
7260
|
});
|
|
7260
7261
|
} else {
|
|
7261
7262
|
Swal2.fire({
|
|
@@ -8423,6 +8424,7 @@ var FilterDropdown = ({
|
|
|
8423
8424
|
return /* @__PURE__ */ jsx96(
|
|
8424
8425
|
Disclosure2,
|
|
8425
8426
|
{
|
|
8427
|
+
as: "div",
|
|
8426
8428
|
"data-component": "FilterDropdown",
|
|
8427
8429
|
defaultOpen: filterValues.length > 0,
|
|
8428
8430
|
children: ({ open }) => /* @__PURE__ */ jsxs81(Fragment23, { children: [
|
|
@@ -8506,7 +8508,7 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8506
8508
|
// src/components/DesignElements/BannerFollowLinks.tsx
|
|
8507
8509
|
import { H2Design, H9Design } from "@geowiki/design-system";
|
|
8508
8510
|
import { Link as Link13 } from "@geowiki/core";
|
|
8509
|
-
import { v4 as
|
|
8511
|
+
import { v4 as v48 } from "uuid";
|
|
8510
8512
|
import { jsx as jsx98, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8511
8513
|
var BannerFollowLinks = ({ title, links }) => {
|
|
8512
8514
|
return /* @__PURE__ */ jsxs83("div", { className: " py-8 mt-6 flex-col flex items-center justify-center bg-primary text-white rounded-2xl lg:pt-[100px] lg:mt-10 lg:pb-[88px] space-y-8", children: [
|
|
@@ -8519,7 +8521,7 @@ var BannerFollowLinks = ({ title, links }) => {
|
|
|
8519
8521
|
rel: "noreferrer",
|
|
8520
8522
|
children: /* @__PURE__ */ jsx98(H9Design, { children: link.text })
|
|
8521
8523
|
},
|
|
8522
|
-
|
|
8524
|
+
v48()
|
|
8523
8525
|
)) })
|
|
8524
8526
|
] });
|
|
8525
8527
|
};
|
|
@@ -8699,14 +8701,13 @@ var ApiImage = ({
|
|
|
8699
8701
|
width = 0,
|
|
8700
8702
|
height = 0
|
|
8701
8703
|
}) => {
|
|
8702
|
-
|
|
8703
|
-
if (isLoading) return null;
|
|
8704
|
+
const src = useApiImage(imageId);
|
|
8704
8705
|
if (width > 0 && height > 0) {
|
|
8705
8706
|
return /* @__PURE__ */ jsx100(
|
|
8706
8707
|
Image4,
|
|
8707
8708
|
{
|
|
8708
8709
|
className,
|
|
8709
|
-
src
|
|
8710
|
+
src,
|
|
8710
8711
|
alt,
|
|
8711
8712
|
placeholder: `data:image/svg+xml;base64,${toBase642(shimmer2(700, 490))}`,
|
|
8712
8713
|
width,
|
|
@@ -8720,7 +8721,7 @@ var ApiImage = ({
|
|
|
8720
8721
|
Image4,
|
|
8721
8722
|
{
|
|
8722
8723
|
className: "object-cover rounded-xl",
|
|
8723
|
-
src
|
|
8724
|
+
src,
|
|
8724
8725
|
alt,
|
|
8725
8726
|
fill: true,
|
|
8726
8727
|
placeholder: `data:image/svg+xml;base64,${toBase642(shimmer2(700, 490))}`,
|
|
@@ -8733,7 +8734,7 @@ var ApiImage = ({
|
|
|
8733
8734
|
// src/components/DesignElements/SignUpBanner.tsx
|
|
8734
8735
|
import { H3Design, Body18 as Body184, DesignButton as DesignButton8 } from "@geowiki/design-system";
|
|
8735
8736
|
import { Link as Link14 } from "@geowiki/core";
|
|
8736
|
-
import { v4 as
|
|
8737
|
+
import { v4 as v49 } from "uuid";
|
|
8737
8738
|
import { jsx as jsx101, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8738
8739
|
var SignUpBanner = ({
|
|
8739
8740
|
title,
|
|
@@ -8772,7 +8773,7 @@ var SignUpBanner = ({
|
|
|
8772
8773
|
height: 172,
|
|
8773
8774
|
className: "w-[172px] h-[172px] rounded-xl object-cover"
|
|
8774
8775
|
},
|
|
8775
|
-
|
|
8776
|
+
v49()
|
|
8776
8777
|
))
|
|
8777
8778
|
] }),
|
|
8778
8779
|
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx101("div", { className: "lg:hidden w-full", children: /* @__PURE__ */ jsx101(
|
|
@@ -8908,7 +8909,6 @@ import { Fragment as Fragment24 } from "react";
|
|
|
8908
8909
|
import { Dialog as Dialog18, Transition as Transition5 } from "@headlessui/react";
|
|
8909
8910
|
import { ArrowLeftIcon, CheckIcon } from "@heroicons/react/24/outline";
|
|
8910
8911
|
import { useRouter as useRouter8 } from "@geowiki/core";
|
|
8911
|
-
import { v4 as v411 } from "uuid";
|
|
8912
8912
|
import { DesignButton as DesignButton10 } from "@geowiki/design-system";
|
|
8913
8913
|
import { jsx as jsx104, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8914
8914
|
function MobileFilterPopupOpened({
|
|
@@ -9013,27 +9013,30 @@ function MobileFilterPopupOpened({
|
|
|
9013
9013
|
}
|
|
9014
9014
|
) })
|
|
9015
9015
|
] }),
|
|
9016
|
-
/* @__PURE__ */ jsx104("div", { className: " h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto ", children: list == null ? void 0 : list.map((item, index) =>
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
{
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9016
|
+
/* @__PURE__ */ jsx104("div", { className: " h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto ", children: list == null ? void 0 : list.map((item, index) => {
|
|
9017
|
+
var _a;
|
|
9018
|
+
return /* @__PURE__ */ jsxs87(
|
|
9019
|
+
"div",
|
|
9020
|
+
{
|
|
9021
|
+
className: " cursor-pointer ",
|
|
9022
|
+
onClick: () => handleClick(item.value),
|
|
9023
|
+
children: [
|
|
9024
|
+
/* @__PURE__ */ jsxs87("div", { className: "flex justify-between", children: [
|
|
9025
|
+
/* @__PURE__ */ jsx104("div", { className: "pb-4 text-black text-base font-normal leading-snug", children: item.label }),
|
|
9026
|
+
checkValues.includes(item.value) && /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
|
|
9027
|
+
CheckIcon,
|
|
9028
|
+
{
|
|
9029
|
+
className: "h-6 w-6 text-primary",
|
|
9030
|
+
"aria-hidden": "true"
|
|
9031
|
+
}
|
|
9032
|
+
) })
|
|
9033
|
+
] }),
|
|
9034
|
+
index !== list.length - 1 && /* @__PURE__ */ jsx104("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9035
|
+
]
|
|
9036
|
+
},
|
|
9037
|
+
(_a = item.value) != null ? _a : `item-${index}`
|
|
9038
|
+
);
|
|
9039
|
+
}) }),
|
|
9037
9040
|
/* @__PURE__ */ jsx104("div", { className: "absolute bottom-0 right-0 px-5 w-full pb-6 flex justify-center", children: /* @__PURE__ */ jsx104(DesignButton10, { className: "w-full ", onClick: handleShowResults, children: "View results" }) })
|
|
9038
9041
|
] })
|
|
9039
9042
|
}
|
|
@@ -9288,7 +9291,7 @@ var ClusterNewsItem = (props) => {
|
|
|
9288
9291
|
};
|
|
9289
9292
|
|
|
9290
9293
|
// src/components/DesignElements/ClusterNews/ClusterNewsList.tsx
|
|
9291
|
-
import { v4 as
|
|
9294
|
+
import { v4 as v410 } from "uuid";
|
|
9292
9295
|
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9293
9296
|
var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
9294
9297
|
return /* @__PURE__ */ jsx110("div", { className: "mx-auto", children: /* @__PURE__ */ jsx110("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: clusterNewsItems == null ? void 0 : clusterNewsItems.map((clusterNewsItem) => /* @__PURE__ */ jsx110(
|
|
@@ -9302,14 +9305,14 @@ var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
|
9302
9305
|
clusterCountry: clusterNewsItem.clusterCountry,
|
|
9303
9306
|
path: clusterNewsItem.path
|
|
9304
9307
|
},
|
|
9305
|
-
|
|
9308
|
+
v410()
|
|
9306
9309
|
)) }) });
|
|
9307
9310
|
};
|
|
9308
9311
|
|
|
9309
9312
|
// src/components/DesignElements/ClusterNews/ClusterStoryItem.tsx
|
|
9310
9313
|
import { H4Design } from "@geowiki/design-system";
|
|
9311
9314
|
import { useClusterNews } from "@geowiki/core";
|
|
9312
|
-
import { v4 as
|
|
9315
|
+
import { v4 as v411 } from "uuid";
|
|
9313
9316
|
import { Body18 as Body185, Body18m as Body18m5 } from "@geowiki/design-system";
|
|
9314
9317
|
import { jsx as jsx111, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9315
9318
|
var ClusterStoryItem = (props) => {
|
|
@@ -9330,7 +9333,7 @@ var ClusterStoryItem = (props) => {
|
|
|
9330
9333
|
}
|
|
9331
9334
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.slice(0, 3).map((clusterNewsItem) => {
|
|
9332
9335
|
return {
|
|
9333
|
-
key:
|
|
9336
|
+
key: v411(),
|
|
9334
9337
|
id: clusterNewsItem.id,
|
|
9335
9338
|
title: clusterNewsItem.title,
|
|
9336
9339
|
clusterName: props.ClusterName,
|
|
@@ -9424,7 +9427,7 @@ var ClusterStoryItem = (props) => {
|
|
|
9424
9427
|
import { H4Design as H4Design2 } from "@geowiki/design-system";
|
|
9425
9428
|
import { useState as useState43 } from "react";
|
|
9426
9429
|
import { DesignButton as DesignButton12 } from "@geowiki/design-system";
|
|
9427
|
-
import { v4 as
|
|
9430
|
+
import { v4 as v412 } from "uuid";
|
|
9428
9431
|
import { useClusterNews as useClusterNews2 } from "@geowiki/core";
|
|
9429
9432
|
import { LocalLoader } from "@geowiki/design-system";
|
|
9430
9433
|
import { Fragment as Fragment26, jsx as jsx112, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
@@ -9455,7 +9458,7 @@ var ClusterNews = ({
|
|
|
9455
9458
|
const clusterNewsDisplay = showAll ? currentItems : publishedItems == null ? void 0 : publishedItems.slice(0, 3);
|
|
9456
9459
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.map((clusterNewsItem) => {
|
|
9457
9460
|
return {
|
|
9458
|
-
key:
|
|
9461
|
+
key: v412(),
|
|
9459
9462
|
id: clusterNewsItem.id,
|
|
9460
9463
|
title: clusterNewsItem.title,
|
|
9461
9464
|
clusterName,
|
|
@@ -9501,7 +9504,7 @@ var ClusterNews = ({
|
|
|
9501
9504
|
|
|
9502
9505
|
// src/components/DesignElements/ClusterNews/SixClusterNews.tsx
|
|
9503
9506
|
import { useNewsFromAllClusters, useClusterNewsWithId } from "@geowiki/core";
|
|
9504
|
-
import { v4 as
|
|
9507
|
+
import { v4 as v413 } from "uuid";
|
|
9505
9508
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
9506
9509
|
var SixClusterNews = () => {
|
|
9507
9510
|
var _a, _b, _c;
|
|
@@ -9542,7 +9545,7 @@ var SixClusterNews = () => {
|
|
|
9542
9545
|
];
|
|
9543
9546
|
const clusterNews = (_a = clusterNewsArray.filter((item) => item != null).map(
|
|
9544
9547
|
(clusterNewsItem) => ({
|
|
9545
|
-
key:
|
|
9548
|
+
key: v413(),
|
|
9546
9549
|
id: clusterNewsItem.id,
|
|
9547
9550
|
title: clusterNewsItem.title,
|
|
9548
9551
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9554,7 +9557,7 @@ var SixClusterNews = () => {
|
|
|
9554
9557
|
)) != null ? _a : [];
|
|
9555
9558
|
const firstClusterNews = (_c = (_b = news == null ? void 0 : news.items) == null ? void 0 : _b.map((clusterNewsItem) => {
|
|
9556
9559
|
return {
|
|
9557
|
-
key:
|
|
9560
|
+
key: v413(),
|
|
9558
9561
|
id: clusterNewsItem.id,
|
|
9559
9562
|
title: clusterNewsItem.title,
|
|
9560
9563
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9621,7 +9624,7 @@ var ClusterList = ({ clusters }) => {
|
|
|
9621
9624
|
import { H4Design as H4Design3 } from "@geowiki/design-system";
|
|
9622
9625
|
import { DesignButton as DesignButton13 } from "@geowiki/design-system";
|
|
9623
9626
|
import { Link as Link19 } from "@geowiki/core";
|
|
9624
|
-
import { v4 as
|
|
9627
|
+
import { v4 as v414 } from "uuid";
|
|
9625
9628
|
import { useCountries } from "@geowiki/core";
|
|
9626
9629
|
import { jsx as jsx116, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9627
9630
|
var H3Clusters = ({ clusters }) => {
|
|
@@ -9645,7 +9648,7 @@ var H3Clusters = ({ clusters }) => {
|
|
|
9645
9648
|
clusters: clusters == null ? void 0 : clusters.slice(0, 4).map((cluster) => {
|
|
9646
9649
|
var _a;
|
|
9647
9650
|
return {
|
|
9648
|
-
key:
|
|
9651
|
+
key: v414(),
|
|
9649
9652
|
title: cluster.name,
|
|
9650
9653
|
imageId: cluster.coverImageId || "",
|
|
9651
9654
|
country: ((_a = countries == null ? void 0 : countries.find((c) => c.id === cluster.countryId)) == null ? void 0 : _a.country) || "Missing Country",
|
|
@@ -9701,7 +9704,7 @@ var GalleryCarouselOpen = ({
|
|
|
9701
9704
|
}) => {
|
|
9702
9705
|
const [defaultPhoto, setDefaultPhoto] = useState44(currentPhoto);
|
|
9703
9706
|
const [text, setDefaultText] = useState44("");
|
|
9704
|
-
|
|
9707
|
+
const data = useApiImage2(defaultPhoto.imageId);
|
|
9705
9708
|
useEffect22(() => {
|
|
9706
9709
|
setDefaultPhoto(currentPhoto);
|
|
9707
9710
|
}, [currentPhoto]);
|
|
@@ -10264,10 +10267,11 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10264
10267
|
return text.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'");
|
|
10265
10268
|
};
|
|
10266
10269
|
const addLinksStyles = (content) => {
|
|
10270
|
+
if (!content) return "";
|
|
10267
10271
|
const decodedContent = decodeHtmlEntities(content);
|
|
10268
10272
|
const textToAdd = " class='text-white font-semibold no-underline'";
|
|
10269
10273
|
const regex = /(<a(?=[^>]*>))/g;
|
|
10270
|
-
const modifiedText = decodedContent
|
|
10274
|
+
const modifiedText = decodedContent.replace(regex, `$1${textToAdd}`);
|
|
10271
10275
|
return modifiedText;
|
|
10272
10276
|
};
|
|
10273
10277
|
return /* @__PURE__ */ jsxs108(
|
|
@@ -10338,7 +10342,7 @@ var SubtitleH3Faq = ({
|
|
|
10338
10342
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-4-column.tsx
|
|
10339
10343
|
import { H3Design as H3Design5, Body18 as Body1811 } from "@geowiki/design-system";
|
|
10340
10344
|
import { useClusters, useCountries as useCountries2 } from "@geowiki/core";
|
|
10341
|
-
import { v4 as
|
|
10345
|
+
import { v4 as v415 } from "uuid";
|
|
10342
10346
|
import { DesignButton as DesignButton19 } from "@geowiki/design-system";
|
|
10343
10347
|
import { Link as Link25 } from "@geowiki/core";
|
|
10344
10348
|
import { jsx as jsx132, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
@@ -10388,7 +10392,7 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10388
10392
|
clusters: (_a = clusters == null ? void 0 : clusters.items) == null ? void 0 : _a.map((cluster) => {
|
|
10389
10393
|
var _a2;
|
|
10390
10394
|
return {
|
|
10391
|
-
key:
|
|
10395
|
+
key: v415(),
|
|
10392
10396
|
title: cluster.name,
|
|
10393
10397
|
imageId: cluster.coverImageId || "",
|
|
10394
10398
|
country: ((_a2 = countries == null ? void 0 : countries.find((x) => x.id === cluster.countryId)) == null ? void 0 : _a2.country) || "Missing Country",
|
|
@@ -10406,7 +10410,7 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10406
10410
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-news-3-column.tsx
|
|
10407
10411
|
import { H3Design as H3Design6, Body18 as Body1812 } from "@geowiki/design-system";
|
|
10408
10412
|
import { useNewsFromAllClusters as useNewsFromAllClusters2 } from "@geowiki/core";
|
|
10409
|
-
import { v4 as
|
|
10413
|
+
import { v4 as v416 } from "uuid";
|
|
10410
10414
|
import { DesignButton as DesignButton20 } from "@geowiki/design-system";
|
|
10411
10415
|
import { Link as Link26 } from "@geowiki/core";
|
|
10412
10416
|
import { jsx as jsx133, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
@@ -10419,7 +10423,7 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10419
10423
|
const { data: news, isLoading } = useNewsFromAllClusters2(0, 3);
|
|
10420
10424
|
const clusterNewsItems = (_a = news == null ? void 0 : news.items) == null ? void 0 : _a.map((clusterNewsItem) => {
|
|
10421
10425
|
return {
|
|
10422
|
-
key:
|
|
10426
|
+
key: v416(),
|
|
10423
10427
|
id: clusterNewsItem.id,
|
|
10424
10428
|
title: clusterNewsItem.title,
|
|
10425
10429
|
clusterName: clusterNewsItem.clusterName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geowiki/ui",
|
|
3
|
-
"version": "0.16.9-dev.
|
|
3
|
+
"version": "0.16.9-dev.22",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,36 +19,36 @@
|
|
|
19
19
|
"leaflet": "^1.9.4",
|
|
20
20
|
"react": "^19.2.0",
|
|
21
21
|
"react-dom": "^19.2.0",
|
|
22
|
-
"@geowiki/api-proxy": "0.16.9-dev.
|
|
23
|
-
"@geowiki/cms-proxy": "0.16.9-dev.
|
|
24
|
-
"@geowiki/evoland-api-proxy": "0.16.9-dev.
|
|
22
|
+
"@geowiki/api-proxy": "0.16.9-dev.22",
|
|
23
|
+
"@geowiki/cms-proxy": "0.16.9-dev.22",
|
|
24
|
+
"@geowiki/evoland-api-proxy": "0.16.9-dev.22"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
28
|
-
"@tailwindcss/forms": "^0.5.
|
|
29
|
-
"@tailwindcss/typography": "^0.5.
|
|
30
|
-
"@types/geojson": "^7946.0.
|
|
28
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
29
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
30
|
+
"@types/geojson": "^7946.0.16",
|
|
31
31
|
"@types/leaflet": "^1.9.21",
|
|
32
|
-
"@types/leaflet.markercluster": "^1.5.
|
|
33
|
-
"@types/react": "^19.2.
|
|
34
|
-
"@types/react-dom": "^19.2.
|
|
32
|
+
"@types/leaflet.markercluster": "^1.5.6",
|
|
33
|
+
"@types/react": "^19.2.14",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
35
|
"@types/uuid": "^9.0.8",
|
|
36
|
-
"autoprefixer": "^10.
|
|
37
|
-
"eslint": "^8.
|
|
38
|
-
"postcss": "^8.
|
|
39
|
-
"react": "^19.2.
|
|
40
|
-
"tailwindcss": "^3.
|
|
36
|
+
"autoprefixer": "^10.5.0",
|
|
37
|
+
"eslint": "^8.57.1",
|
|
38
|
+
"postcss": "^8.5.14",
|
|
39
|
+
"react": "^19.2.6",
|
|
40
|
+
"tailwindcss": "^3.4.19",
|
|
41
41
|
"tailwindcss-animate": "^1.0.7",
|
|
42
|
-
"tsup": "^8.
|
|
42
|
+
"tsup": "^8.5.1",
|
|
43
43
|
"typescript": "5.4.2",
|
|
44
|
-
"tailwind-config": "0.0.0",
|
|
45
44
|
"eslint-config-custom": "0.0.0",
|
|
45
|
+
"tailwind-config": "0.0.0",
|
|
46
46
|
"tsconfig": "0.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@headlessui/react": "^2.2.10",
|
|
50
|
-
"@heroicons/react": "^2.0
|
|
51
|
-
"@hookform/resolvers": "^3.
|
|
50
|
+
"@heroicons/react": "^2.2.0",
|
|
51
|
+
"@hookform/resolvers": "^3.10.0",
|
|
52
52
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
53
53
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
54
54
|
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
@@ -77,46 +77,46 @@
|
|
|
77
77
|
"@radix-ui/react-toggle": "^1.1.10",
|
|
78
78
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
79
79
|
"@react-leaflet/core": "^2.1.0",
|
|
80
|
-
"@tanstack/react-query": "
|
|
81
|
-
"@tanstack/react-table": "^8.
|
|
82
|
-
"@types/d3": "^7.4.
|
|
83
|
-
"class-variance-authority": "^0.6.
|
|
80
|
+
"@tanstack/react-query": "5.100.10",
|
|
81
|
+
"@tanstack/react-table": "^8.21.3",
|
|
82
|
+
"@types/d3": "^7.4.3",
|
|
83
|
+
"class-variance-authority": "^0.6.1",
|
|
84
84
|
"classnames": "^2.5.1",
|
|
85
85
|
"clsx": "^1.2.1",
|
|
86
|
-
"cmdk": "^0.2.
|
|
87
|
-
"cookies-next": "^2.1.
|
|
88
|
-
"d3": "^7.
|
|
86
|
+
"cmdk": "^0.2.1",
|
|
87
|
+
"cookies-next": "^2.1.2",
|
|
88
|
+
"d3": "^7.9.0",
|
|
89
89
|
"date-fns": "^2.30.0",
|
|
90
|
-
"embla-carousel-react": "^8.
|
|
91
|
-
"framer-motion": "^8.
|
|
92
|
-
"html-react-parser": "^3.0.
|
|
90
|
+
"embla-carousel-react": "^8.6.0",
|
|
91
|
+
"framer-motion": "^8.5.5",
|
|
92
|
+
"html-react-parser": "^3.0.16",
|
|
93
93
|
"jwt-decode": "^4.0.0",
|
|
94
94
|
"leaflet": "^1.9.4",
|
|
95
95
|
"leaflet.markercluster": "^1.5.3",
|
|
96
96
|
"lucide-react": "^0.224.0",
|
|
97
97
|
"quill-blot-formatter": "^1.0.5",
|
|
98
|
-
"react-data-table-component": "^7.
|
|
99
|
-
"react-day-picker": "^8.
|
|
100
|
-
"react-hook-form": "^7.
|
|
98
|
+
"react-data-table-component": "^7.7.1",
|
|
99
|
+
"react-day-picker": "^8.10.2",
|
|
100
|
+
"react-hook-form": "^7.76.0",
|
|
101
101
|
"react-leaflet": "^4.2.1",
|
|
102
|
-
"react-markdown": "^9.0
|
|
103
|
-
"react-multi-carousel": "^2.8.
|
|
104
|
-
"react-player": "^2.
|
|
102
|
+
"react-markdown": "^9.1.0",
|
|
103
|
+
"react-multi-carousel": "^2.8.6",
|
|
104
|
+
"react-player": "^2.16.1",
|
|
105
105
|
"react-quill": "^2.0.0",
|
|
106
|
-
"react-resizable-panels": "^1.0.
|
|
106
|
+
"react-resizable-panels": "^1.0.10",
|
|
107
107
|
"react-responsive-carousel": "^3.2.23",
|
|
108
|
-
"react-select": "^5.
|
|
108
|
+
"react-select": "^5.10.2",
|
|
109
109
|
"react-timer-hook": "3.0.5",
|
|
110
|
-
"react-toastify": "^9.1.
|
|
111
|
-
"sweetalert2": "^11.
|
|
112
|
-
"tailwind-merge": "^1.
|
|
113
|
-
"uuid": "^9.0.
|
|
114
|
-
"zod": "
|
|
115
|
-
"@geowiki/api-proxy": "0.16.9-dev.
|
|
116
|
-
"@geowiki/
|
|
117
|
-
"@geowiki/
|
|
118
|
-
"@geowiki/
|
|
119
|
-
"@geowiki/
|
|
110
|
+
"react-toastify": "^9.1.3",
|
|
111
|
+
"sweetalert2": "^11.26.24",
|
|
112
|
+
"tailwind-merge": "^1.14.0",
|
|
113
|
+
"uuid": "^9.0.1",
|
|
114
|
+
"zod": "3.25.76",
|
|
115
|
+
"@geowiki/api-proxy": "0.16.9-dev.22",
|
|
116
|
+
"@geowiki/core": "0.16.9-dev.22",
|
|
117
|
+
"@geowiki/cms-proxy": "0.16.9-dev.22",
|
|
118
|
+
"@geowiki/evoland-api-proxy": "0.16.9-dev.22",
|
|
119
|
+
"@geowiki/design-system": "0.16.9-dev.22"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|
|
122
122
|
"build": "tsup && tailwindcss -i styles.css -o dist/styles.css --minify",
|