@geowiki/cms 0.15.1-dev.0 → 0.16.0-dev.1

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.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  ContainerWidget
4
- } from "./chunk-HLTYOLFG.mjs";
5
- import "./chunk-DED6JF7X.mjs";
4
+ } from "./chunk-TRQ4GHJU.mjs";
5
+ import "./chunk-OJQET6HO.mjs";
6
6
  export {
7
7
  ContainerWidget
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sections
3
- } from "./chunk-DED6JF7X.mjs";
3
+ } from "./chunk-OJQET6HO.mjs";
4
4
 
5
5
  // src/components/Section/Recodo/LanguagesWidget.tsx
6
6
  import { useCmsContentWithType, useDefaultSettings } from "@geowiki/core";
@@ -1,7 +1,3 @@
1
- // src/components/Sections.tsx
2
- import { itemVariants, listVariants } from "@geowiki/core";
3
- import { motion } from "framer-motion";
4
-
5
1
  // src/components/SectionComponents.ts
6
2
  import dynamic from "next/dynamic";
7
3
  var NewsFeedWidget = dynamic(() => import("./NewsFeedWidget-4W7T4H2P.mjs"));
@@ -109,7 +105,7 @@ var MarkdownWidget = dynamic(
109
105
  () => import("./MarkdownWidget-QTTNNVQW.mjs").then((mod) => mod.MarkdownWidget)
110
106
  );
111
107
  var ContainerWidget = dynamic(
112
- () => import("./ContainerWidget-6T555RQD.mjs").then((mod) => mod.ContainerWidget)
108
+ () => import("./ContainerWidget-5FNF5WMV.mjs").then((mod) => mod.ContainerWidget)
113
109
  );
114
110
  var HeroWidget = dynamic(
115
111
  () => import("./HeroWidget-A4ODJCXZ.mjs").then((mod) => mod.HeroWidget)
@@ -183,7 +179,7 @@ var HeaderBodyWidget = dynamic(
183
179
  () => import("./HeaderBodyWidget-ZW2WYKNP.mjs").then((mod) => mod.HeaderBodyWidget)
184
180
  );
185
181
  var LanguageWidget = dynamic(
186
- () => import("./LanguagesWidget-OENZMIFA.mjs").then((mod) => mod.LanguageWidget)
182
+ () => import("./LanguagesWidget-N2E7UQDT.mjs").then((mod) => mod.LanguageWidget)
187
183
  );
188
184
  var SubtitleH3KeyResourcesWidget = dynamic(
189
185
  () => import("./SubtitleH3KeyResourcesWidget-AGBBJ7ZJ.mjs").then(
@@ -298,7 +294,7 @@ var Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
298
294
  if (!SectionComponent) {
299
295
  return null;
300
296
  }
301
- return /* @__PURE__ */ jsx(motion.div, { variants: itemVariants, children: /* @__PURE__ */ jsx(
297
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
302
298
  SectionComponent,
303
299
  {
304
300
  data: sectionData,
@@ -309,25 +305,15 @@ var Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
309
305
  ) }, sectionData.ContentItemId);
310
306
  };
311
307
  var Sections = ({ sections, settings, cmsUrl }) => {
312
- return /* @__PURE__ */ jsx(
313
- motion.div,
308
+ return /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ jsx(
309
+ Section,
314
310
  {
315
- className: "flex flex-col",
316
- initial: "initial",
317
- animate: "enter",
318
- exit: "exit",
319
- variants: listVariants,
320
- children: sections?.map((section) => /* @__PURE__ */ jsx(
321
- Section,
322
- {
323
- sectionData: section,
324
- settings,
325
- cmsUrl
326
- },
327
- `${section?.ContentType}_${section?.ContentItemId}`
328
- ))
329
- }
330
- );
311
+ sectionData: section,
312
+ settings,
313
+ cmsUrl
314
+ },
315
+ `${section?.ContentType}_${section?.ContentItemId}`
316
+ )) });
331
317
  };
