@simpleview/cms-foundation 0.0.9 → 0.0.10

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.
@@ -4,6 +4,8 @@ import { usePreview } from "../Preview/PreviewPageWrapper";
4
4
  import { SectionItemCiv } from "./SectionItemCiv";
5
5
  function SectionItem(civ) {
6
6
  const preview = usePreview();
7
+ console.log("SECTION ITEM");
8
+ return null;
7
9
  if (!preview) {
8
10
  return /* @__PURE__ */ jsx(SectionItemCiv, { ...civ });
9
11
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/Section/SectionItem.tsx"],
4
- "sourcesContent": ["import type { CivProps } from \"../../types\";\r\nimport { PreviewCivWrapper } from \"../Preview\";\r\nimport { usePreview } from \"../Preview/PreviewPageWrapper\";\r\nimport { SectionItemCiv } from \"./SectionItemCiv\";\r\n\r\nexport function SectionItem(civ: CivProps) {\r\n\tconst preview = usePreview();\r\n\r\n\tif (!preview) {\r\n\t\treturn <SectionItemCiv {...civ} />;\r\n\t}\r\n\r\n\treturn (\r\n\t\t<PreviewCivWrapper civid={civ.civid} {...preview}>\r\n\t\t\t<SectionItemCiv {...civ} />\r\n\t\t</PreviewCivWrapper>\r\n\t);\r\n}\r\n"],
5
- "mappings": "AASS;AART,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAExB,SAAS,YAAY,KAAe;AAC1C,QAAM,UAAU,WAAW;AAE3B,MAAI,CAAC,SAAS;AACb,WAAO,oBAAC,kBAAgB,GAAG,KAAK;AAAA,EACjC;AAEA,SACC,oBAAC,qBAAkB,OAAO,IAAI,OAAQ,GAAG,SACxC,8BAAC,kBAAgB,GAAG,KAAK,GAC1B;AAEF;",
4
+ "sourcesContent": ["import type { CivProps } from \"../../types\";\r\nimport { PreviewCivWrapper } from \"../Preview\";\r\nimport { usePreview } from \"../Preview/PreviewPageWrapper\";\r\nimport { SectionItemCiv } from \"./SectionItemCiv\";\r\n\r\nexport function SectionItem(civ: CivProps) {\r\n\tconst preview = usePreview();\r\n\tconsole.log(\"SECTION ITEM\");\r\n\treturn null;\r\n\tif (!preview) {\r\n\t\treturn <SectionItemCiv {...civ} />;\r\n\t}\r\n\r\n\treturn (\r\n\t\t<PreviewCivWrapper civid={civ.civid} {...preview}>\r\n\t\t\t<SectionItemCiv {...civ} />\r\n\t\t</PreviewCivWrapper>\r\n\t);\r\n}\r\n"],
5
+ "mappings": "AAUS;AATT,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAExB,SAAS,YAAY,KAAe;AAC1C,QAAM,UAAU,WAAW;AAC3B,UAAQ,IAAI,cAAc;AAC1B,SAAO;AACP,MAAI,CAAC,SAAS;AACb,WAAO,oBAAC,kBAAgB,GAAG,KAAK;AAAA,EACjC;AAEA,SACC,oBAAC,qBAAkB,OAAO,IAAI,OAAQ,GAAG,SACxC,8BAAC,kBAAgB,GAAG,KAAK,GAC1B;AAEF;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useComponentMap } from "../../contexts";
3
3
  function SectionItemCiv(civ) {
4
4
  const map = useComponentMap();
5
+ return null;
5
6
  if (civ === void 0) {
6
7
  return /* @__PURE__ */ jsx(
7
8
  map.Error,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/Section/SectionItemCiv.tsx"],
4
- "sourcesContent": ["import { useComponentMap } from \"../../contexts\";\r\nimport type { CivProps } from \"../../types\";\r\n\r\nexport function SectionItemCiv(civ: CivProps) {\r\n\tconst map = useComponentMap();\r\n\r\n\tif (civ === undefined) {\r\n\t\treturn (\r\n\t\t\t<map.Error\r\n\t\t\t\tstatus={500}\r\n\t\t\t\tmessage=\"Is the CMS API running? I bet it isn't \uD83D\uDE09\"\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n\r\n\tconst Component = map.civs[civ.component];\r\n\r\n\tif (Component === undefined) {\r\n\t\treturn <map.Unknown {...civ} />;\r\n\t}\r\n\r\n\treturn <Component {...civ} />;\r\n}\r\n"],
5
- "mappings": "AAQG;AARH,SAAS,uBAAuB;AAGzB,SAAS,eAAe,KAAe;AAC7C,QAAM,MAAM,gBAAgB;AAE5B,MAAI,QAAQ,QAAW;AACtB,WACC;AAAA,MAAC,IAAI;AAAA,MAAJ;AAAA,QACA,QAAQ;AAAA,QACR,SAAQ;AAAA;AAAA,IACT;AAAA,EAEF;AAEA,QAAM,YAAY,IAAI,KAAK,IAAI,SAAS;AAExC,MAAI,cAAc,QAAW;AAC5B,WAAO,oBAAC,IAAI,SAAJ,EAAa,GAAG,KAAK;AAAA,EAC9B;AAEA,SAAO,oBAAC,aAAW,GAAG,KAAK;AAC5B;",
4
+ "sourcesContent": ["import { useComponentMap } from \"../../contexts\";\r\nimport type { CivProps } from \"../../types\";\r\n\r\nexport function SectionItemCiv(civ: CivProps) {\r\n\tconst map = useComponentMap();\r\n\r\n\treturn null;\r\n\r\n\tif (civ === undefined) {\r\n\t\treturn (\r\n\t\t\t<map.Error\r\n\t\t\t\tstatus={500}\r\n\t\t\t\tmessage=\"Is the CMS API running? I bet it isn't \uD83D\uDE09\"\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n\r\n\tconst Component = map.civs[civ.component];\r\n\r\n\tif (Component === undefined) {\r\n\t\treturn <map.Unknown {...civ} />;\r\n\t}\r\n\r\n\treturn <Component {...civ} />;\r\n}\r\n"],
5
+ "mappings": "AAUG;AAVH,SAAS,uBAAuB;AAGzB,SAAS,eAAe,KAAe;AAC7C,QAAM,MAAM,gBAAgB;AAE5B,SAAO;AAEP,MAAI,QAAQ,QAAW;AACtB,WACC;AAAA,MAAC,IAAI;AAAA,MAAJ;AAAA,QACA,QAAQ;AAAA,QACR,SAAQ;AAAA;AAAA,IACT;AAAA,EAEF;AAEA,QAAM,YAAY,IAAI,KAAK,IAAI,SAAS;AAExC,MAAI,cAAc,QAAW;AAC5B,WAAO,oBAAC,IAAI,SAAJ,EAAa,GAAG,KAAK;AAAA,EAC9B;AAEA,SAAO,oBAAC,aAAW,GAAG,KAAK;AAC5B;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
1
  export interface ErrorProps {
2
- status: number;
2
+ status?: number;
3
3
  message: string;
4
4
  }
@@ -1,2 +1,2 @@
1
1
  import type { CivProps } from "../../types";
2
- export declare function SectionItem(civ: CivProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SectionItem(civ: CivProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import type { CivProps } from "../../types";
2
- export declare function SectionItemCiv(civ: CivProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SectionItemCiv(civ: CivProps): import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleview/cms-foundation",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Provides helper types and components to assist when working with Granicus CMS Reactor.",
5
5
  "packageManager": "yarn@4.6.0+sha224.acd0786f07ffc6c933940eb65fc1d627131ddf5455bddcc295dc90fd",
6
6
  "scripts": {