@geowiki/cms 0.16.0-dev.1 → 0.16.0-dev.3
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/{ContainerWidget-5FNF5WMV.mjs → ContainerWidget-4DBHV3S2.mjs} +2 -2
- package/dist/{H2BodyInternalLinkMapWidget-T7MARJTA.mjs → H2BodyInternalLinkMapWidget-6FKP4AHO.mjs} +1 -1
- package/dist/{HeroMap-AT3N4ZVZ.mjs → HeroMap-DJ7NARO3.mjs} +5 -6
- package/dist/{LanguagesWidget-N2E7UQDT.mjs → LanguagesWidget-R7UBNG42.mjs} +1 -1
- package/dist/{MapHeroWidget-MLNO6KKC.mjs → MapHeroWidget-WEVKITG5.mjs} +1 -1
- package/dist/{chunk-OJQET6HO.mjs → chunk-QLNZQFXF.mjs} +4 -4
- package/dist/{chunk-NSGNUHUW.mjs → chunk-VTIR7GUQ.mjs} +1 -1
- package/dist/{chunk-TRQ4GHJU.mjs → chunk-YGKPOYG6.mjs} +1 -1
- package/dist/index.js +4 -5
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/dist/{H2BodyInternalLinkMapWidget-T7MARJTA.mjs → H2BodyInternalLinkMapWidget-6FKP4AHO.mjs}
RENAMED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@geowiki/ui";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
var MapWithNoSSR = dynamic(
|
|
15
|
-
() => import("./HeroMap-
|
|
15
|
+
() => import("./HeroMap-DJ7NARO3.mjs").then((x) => x.HeroMap),
|
|
16
16
|
{
|
|
17
17
|
ssr: false
|
|
18
18
|
}
|
|
@@ -53,13 +53,12 @@ import { useFileUrl } from "@geowiki/core";
|
|
|
53
53
|
import MapPinIcon from "@heroicons/react/24/solid/MapPinIcon";
|
|
54
54
|
import { renderToString } from "react-dom/server";
|
|
55
55
|
import { useConfigSettings } from "@geowiki/core";
|
|
56
|
-
import {
|
|
56
|
+
import { IconPaths } from "@geowiki/ui";
|
|
57
57
|
import { jsx } from "react/jsx-runtime";
|
|
58
58
|
function getIcon(color, name) {
|
|
59
59
|
const myIcon = IconPaths.find((icon) => icon.name === name);
|
|
60
60
|
if (myIcon) {
|
|
61
|
-
|
|
62
|
-
return renderToString(/* @__PURE__ */ jsx(MyIcon, { Icon: myIcon.icon, color }));
|
|
61
|
+
return renderToString(/* @__PURE__ */ jsx(myIcon.icon, {}));
|
|
63
62
|
} else {
|
|
64
63
|
const MyIcon = MapPinIcon;
|
|
65
64
|
return renderToString(/* @__PURE__ */ jsx(MyIcon, { height: 40, width: 40, color }));
|
|
@@ -115,10 +114,10 @@ var ClusterMarkers = (_props) => {
|
|
|
115
114
|
Marker,
|
|
116
115
|
{
|
|
117
116
|
icon: new DivIcon({
|
|
118
|
-
iconSize: [
|
|
119
|
-
html:
|
|
117
|
+
iconSize: [40, 40],
|
|
118
|
+
html: `${getIcon("#9999CC", "Farmer Clusters")}`,
|
|
120
119
|
className: "custom-div-icon",
|
|
121
|
-
iconAnchor: [
|
|
120
|
+
iconAnchor: [20, 40]
|
|
122
121
|
}),
|
|
123
122
|
position: cluster.location ? new LatLng(
|
|
124
123
|
cluster?.location?.latitude,
|
|
@@ -91,7 +91,7 @@ var StatsWidget = dynamic(
|
|
|
91
91
|
() => import("./StatsWidget-4MISF6XB.mjs").then((mod) => mod.StatsWidget)
|
|
92
92
|
);
|
|
93
93
|
var MapHeroWidget = dynamic(
|
|
94
|
-
() => import("./MapHeroWidget-
|
|
94
|
+
() => import("./MapHeroWidget-WEVKITG5.mjs").then((mod) => mod.MapHeroWidget)
|
|
95
95
|
);
|
|
96
96
|
var HeroCenterTextWidget = dynamic(
|
|
97
97
|
() => import("./HeroCenterTextWidget-5LDZNUBR.mjs").then(
|
|
@@ -105,7 +105,7 @@ var MarkdownWidget = dynamic(
|
|
|
105
105
|
() => import("./MarkdownWidget-QTTNNVQW.mjs").then((mod) => mod.MarkdownWidget)
|
|
106
106
|
);
|
|
107
107
|
var ContainerWidget = dynamic(
|
|
108
|
-
() => import("./ContainerWidget-
|
|
108
|
+
() => import("./ContainerWidget-4DBHV3S2.mjs").then((mod) => mod.ContainerWidget)
|
|
109
109
|
);
|
|
110
110
|
var HeroWidget = dynamic(
|
|
111
111
|
() => import("./HeroWidget-A4ODJCXZ.mjs").then((mod) => mod.HeroWidget)
|
|
@@ -163,7 +163,7 @@ var SubtitleH3BodySpecialFeatureResourceCollectionsWidget = dynamic(
|
|
|
163
163
|
() => import("./SubtitleH3BodySpecialFeatureResourceCollectionsWidget-62SJ4J73.mjs").then((mod) => mod.SubtitleH3BodySpecialFeatureResourceCollectionsWidget)
|
|
164
164
|
);
|
|
165
165
|
var H2BodyInternalLinkMapWidget = dynamic(
|
|
166
|
-
() => import("./H2BodyInternalLinkMapWidget-
|
|
166
|
+
() => import("./H2BodyInternalLinkMapWidget-6FKP4AHO.mjs").then(
|
|
167
167
|
(mod) => mod.H2BodyInternalLinkMapWidget
|
|
168
168
|
)
|
|
169
169
|
);
|
|
@@ -179,7 +179,7 @@ var HeaderBodyWidget = dynamic(
|
|
|
179
179
|
() => import("./HeaderBodyWidget-ZW2WYKNP.mjs").then((mod) => mod.HeaderBodyWidget)
|
|
180
180
|
);
|
|
181
181
|
var LanguageWidget = dynamic(
|
|
182
|
-
() => import("./LanguagesWidget-
|
|
182
|
+
() => import("./LanguagesWidget-R7UBNG42.mjs").then((mod) => mod.LanguageWidget)
|
|
183
183
|
);
|
|
184
184
|
var SubtitleH3KeyResourcesWidget = dynamic(
|
|
185
185
|
() => import("./SubtitleH3KeyResourcesWidget-AGBBJ7ZJ.mjs").then(
|
|
@@ -3,7 +3,7 @@ import dynamic from "next/dynamic";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
var MapWithNoSSR = dynamic(
|
|
6
|
-
() => import("./HeroMap-
|
|
6
|
+
() => import("./HeroMap-DJ7NARO3.mjs").then((x) => x.HeroMap),
|
|
7
7
|
{
|
|
8
8
|
ssr: false
|
|
9
9
|
}
|
package/dist/index.js
CHANGED
|
@@ -1320,8 +1320,7 @@ var init_MarkerClusterGroup = __esm({
|
|
|
1320
1320
|
function getIcon(color, name) {
|
|
1321
1321
|
const myIcon = import_ui19.IconPaths.find((icon) => icon.name === name);
|
|
1322
1322
|
if (myIcon) {
|
|
1323
|
-
|
|
1324
|
-
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MyIcon, { Icon: myIcon.icon, color }));
|
|
1323
|
+
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(myIcon.icon, {}));
|
|
1325
1324
|
} else {
|
|
1326
1325
|
const MyIcon = import_MapPinIcon.default;
|
|
1327
1326
|
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MyIcon, { height: 40, width: 40, color }));
|
|
@@ -1393,10 +1392,10 @@ var init_cluster_markers = __esm({
|
|
|
1393
1392
|
import_react_leaflet.Marker,
|
|
1394
1393
|
{
|
|
1395
1394
|
icon: new import_leaflet2.DivIcon({
|
|
1396
|
-
iconSize: [
|
|
1397
|
-
html:
|
|
1395
|
+
iconSize: [40, 40],
|
|
1396
|
+
html: `${getIcon("#9999CC", "Farmer Clusters")}`,
|
|
1398
1397
|
className: "custom-div-icon",
|
|
1399
|
-
iconAnchor: [
|
|
1398
|
+
iconAnchor: [20, 40]
|
|
1400
1399
|
}),
|
|
1401
1400
|
position: cluster.location ? new import_leaflet2.LatLng(
|
|
1402
1401
|
cluster?.location?.latitude,
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-JNVPTKNZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
MapHeroWidget
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VTIR7GUQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
HeroCenterTextWidget
|
|
12
12
|
} from "./chunk-JJWETKAK.mjs";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk-UYS3OVMP.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ContainerWidget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YGKPOYG6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
Sections
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QLNZQFXF.mjs";
|
|
25
25
|
import {
|
|
26
26
|
HeroWidget
|
|
27
27
|
} from "./chunk-XR7AIYAA.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geowiki/cms",
|
|
3
|
-
"version": "0.16.0-dev.
|
|
3
|
+
"version": "0.16.0-dev.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"react-player": "^2.16.0",
|
|
34
34
|
"react-responsive-carousel": "^3.2.23",
|
|
35
35
|
"uuid": "^9.0.0",
|
|
36
|
-
"@geowiki/
|
|
37
|
-
"@geowiki/
|
|
38
|
-
"@geowiki/
|
|
39
|
-
"@geowiki/
|
|
40
|
-
"@geowiki/
|
|
36
|
+
"@geowiki/cms-proxy": "0.16.0-dev.3",
|
|
37
|
+
"@geowiki/core": "0.16.0-dev.3",
|
|
38
|
+
"@geowiki/recodo": "0.16.0-dev.3",
|
|
39
|
+
"@geowiki/ui": "0.16.0-dev.3",
|
|
40
|
+
"@geowiki/api-proxy": "0.16.0-dev.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/leaflet": "^1.9.0",
|