332
318
 
333
319
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sections
3
- } from "./chunk-DED6JF7X.mjs";
3
+ } from "./chunk-OJQET6HO.mjs";
4
4
 
5
5
  // src/components/Section/ContainerWidget.tsx
6
6
  import { jsx } from "react/jsx-runtime";
package/dist/index.js CHANGED
@@ -3610,13 +3610,11 @@ var init_SectionComponents = __esm({
3610
3610
  });
3611
3611
 
3612
3612
  // src/components/Sections.tsx
3613
- var import_core18, import_framer_motion, import_jsx_runtime61, Section, Sections;
3613
+ var import_jsx_runtime61, Section, Sections;
3614
3614
  var init_Sections = __esm({
3615
3615
  "src/components/Sections.tsx"() {
3616
3616
  "use strict";
3617
3617
  "use client";
3618
- import_core18 = require("@geowiki/core");
3619
- import_framer_motion = require("framer-motion");
3620
3618
  init_SectionComponents();
3621
3619
  import_jsx_runtime61 = require("react/jsx-runtime");
3622
3620
  Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
@@ -3624,7 +3622,7 @@ var init_Sections = __esm({
3624
3622
  if (!SectionComponent) {
3625
3623
  return null;
3626
3624
  }
3627
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_framer_motion.motion.div, { variants: import_core18.itemVariants, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3625
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3628
3626
  SectionComponent,
3629
3627
  {
3630
3628
  data: sectionData,
@@ -3635,25 +3633,15 @@ var init_Sections = __esm({
3635
3633
  ) }, sectionData.ContentItemId);
3636
3634
  };
3637
3635
  Sections = ({ sections, settings, cmsUrl }) => {
3638
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3639
- import_framer_motion.motion.div,
3636
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3637
+ Section,
3640
3638
  {
3641
- className: "flex flex-col",
3642
- initial: "initial",
3643
- animate: "enter",
3644
- exit: "exit",
3645
- variants: import_core18.listVariants,
3646
- children: sections?.map((section) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3647
- Section,
3648
- {
3649
- sectionData: section,
3650
- settings,
3651
- cmsUrl
3652
- },
3653
- `${section?.ContentType}_${section?.ContentItemId}`
3654
- ))
3655
- }
3656
- );
3639
+ sectionData: section,
3640
+ settings,
3641
+ cmsUrl
3642
+ },
3643
+ `${section?.ContentType}_${section?.ContentItemId}`
3644
+ )) });
3657
3645
  };
3658
3646
  }
3659
3647
  });
@@ -3704,13 +3692,12 @@ module.exports = __toCommonJS(src_exports);
3704
3692
  init_Sections();
3705
3693
 
3706
3694
  // src/components/Section/apps-list.tsx
3707
- var import_core19 = require("@geowiki/core");
3708
- var import_framer_motion2 = require("framer-motion");
3695
+ var import_core18 = require("@geowiki/core");
3709
3696
  var import_ui53 = require("@geowiki/ui");
3710
3697
  var import_jsx_runtime62 = require("react/jsx-runtime");
3711
3698
  var AppsList = ({ apps }) => {
3712
3699
  console.log("apps", apps);
3713
- var cmsUrl = (0, import_core19.useCmsUrl)();
3700
+ var cmsUrl = (0, import_core18.useCmsUrl)();
3714
3701
  var visibleApps = apps?.filter(
3715
3702
  (app) => app?.Application?.IsVisible?.Value === true
3716
3703
  );
@@ -3719,24 +3706,14 @@ var AppsList = ({ apps }) => {
3719
3706
  });
