@geowiki/ui 0.16.9-dev.3 → 0.16.9-dev.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.
- package/dist/{cluster-map-4OQZMXJK.mjs → cluster-map-WZNS6WYH.mjs} +1 -1
- package/dist/index.js +323 -323
- package/dist/index.mjs +59 -59
- package/package.json +9 -12
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export * from "@geowiki/design-system";
|
|
|
13
13
|
import { useCmsUrl } from "@geowiki/core";
|
|
14
14
|
|
|
15
15
|
// src/components/Elements/NextImage.tsx
|
|
16
|
-
import Image from "
|
|
16
|
+
import { Image } from "@geowiki/core";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
var NextImage = ({
|
|
19
19
|
src,
|
|
@@ -492,7 +492,7 @@ function IconThree() {
|
|
|
492
492
|
|
|
493
493
|
// src/components/Navbar/TopNav4.tsx
|
|
494
494
|
import * as React from "react";
|
|
495
|
-
import Link from "
|
|
495
|
+
import { Link } from "@geowiki/core";
|
|
496
496
|
import {
|
|
497
497
|
cn as cn2,
|
|
498
498
|
NavigationMenu,
|
|
@@ -2654,7 +2654,7 @@ var DeleteUser = ({
|
|
|
2654
2654
|
};
|
|
2655
2655
|
|
|
2656
2656
|
// src/components/User/UserDropDown.tsx
|
|
2657
|
-
import Link2 from "
|
|
2657
|
+
import { Link as Link2 } from "@geowiki/core";
|
|
2658
2658
|
import { useSession as useSession2 } from "@geowiki/core";
|
|
2659
2659
|
import {
|
|
2660
2660
|
Avatar,
|
|
@@ -2786,7 +2786,7 @@ import {
|
|
|
2786
2786
|
} from "@geowiki/design-system";
|
|
2787
2787
|
import { UserRank } from "@geowiki/evoland-api-proxy";
|
|
2788
2788
|
import DataTable from "react-data-table-component";
|
|
2789
|
-
import { useTheme } from "
|
|
2789
|
+
import { useTheme } from "@geowiki/core";
|
|
2790
2790
|
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2791
2791
|
var TABS_NAME = {
|
|
2792
2792
|
USERS_EDIT: "user_edit",
|
|
@@ -4663,7 +4663,7 @@ import { useState as useState27 } from "react";
|
|
|
4663
4663
|
// src/components/Admin/Sidebar.tsx
|
|
4664
4664
|
import React2 from "react";
|
|
4665
4665
|
import classNames10 from "classnames";
|
|
4666
|
-
import Link3 from "
|
|
4666
|
+
import { Link as Link3 } from "@geowiki/core";
|
|
4667
4667
|
import { ChevronLeftIcon } from "@heroicons/react/24/solid";
|
|
4668
4668
|
import { v4 as v47 } from "uuid";
|
|
4669
4669
|
import {
|
|
@@ -4678,7 +4678,7 @@ import {
|
|
|
4678
4678
|
FarmerClustersIcon,
|
|
4679
4679
|
ResourcesIcon
|
|
4680
4680
|
} from "@geowiki/design-system";
|
|
4681
|
-
import { useRouter } from "
|
|
4681
|
+
import { useRouter } from "@geowiki/core";
|
|
4682
4682
|
import { useCallback as useCallback7 } from "react";
|
|
4683
4683
|
|
|
4684
4684
|
// src/components/Admin/RequireRole.tsx
|
|
@@ -4909,7 +4909,7 @@ var AuthenticationFailure = ({}) => {
|
|
|
4909
4909
|
};
|
|
4910
4910
|
|
|
4911
4911
|
// src/components/Layouts/AdminLayout.tsx
|
|
4912
|
-
import Head from "
|
|
4912
|
+
import { Head } from "@geowiki/core";
|
|
4913
4913
|
import { jsx as jsx46, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4914
4914
|
var AdminLayout = ({
|
|
4915
4915
|
children,
|
|
@@ -4921,10 +4921,10 @@ var AdminLayout = ({
|
|
|
4921
4921
|
const { status: sessionStatus } = useSession4();
|
|
4922
4922
|
const cmsUrl = (_b = (_a = generalSettings == null ? void 0 : generalSettings.GeoWikiSettings) == null ? void 0 : _a.Host) == null ? void 0 : _b.Text;
|
|
4923
4923
|
var favicon = (_e = (_d = (_c = generalSettings == null ? void 0 : generalSettings.GeoWikiSettings) == null ? void 0 : _c.FavIcon) == null ? void 0 : _d.Paths) == null ? void 0 : _e[0];
|
|
4924
|
-
const faviconPath = cmsUrl
|
|
4924
|
+
const faviconPath = favicon && cmsUrl ? `${cmsUrl}/media/${favicon}` : "";
|
|
4925
4925
|
return /* @__PURE__ */ jsxs41("main", { children: [
|
|
4926
4926
|
sessionStatus === "unauthenticated" && currentUser && !(currentUser == null ? void 0 : currentUser.isAuthenticated) && /* @__PURE__ */ jsx46(AuthenticationFailure, {}),
|
|
4927
|
-
/* @__PURE__ */ jsx46(Head, { children:
|
|
4927
|
+
/* @__PURE__ */ jsx46(Head, { children: faviconPath && /* @__PURE__ */ jsx46("link", { rel: "icon", href: faviconPath }) }),
|
|
4928
4928
|
/* @__PURE__ */ jsx46(
|
|
4929
4929
|
Sidebar,
|
|
4930
4930
|
{
|
|
@@ -4966,7 +4966,7 @@ var AdminLayout = ({
|
|
|
4966
4966
|
};
|
|
4967
4967
|
|
|
4968
4968
|
// src/components/Layouts/MapLayout.tsx
|
|
4969
|
-
import Head2 from "
|
|
4969
|
+
import { Head as Head2 } from "@geowiki/core";
|
|
4970
4970
|
import { jsx as jsx47, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4971
4971
|
var MapLayout = ({ title, children, settings }) => {
|
|
4972
4972
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
@@ -5132,7 +5132,7 @@ import { useForm as useForm14 } from "react-hook-form";
|
|
|
5132
5132
|
|
|
5133
5133
|
// src/components/Elements/custom-dropdown.tsx
|
|
5134
5134
|
import AsyncSelect from "react-select/async";
|
|
5135
|
-
import { useTheme as useTheme2 } from "
|
|
5135
|
+
import { useTheme as useTheme2 } from "@geowiki/core";
|
|
5136
5136
|
import { useLookUp } from "@geowiki/core";
|
|
5137
5137
|
import { useConfigSettings } from "@geowiki/core";
|
|
5138
5138
|
import { LoaderFull as LoaderFull2 } from "@geowiki/design-system";
|
|
@@ -5374,7 +5374,7 @@ var CustomFilterSort = (props) => {
|
|
|
5374
5374
|
|
|
5375
5375
|
// src/components/Elements/InfoCard.tsx
|
|
5376
5376
|
import { useConfigSettings as useConfigSettings2 } from "@geowiki/core";
|
|
5377
|
-
import Link4 from "
|
|
5377
|
+
import { Link as Link4 } from "@geowiki/core";
|
|
5378
5378
|
import { motion as motion2 } from "framer-motion";
|
|
5379
5379
|
import { itemVariants } from "@geowiki/core";
|
|
5380
5380
|
import { LoaderFull as LoaderFull3 } from "@geowiki/design-system";
|
|
@@ -5581,7 +5581,7 @@ var ShowTagItem = (props) => {
|
|
|
5581
5581
|
};
|
|
5582
5582
|
|
|
5583
5583
|
// src/components/Elements/PageNotFound.tsx
|
|
5584
|
-
import Link5 from "
|
|
5584
|
+
import { Link as Link5 } from "@geowiki/core";
|
|
5585
5585
|
import { jsx as jsx57, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5586
5586
|
var PageNotFound = (_props) => {
|
|
5587
5587
|
return /* @__PURE__ */ jsx57("div", { className: " min-h-screen px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8", children: /* @__PURE__ */ jsx57("div", { className: "max-w-max mx-auto", children: /* @__PURE__ */ jsxs50("main", { className: "sm:flex", children: [
|
|
@@ -5603,7 +5603,7 @@ var PageNotFound = (_props) => {
|
|
|
5603
5603
|
};
|
|
5604
5604
|
|
|
5605
5605
|
// src/components/Elements/CmsImage.tsx
|
|
5606
|
-
import Image2 from "
|
|
5606
|
+
import { Image as Image2 } from "@geowiki/core";
|
|
5607
5607
|
import { shimmer, toBase64, useCmsImage } from "@geowiki/core";
|
|
5608
5608
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5609
5609
|
var CmsImage = ({
|
|
@@ -6261,7 +6261,7 @@ var CoverImage = (props) => {
|
|
|
6261
6261
|
};
|
|
6262
6262
|
|
|
6263
6263
|
// src/components/Input/RichTextContent.tsx
|
|
6264
|
-
import dynamic from "
|
|
6264
|
+
import { dynamic } from "@geowiki/core";
|
|
6265
6265
|
import { useEffect as useEffect17, useState as useState31 } from "react";
|
|
6266
6266
|
import "react-quill/dist/quill.snow.css";
|
|
6267
6267
|
import { jsx as jsx68, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
@@ -6389,7 +6389,7 @@ var RichTextContent = (props) => {
|
|
|
6389
6389
|
|
|
6390
6390
|
// src/components/Input/MultiSelectFreeText.tsx
|
|
6391
6391
|
import CreatableSelect from "react-select/creatable";
|
|
6392
|
-
import { useTheme as useTheme3 } from "
|
|
6392
|
+
import { useTheme as useTheme3 } from "@geowiki/core";
|
|
6393
6393
|
import { Controller } from "react-hook-form";
|
|
6394
6394
|
import { jsx as jsx69, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6395
6395
|
var MultiSelectFreeText = (props) => {
|
|
@@ -6449,7 +6449,7 @@ var MultiSelectFreeText = (props) => {
|
|
|
6449
6449
|
};
|
|
6450
6450
|
|
|
6451
6451
|
// src/components/Button/EditLinkButton.tsx
|
|
6452
|
-
import Link6 from "
|
|
6452
|
+
import { Link as Link6 } from "@geowiki/core";
|
|
6453
6453
|
import { DesignButton as DesignButton5 } from "@geowiki/design-system";
|
|
6454
6454
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6455
6455
|
var EditLinkButton = (props) => {
|
|
@@ -6457,7 +6457,7 @@ var EditLinkButton = (props) => {
|
|
|
6457
6457
|
};
|
|
6458
6458
|
|
|
6459
6459
|
// src/components/Button/ViewLink.tsx
|
|
6460
|
-
import Link7 from "
|
|
6460
|
+
import { Link as Link7 } from "@geowiki/core";
|
|
6461
6461
|
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6462
6462
|
var ViewLink = (props) => {
|
|
6463
6463
|
return /* @__PURE__ */ jsx71(Link7, { href: props.href, passHref: true, target: "_blank", children: /* @__PURE__ */ jsx71(
|
|
@@ -6475,7 +6475,7 @@ var ViewLink = (props) => {
|
|
|
6475
6475
|
};
|
|
6476
6476
|
|
|
6477
6477
|
// src/components/Button/ButtonList.tsx
|
|
6478
|
-
import Link8 from "
|
|
6478
|
+
import { Link as Link8 } from "@geowiki/core";
|
|
6479
6479
|
import { Button as Button24 } from "@geowiki/design-system";
|
|
6480
6480
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6481
6481
|
var ButtonList = ({ data }) => {
|
|
@@ -6498,8 +6498,8 @@ var ButtonList = ({ data }) => {
|
|
|
6498
6498
|
|
|
6499
6499
|
// src/components/Shared/Error.tsx
|
|
6500
6500
|
import { Button as Button25 } from "@geowiki/design-system";
|
|
6501
|
-
import { useRouter as useRouter2 } from "
|
|
6502
|
-
import Image3 from "
|
|
6501
|
+
import { useRouter as useRouter2 } from "@geowiki/core";
|
|
6502
|
+
import { Image as Image3 } from "@geowiki/core";
|
|
6503
6503
|
import { jsx as jsx73, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6504
6504
|
var Error2 = () => {
|
|
6505
6505
|
const router = useRouter2();
|
|
@@ -6532,7 +6532,7 @@ var Error2 = () => {
|
|
|
6532
6532
|
|
|
6533
6533
|
// src/components/Shared/CookieConsent.tsx
|
|
6534
6534
|
import { useEffect as useEffect18, useState as useState32 } from "react";
|
|
6535
|
-
import Script from "
|
|
6535
|
+
import { Script } from "@geowiki/core";
|
|
6536
6536
|
import { getCookie as getCookie2, setCookie } from "cookies-next";
|
|
6537
6537
|
import { Cookies } from "@geowiki/design-system";
|
|
6538
6538
|
import { Fragment as Fragment19, jsx as jsx74, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -6584,11 +6584,11 @@ gtag('config', '${gTagId}');` })
|
|
|
6584
6584
|
};
|
|
6585
6585
|
|
|
6586
6586
|
// src/components/News/NewsItemList.tsx
|
|
6587
|
-
import Link10 from "
|
|
6587
|
+
import { Link as Link10 } from "@geowiki/core";
|
|
6588
6588
|
|
|
6589
6589
|
// src/components/DesignElements/NewsArticle/NewsArticle.tsx
|
|
6590
6590
|
import { Body14, Body15sb, H8Design } from "@geowiki/design-system";
|
|
6591
|
-
import Link9 from "
|
|
6591
|
+
import { Link as Link9 } from "@geowiki/core";
|
|
6592
6592
|
import { useState as useState33 } from "react";
|
|
6593
6593
|
import { jsx as jsx75, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6594
6594
|
var NewsArticle = (props) => {
|
|
@@ -6641,7 +6641,7 @@ var NewsArticle = (props) => {
|
|
|
6641
6641
|
};
|
|
6642
6642
|
|
|
6643
6643
|
// src/components/News/NewsItemList.tsx
|
|
6644
|
-
import { useRouter as useRouter3 } from "
|
|
6644
|
+
import { useRouter as useRouter3 } from "@geowiki/core";
|
|
6645
6645
|
import { v4 as v48 } from "uuid";
|
|
6646
6646
|
import { Fragment as Fragment20, jsx as jsx76, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6647
6647
|
var NewsItemList = ({ newsItems }) => {
|
|
@@ -6708,7 +6708,7 @@ import { motion as motion7 } from "framer-motion";
|
|
|
6708
6708
|
// src/components/Publications/PublicationItem.tsx
|
|
6709
6709
|
import { itemVariants as itemVariants3, useCmsUrl as useCmsUrl2 } from "@geowiki/core";
|
|
6710
6710
|
import { motion as motion6 } from "framer-motion";
|
|
6711
|
-
import Link11 from "
|
|
6711
|
+
import { Link as Link11 } from "@geowiki/core";
|
|
6712
6712
|
import { jsx as jsx77, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6713
6713
|
var PublicationItem = ({ publication }) => {
|
|
6714
6714
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
@@ -6829,11 +6829,11 @@ var HeroWithCenterText = (props) => {
|
|
|
6829
6829
|
};
|
|
6830
6830
|
|
|
6831
6831
|
// src/components/Hero/HeroWithMap.tsx
|
|
6832
|
-
import dynamic2 from "
|
|
6832
|
+
import { dynamic as dynamic2 } from "@geowiki/core";
|
|
6833
6833
|
import { useState as useState34 } from "react";
|
|
6834
6834
|
import { jsx as jsx81, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6835
6835
|
var MapWithNoSSR = dynamic2(
|
|
6836
|
-
() => import("./cluster-map-
|
|
6836
|
+
() => import("./cluster-map-WZNS6WYH.mjs").then((x) => x.FarmerClusterMap),
|
|
6837
6837
|
{
|
|
6838
6838
|
ssr: false
|
|
6839
6839
|
}
|
|
@@ -7034,7 +7034,7 @@ import { PrimaryButton } from "@geowiki/design-system";
|
|
|
7034
7034
|
import { ProfileService as ProfileService5 } from "@geowiki/api-proxy";
|
|
7035
7035
|
import Swal from "sweetalert2";
|
|
7036
7036
|
import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/outline";
|
|
7037
|
-
import { useRouter as useRouter4 } from "
|
|
7037
|
+
import { useRouter as useRouter4 } from "@geowiki/core";
|
|
7038
7038
|
import { jsx as jsx85, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7039
7039
|
var UpdatePassword = (props) => {
|
|
7040
7040
|
const {
|
|
@@ -7785,7 +7785,7 @@ import { DesignButton as DesignButton6 } from "@geowiki/design-system";
|
|
|
7785
7785
|
import { signIn as signIn5, signOut as signOut2 } from "@geowiki/core";
|
|
7786
7786
|
import { Bars3Icon as Bars3Icon3, XMarkIcon as XMarkIcon5 } from "@heroicons/react/24/outline";
|
|
7787
7787
|
import { ChevronDownIcon as ChevronDownIcon2 } from "@heroicons/react/20/solid";
|
|
7788
|
-
import Link12 from "
|
|
7788
|
+
import { Link as Link12 } from "@geowiki/core";
|
|
7789
7789
|
|
|
7790
7790
|
// src/components/DesignElements/Notification.tsx
|
|
7791
7791
|
import { Dialog as Dialog17, Transition as Transition5 } from "@headlessui/react";
|
|
@@ -8455,7 +8455,7 @@ import {
|
|
|
8455
8455
|
DesignSelectTrigger as DesignSelectTrigger3,
|
|
8456
8456
|
DesignSelectValue as DesignSelectValue3
|
|
8457
8457
|
} from "@geowiki/design-system";
|
|
8458
|
-
import { useRouter as useRouter5 } from "
|
|
8458
|
+
import { useRouter as useRouter5 } from "@geowiki/core";
|
|
8459
8459
|
import { useState as useState40, useEffect as useEffect20 } from "react";
|
|
8460
8460
|
import { jsx as jsx96, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8461
8461
|
var DesignSort = ({ totalCount, name }) => {
|
|
@@ -8503,7 +8503,7 @@ var DesignSort = ({ totalCount, name }) => {
|
|
|
8503
8503
|
// src/components/DesignElements/filterDropdown.tsx
|
|
8504
8504
|
import { Disclosure as Disclosure2 } from "@headlessui/react";
|
|
8505
8505
|
import { ChevronDown } from "lucide-react";
|
|
8506
|
-
import { useRouter as useRouter6 } from "
|
|
8506
|
+
import { useRouter as useRouter6 } from "@geowiki/core";
|
|
8507
8507
|
import { DesignCheckbox as Checkbox9 } from "@geowiki/design-system";
|
|
8508
8508
|
import { Fragment as Fragment24, jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8509
8509
|
var FilterDropdown = ({
|
|
@@ -8623,7 +8623,7 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8623
8623
|
|
|
8624
8624
|
// src/components/DesignElements/BannerFollowLinks.tsx
|
|
8625
8625
|
import { H2Design, H9Design } from "@geowiki/design-system";
|
|
8626
|
-
import Link13 from "
|
|
8626
|
+
import { Link as Link13 } from "@geowiki/core";
|
|
8627
8627
|
import { v4 as v49 } from "uuid";
|
|
8628
8628
|
import { jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8629
8629
|
var BannerFollowLinks = ({ title, links }) => {
|
|
@@ -8809,7 +8809,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8809
8809
|
|
|
8810
8810
|
// src/components/DesignElements/ApiImage.tsx
|
|
8811
8811
|
import { shimmer as shimmer2, toBase64 as toBase642, useApiImage } from "@geowiki/core";
|
|
8812
|
-
import Image4 from "
|
|
8812
|
+
import { Image as Image4 } from "@geowiki/core";
|
|
8813
8813
|
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
8814
8814
|
var ApiImage = ({
|
|
8815
8815
|
imageId,
|
|
@@ -8852,7 +8852,7 @@ var ApiImage = ({
|
|
|
8852
8852
|
|
|
8853
8853
|
// src/components/DesignElements/SignUpBanner.tsx
|
|
8854
8854
|
import { H3Design, Body18 as Body184, DesignButton as DesignButton8 } from "@geowiki/design-system";
|
|
8855
|
-
import Link14 from "
|
|
8855
|
+
import { Link as Link14 } from "@geowiki/core";
|
|
8856
8856
|
import { v4 as v410 } from "uuid";
|
|
8857
8857
|
import { jsx as jsx102, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8858
8858
|
var SignUpBanner = ({
|
|
@@ -8910,7 +8910,7 @@ var SignUpBanner = ({
|
|
|
8910
8910
|
};
|
|
8911
8911
|
|
|
8912
8912
|
// src/components/DesignElements/RoutePagination.tsx
|
|
8913
|
-
import { useRouter as useRouter7 } from "
|
|
8913
|
+
import { useRouter as useRouter7 } from "@geowiki/core";
|
|
8914
8914
|
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
8915
8915
|
var RoutePagination = ({
|
|
8916
8916
|
pageSize,
|
|
@@ -8940,7 +8940,7 @@ var RoutePagination = ({
|
|
|
8940
8940
|
import { useEffect as useEffect21, useState as useState41 } from "react";
|
|
8941
8941
|
import { Body20m as Body20m3, Body16 as Body165, DesignButton as DesignButton9 } from "@geowiki/design-system";
|
|
8942
8942
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
8943
|
-
import Link15 from "
|
|
8943
|
+
import { Link as Link15 } from "@geowiki/core";
|
|
8944
8944
|
import { getCookie as getCookie3, setCookie as setCookie2 } from "cookies-next";
|
|
8945
8945
|
import { jsx as jsx104, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8946
8946
|
var cookieName2 = "recodo_language_popup";
|
|
@@ -9027,7 +9027,7 @@ import { useState as useState42 } from "react";
|
|
|
9027
9027
|
import { Fragment as Fragment25 } from "react";
|
|
9028
9028
|
import { Dialog as Dialog19, Transition as Transition6 } from "@headlessui/react";
|
|
9029
9029
|
import { ArrowLeftIcon, CheckIcon } from "@heroicons/react/24/outline";
|
|
9030
|
-
import { useRouter as useRouter8 } from "
|
|
9030
|
+
import { useRouter as useRouter8 } from "@geowiki/core";
|
|
9031
9031
|
import { v4 as v411 } from "uuid";
|
|
9032
9032
|
import { DesignButton as DesignButton10 } from "@geowiki/design-system";
|
|
9033
9033
|
import { jsx as jsx105, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
@@ -9165,7 +9165,7 @@ function MobileFilterPopupOpened({
|
|
|
9165
9165
|
|
|
9166
9166
|
// src/components/DesignElements/MobileFilterPopup.tsx
|
|
9167
9167
|
import { DesignButton as DesignButton11 } from "@geowiki/design-system";
|
|
9168
|
-
import { useRouter as useRouter9 } from "
|
|
9168
|
+
import { useRouter as useRouter9 } from "@geowiki/core";
|
|
9169
9169
|
import { jsx as jsx106, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
9170
9170
|
function MobileFilterPopup({
|
|
9171
9171
|
open,
|
|
@@ -9291,7 +9291,7 @@ function MobileFilterPopup({
|
|
|
9291
9291
|
}
|
|
9292
9292
|
|
|
9293
9293
|
// src/components/DesignElements/Link/Link.tsx
|
|
9294
|
-
import Link16 from "
|
|
9294
|
+
import { Link as Link16 } from "@geowiki/core";
|
|
9295
9295
|
import { Body18m as Body18m4 } from "@geowiki/design-system";
|
|
9296
9296
|
import { jsx as jsx107, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9297
9297
|
var DesignLink = ({ link, fillColor }) => {
|
|
@@ -9382,7 +9382,7 @@ var DesignCustomLink = ({
|
|
|
9382
9382
|
};
|
|
9383
9383
|
|
|
9384
9384
|
// src/components/DesignElements/Link/SimpleLink.tsx
|
|
9385
|
-
import Link17 from "
|
|
9385
|
+
import { Link as Link17 } from "@geowiki/core";
|
|
9386
9386
|
import { DesignButton as DesignButton12 } from "@geowiki/design-system";
|
|
9387
9387
|
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9388
9388
|
var SimpleLink = ({ link }) => {
|
|
@@ -9405,7 +9405,7 @@ var SimpleLink = ({ link }) => {
|
|
|
9405
9405
|
};
|
|
9406
9406
|
|
|
9407
9407
|
// src/components/DesignElements/ClusterNews/ClusterNewsItem.tsx
|
|
9408
|
-
import Link18 from "
|
|
9408
|
+
import { Link as Link18 } from "@geowiki/core";
|
|
9409
9409
|
import { CountryItem } from "@geowiki/design-system";
|
|
9410
9410
|
import { jsx as jsx111, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9411
9411
|
var ClusterNewsItem = (props) => {
|
|
@@ -9717,7 +9717,7 @@ var SixClusterNews = () => {
|
|
|
9717
9717
|
};
|
|
9718
9718
|
|
|
9719
9719
|
// src/components/DesignElements/Cluster/Cluster.tsx
|
|
9720
|
-
import Link19 from "
|
|
9720
|
+
import { Link as Link19 } from "@geowiki/core";
|
|
9721
9721
|
import { CountryItem as CountryItem2 } from "@geowiki/design-system";
|
|
9722
9722
|
import { H9Design as H9Design2, Body16sb } from "@geowiki/design-system";
|
|
9723
9723
|
import { jsx as jsx116, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
@@ -9765,7 +9765,7 @@ var ClusterList = ({ clusters }) => {
|
|
|
9765
9765
|
// src/components/DesignElements/Cluster/H3Clusters.tsx
|
|
9766
9766
|
import { H4Design as H4Design3 } from "@geowiki/design-system";
|
|
9767
9767
|
import { DesignButton as DesignButton14 } from "@geowiki/design-system";
|
|
9768
|
-
import Link20 from "
|
|
9768
|
+
import { Link as Link20 } from "@geowiki/core";
|
|
9769
9769
|
import { v4 as v416 } from "uuid";
|
|
9770
9770
|
import { useCountries } from "@geowiki/core";
|
|
9771
9771
|
import { jsx as jsx118, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
@@ -10001,7 +10001,7 @@ var NewsArticleList = ({ newsArticles }) => {
|
|
|
10001
10001
|
};
|
|
10002
10002
|
|
|
10003
10003
|
// src/components/DesignElements/OpenPins/bioBlitzObservation.tsx
|
|
10004
|
-
import Image5 from "
|
|
10004
|
+
import { Image as Image5 } from "@geowiki/core";
|
|
10005
10005
|
import { jsx as jsx123, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
10006
10006
|
var BIO_BLITZ_LINK_COLOR = "#59AD31";
|
|
10007
10007
|
var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
@@ -10041,8 +10041,8 @@ var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
|
10041
10041
|
// src/components/DesignElements/OpenPins/farmerClusterPins.tsx
|
|
10042
10042
|
import { DesignButton as DesignButton15 } from "@geowiki/design-system";
|
|
10043
10043
|
import { Body18m as Body18m6, Body14 as Body142 } from "@geowiki/design-system";
|
|
10044
|
-
import Image6 from "
|
|
10045
|
-
import Link21 from "
|
|
10044
|
+
import { Image as Image6 } from "@geowiki/core";
|
|
10045
|
+
import { Link as Link21 } from "@geowiki/core";
|
|
10046
10046
|
import { jsx as jsx124, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
10047
10047
|
var DesignFarmerClusterPin = ({
|
|
10048
10048
|
farmerCluster,
|
|
@@ -10077,7 +10077,7 @@ var DesignFarmerClusterPin = ({
|
|
|
10077
10077
|
// src/components/DesignElements/HeadingTextBlocks/LandingTitleBodyButton.tsx
|
|
10078
10078
|
import { LandingTitle, Body18 as Body186 } from "@geowiki/design-system";
|
|
10079
10079
|
import { DesignButton as DesignButton16 } from "@geowiki/design-system";
|
|
10080
|
-
import Link22 from "
|
|
10080
|
+
import { Link as Link22 } from "@geowiki/core";
|
|
10081
10081
|
import { jsx as jsx125, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
10082
10082
|
var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
10083
10083
|
const isNeedParse = /<em>(.*?)<\/em>/g.test(title);
|
|
@@ -10106,7 +10106,7 @@ var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
|
10106
10106
|
// src/components/DesignElements/HeadingTextBlocks/H1BodyButton.tsx
|
|
10107
10107
|
import { H1Design } from "@geowiki/design-system";
|
|
10108
10108
|
import { DesignButton as DesignButton17 } from "@geowiki/design-system";
|
|
10109
|
-
import Link23 from "
|
|
10109
|
+
import { Link as Link23 } from "@geowiki/core";
|
|
10110
10110
|
import { configStore as configStore2 } from "@geowiki/core";
|
|
10111
10111
|
import parse2 from "html-react-parser";
|
|
10112
10112
|
import { jsx as jsx126, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
@@ -10197,7 +10197,7 @@ var H1BodyButton = ({
|
|
|
10197
10197
|
// src/components/DesignElements/HeadingTextBlocks/H2BodyButton.tsx
|
|
10198
10198
|
import { H2Design as H2Design2, Body18 as Body187 } from "@geowiki/design-system";
|
|
10199
10199
|
import { DesignButton as DesignButton18 } from "@geowiki/design-system";
|
|
10200
|
-
import Link24 from "
|
|
10200
|
+
import { Link as Link24 } from "@geowiki/core";
|
|
10201
10201
|
import { jsx as jsx127, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
10202
10202
|
var H2BodyButton = ({
|
|
10203
10203
|
title,
|
|
@@ -10337,7 +10337,7 @@ var NewsHeading = () => {
|
|
|
10337
10337
|
// src/components/DesignElements/TextBlocks/subtitle-h3-body.tsx
|
|
10338
10338
|
import { H3Design as H3Design2, Body18 as Body188 } from "@geowiki/design-system";
|
|
10339
10339
|
import { DesignButton as DesignButton19 } from "@geowiki/design-system";
|
|
10340
|
-
import Link25 from "
|
|
10340
|
+
import { Link as Link25 } from "@geowiki/core";
|
|
10341
10341
|
import { jsx as jsx131, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
10342
10342
|
var SubtitleH3Body = ({
|
|
10343
10343
|
title,
|
|
@@ -10486,7 +10486,7 @@ import { H3Design as H3Design5, Body18 as Body1811 } from "@geowiki/design-syste
|
|
|
10486
10486
|
import { useClusters, useCountries as useCountries2 } from "@geowiki/core";
|
|
10487
10487
|
import { v4 as v417 } from "uuid";
|
|
10488
10488
|
import { DesignButton as DesignButton20 } from "@geowiki/design-system";
|
|
10489
|
-
import Link26 from "
|
|
10489
|
+
import { Link as Link26 } from "@geowiki/core";
|
|
10490
10490
|
import { jsx as jsx134, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
10491
10491
|
var SubtitleH3Cluster4Column = ({
|
|
10492
10492
|
title,
|
|
@@ -10555,7 +10555,7 @@ import { H3Design as H3Design6, Body18 as Body1812 } from "@geowiki/design-syste
|
|
|
10555
10555
|
import { useNewsFromAllClusters as useNewsFromAllClusters2 } from "@geowiki/core";
|
|
10556
10556
|
import { v4 as v418 } from "uuid";
|
|
10557
10557
|
import { DesignButton as DesignButton21 } from "@geowiki/design-system";
|
|
10558
|
-
import Link27 from "
|
|
10558
|
+
import { Link as Link27 } from "@geowiki/core";
|
|
10559
10559
|
import { jsx as jsx135, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
10560
10560
|
var SubtitleH3ClusterNews3Column = ({
|
|
10561
10561
|
title,
|
|
@@ -10614,8 +10614,8 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10614
10614
|
// src/components/DesignElements/TextBlocks/subtitle-h2-body-video.tsx
|
|
10615
10615
|
import { H2Design as H2Design3 } from "@geowiki/design-system";
|
|
10616
10616
|
import { DesignButton as DesignButton22 } from "@geowiki/design-system";
|
|
10617
|
-
import Link28 from "
|
|
10618
|
-
import dynamic3 from "
|
|
10617
|
+
import { Link as Link28 } from "@geowiki/core";
|
|
10618
|
+
import { dynamic as dynamic3 } from "@geowiki/core";
|
|
10619
10619
|
import { jsx as jsx136, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
10620
10620
|
var ReactPlayer = dynamic3(() => import("react-player"), { ssr: false });
|
|
10621
10621
|
var SubtitleH2BodyVideo = ({
|
|
@@ -10679,7 +10679,7 @@ var SubtitleH2BodyVideo = ({
|
|
|
10679
10679
|
// src/components/DesignElements/TextBlocks/image-left-h3-body.tsx
|
|
10680
10680
|
import { H3Design as H3Design7 } from "@geowiki/design-system";
|
|
10681
10681
|
import { DesignButton as DesignButton23 } from "@geowiki/design-system";
|
|
10682
|
-
import Link29 from "
|
|
10682
|
+
import { Link as Link29 } from "@geowiki/core";
|
|
10683
10683
|
import { jsx as jsx137, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
10684
10684
|
var ImageLeftH3BodyLink = ({
|
|
10685
10685
|
title,
|
|
@@ -10746,7 +10746,7 @@ var ImageLeftH3BodyLink = ({
|
|
|
10746
10746
|
// src/components/DesignElements/LandingPage/NewsfeedPreview.tsx
|
|
10747
10747
|
import { H3Design as H3Design8 } from "@geowiki/design-system";
|
|
10748
10748
|
import { DesignButton as DesignButton24 } from "@geowiki/design-system";
|
|
10749
|
-
import Link30 from "
|
|
10749
|
+
import { Link as Link30 } from "@geowiki/core";
|
|
10750
10750
|
import { jsx as jsx138, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
10751
10751
|
var NewsfeedPreview = ({ newsArticleData }) => {
|
|
10752
10752
|
return /* @__PURE__ */ jsxs115("div", { className: "lg:container mx-auto space-y-6 mt-8 lg:space-y-10 lg:mt-12", children: [
|
|
@@ -10840,7 +10840,7 @@ var HeroImageRight = (props) => {
|
|
|
10840
10840
|
// src/components/DesignElements/Hero/ImageLeftH3Body.tsx
|
|
10841
10841
|
import { H3Design as H3Design9 } from "@geowiki/design-system";
|
|
10842
10842
|
import { DesignButton as DesignButton25 } from "@geowiki/design-system";
|
|
10843
|
-
import Link31 from "
|
|
10843
|
+
import { Link as Link31 } from "@geowiki/core";
|
|
10844
10844
|
import { jsx as jsx141, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
10845
10845
|
var ImageLefttH3Body = (props) => {
|
|
10846
10846
|
var _a, _b, _c, _d;
|
|
@@ -11310,7 +11310,7 @@ import { useState as useState47 } from "react";
|
|
|
11310
11310
|
import { useForm as useForm18 } from "react-hook-form";
|
|
11311
11311
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
11312
11312
|
import * as z3 from "zod";
|
|
11313
|
-
import { useRouter as useRouter10 } from "
|
|
11313
|
+
import { useRouter as useRouter10 } from "@geowiki/core";
|
|
11314
11314
|
import { AccountService } from "@geowiki/api-proxy";
|
|
11315
11315
|
import {
|
|
11316
11316
|
Form,
|
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.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
"classnames": "^2.5.1",
|
|
18
18
|
"cookies-next": "^2.1.1",
|
|
19
19
|
"leaflet": "^1.9.4",
|
|
20
|
-
"next": "15.5.3",
|
|
21
20
|
"react": "^18.2.0",
|
|
22
21
|
"react-dom": "^18.2.0",
|
|
23
|
-
"@geowiki/
|
|
24
|
-
"@geowiki/evoland-api-proxy": "0.16.9-dev.
|
|
25
|
-
"@geowiki/
|
|
22
|
+
"@geowiki/api-proxy": "0.16.9-dev.5",
|
|
23
|
+
"@geowiki/evoland-api-proxy": "0.16.9-dev.5",
|
|
24
|
+
"@geowiki/cms-proxy": "0.16.9-dev.5"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
@@ -95,8 +94,6 @@
|
|
|
95
94
|
"leaflet": "^1.9.4",
|
|
96
95
|
"leaflet.markercluster": "^1.5.3",
|
|
97
96
|
"lucide-react": "^0.224.0",
|
|
98
|
-
"next": "15.5.3",
|
|
99
|
-
"next-themes": "^0.2.1",
|
|
100
97
|
"quill-blot-formatter": "^1.0.5",
|
|
101
98
|
"react-data-table-component": "^7.5.3",
|
|
102
99
|
"react-day-picker": "^8.7.1",
|
|
@@ -115,11 +112,11 @@
|
|
|
115
112
|
"tailwind-merge": "^1.12.0",
|
|
116
113
|
"uuid": "^9.0.0",
|
|
117
114
|
"zod": "^3.25.7",
|
|
118
|
-
"@geowiki/api-proxy": "0.16.9-dev.
|
|
119
|
-
"@geowiki/
|
|
120
|
-
"@geowiki/
|
|
121
|
-
"@geowiki/
|
|
122
|
-
"@geowiki/
|
|
115
|
+
"@geowiki/api-proxy": "0.16.9-dev.5",
|
|
116
|
+
"@geowiki/core": "0.16.9-dev.5",
|
|
117
|
+
"@geowiki/cms-proxy": "0.16.9-dev.5",
|
|
118
|
+
"@geowiki/evoland-api-proxy": "0.16.9-dev.5",
|
|
119
|
+
"@geowiki/design-system": "0.16.9-dev.5"
|
|
123
120
|
},
|
|
124
121
|
"scripts": {
|
|
125
122
|
"build": "tsup && tailwindcss -i styles.css -o dist/styles.css --minify",
|