3720
3707
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-4 py-16 mx-auto sm:max-w-xl md:max-w-full ", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "mx-auto px-4 container sm:px-6", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-12", children: [
3721
3708
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "space-y-5 sm:space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h2", { className: "text-3xl font-extrabold tracking-tight sm:text-4xl text-center", children: "Our Apps" }) }),
3722
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3723
- import_framer_motion2.motion.ul,
3709
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8", children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3710
+ import_ui53.ApplicationView,
3724
3711
  {
3725
- className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8",
3726
- initial: "initial",
3727
- animate: "enter",
3728
- exit: "exit",
3729
- variants: import_core19.listVariants,
3730
- children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3731
- import_ui53.ApplicationView,
3732
- {
3733
- app,
3734
- cmsUrl
3735
- },
3736
- app.ContentItemId
3737
- ))
3738
- }
3739
- ) })
3712
+ app,
3713
+ cmsUrl
3714
+ },
3715
+ app.ContentItemId
3716
+ )) }) })
3740
3717
  ] }) }) }) });
3741
3718
  };
3742
3719
 
@@ -3778,7 +3755,7 @@ init_HeroWidget();
3778
3755
  init_HeadingTextWidget();
3779
3756
 
3780
3757
  // src/components/Section/hero-geowiki.tsx
3781
- var import_core20 = require("@geowiki/core");
3758
+ var import_core19 = require("@geowiki/core");
3782
3759
  var import_ui57 = require("@geowiki/ui");
3783
3760
  var import_jsx_runtime65 = require("react/jsx-runtime");
3784
3761
  var HeroGeoWiki = ({ data }) => {
@@ -3796,7 +3773,7 @@ var HeroGeoWiki = ({ data }) => {
3796
3773
  {
3797
3774
  button,
3798
3775
  compact: false,
3799
- appearance: (0, import_core20.getButtonAppearance)(button.type, "light")
3776
+ appearance: (0, import_core19.getButtonAppearance)(button.type, "light")
3800
3777
  },
3801
3778
  button.id
3802
3779
  )) })
@@ -3871,7 +3848,7 @@ init_UpdateUserInfoWidget();
3871
3848
  init_UserInfoWidget();
3872
3849
 
3873
3850
  // src/components/Section/Recodo/ClusterNewsStories.tsx
3874
- var import_core21 = require("@geowiki/core");
3851
+ var import_core20 = require("@geowiki/core");
3875
3852
  var import_ui59 = require("@geowiki/ui");
3876
3853
  var import_link3 = __toESM(require("next/link"));
3877
3854
  var import_router2 = require("next/router");
@@ -3899,8 +3876,8 @@ var ClusterNewsStories = ({}) => {
3899
3876
  skip = 1;
3900
3877
  }
3901
3878
  var take = pageSize;
3902
- const { data: clusterNews, isLoading } = (0, import_core21.useNewsFromAllClusters)(skip, take);
3903
- const { data: featuredNews, isLoading: isFeaturedLoading } = (0, import_core21.useNewsFromAllClusters)(0, 1);
3879
+ const { data: clusterNews, isLoading } = (0, import_core20.useNewsFromAllClusters)(skip, take);
3880
+ const { data: featuredNews, isLoading: isFeaturedLoading } = (0, import_core20.useNewsFromAllClusters)(0, 1);
3904
3881
  var firstNews = featuredNews?.items?.[0];
3905
3882
  if (isFeaturedLoading || isLoading) {
3906
3883
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui59.LoaderFull, {});
package/dist/index.mjs CHANGED
@@ -18,10 +18,10 @@ import {
18
18
  } from "./chunk-UYS3OVMP.mjs";
19
19
  import {
20
20
  ContainerWidget
21
- } from "./chunk-HLTYOLFG.mjs";
21
+ } from "./chunk-TRQ4GHJU.mjs";
22
22
  import {
23
23
  Sections
24
- } from "./chunk-DED6JF7X.mjs";
24
+ } from "./chunk-OJQET6HO.mjs";
25
25
  import {
26
26
  HeroWidget
27
27
  } from "./chunk-XR7AIYAA.mjs";
@@ -93,8 +93,7 @@ import {
93
93
  } from "./chunk-SNHJDG24.mjs";
94
94
 
95
95
  // src/components/Section/apps-list.tsx
96
- import { listVariants, useCmsUrl } from "@geowiki/core";
97
- import { motion } from "framer-motion";
96
+ import { useCmsUrl } from "@geowiki/core";
98
97
  import { ApplicationView } from "@geowiki/ui";
99
98
  import { jsx, jsxs } from "react/jsx-runtime";
100
99
  var AppsList = ({ apps }) => {
@@ -108,24 +107,14 @@ var AppsList = ({ apps }) => {
108
107
  });
109
108
  return /* @__PURE__ */ jsx("div", { className: "px-4 py-16 mx-auto sm:max-w-xl md:max-w-full ", children: /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx("div", { className: "mx-auto px-4 container sm:px-6", children: /* @__PURE__ */ jsxs("div", { className: "space-y-12", children: [
110
109
  /* @__PURE__ */ jsx("div", { className: "space-y-5 sm:space-y-4", children: /* @__PURE__ */ jsx("h2", { className: "text-3xl font-extrabold tracking-tight sm:text-4xl text-center", children: "Our Apps" }) }),
111
- /* @__PURE__ */ jsx("div", { className: "lg:col-span-2", children: /* @__PURE__ */ jsx(
112
- motion.ul,
110
+ /* @__PURE__ */ jsx("div", { className: "lg:col-span-2", children: /* @__PURE__ */ jsx("ul", { className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8", children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ jsx(
111
+ ApplicationView,
113
112
  {
114
- className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8",
115
- initial: "initial",
116
- animate: "enter",
117
- exit: "exit",
118
- variants: listVariants,
119
- children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ jsx(
120
- ApplicationView,
121
- {
122
- app,
123
- cmsUrl
124
- },
125
- app.ContentItemId
126
- ))
127
- }
128
- ) })
113
+ app,
114
+ cmsUrl
115
+ },
116
+ app.ContentItemId
117
+ )) }) })
129
118
  ] }) }) }) });
130
119
  };
131
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geowiki/cms",
3
- "version": "0.15.1-dev.0",
3
+ "version": "0.16.0-dev.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -17,7 +17,6 @@
17
17
  "classnames": "^2.5.1",
18
18
  "leaflet": "^1.9.4",
19
19
  "next": "15.5.3",
20
- "next-auth": "4.24.6",
21
20
  "react": "^18.2.0",
22
21
  "react-dom": "^18.2.0",
23
22
  "react-hook-form": "^7.53.0",
@@ -34,11 +33,11 @@
34
33
  "react-player": "^2.16.0",
35
34
  "react-responsive-carousel": "^3.2.23",
36
35
  "uuid": "^9.0.0",
37
- "@geowiki/cms-proxy": "0.15.1-dev.0",
38
- "@geowiki/core": "0.15.1-dev.0",
39
- "@geowiki/recodo": "0.15.1-dev.0",
40
- "@geowiki/ui": "0.15.1-dev.0",
41
- "@geowiki/api-proxy": "0.15.1-dev.0"
36
+ "@geowiki/api-proxy": "0.16.0-dev.1",
37
+ "@geowiki/cms-proxy": "0.16.0-dev.1",
38
+ "@geowiki/core": "0.16.0-dev.1",
39
+ "@geowiki/recodo": "0.16.0-dev.1",
40
+ "@geowiki/ui": "0.16.0-dev.1"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@types/leaflet": "^1.9.0",
@@ -57,8 +56,8 @@
57
56
  "autoprefixer": "^10.4.14",
58
57
  "tsup": "^8.0.2",
59
58
  "typescript": "5.4.2",
60
- "tailwind-config": "0.0.0",
61
59
  "eslint-config-custom": "0.0.0",
60
+ "tailwind-config": "0.0.0",
62
61
  "tsconfig": "0.0.0"
63
62
  },
64
63
  "scripts": {