@plasmicapp/react-web 0.2.109 → 0.2.110

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.
@@ -819,9 +819,12 @@ function PlasmicHead(props) {
819
819
  console.warn("Plasmic: Head meta tags are being ignored. To make them work, pass a Head component into PlasmicRootProvider."); // TODO: Link to doc about Head.
820
820
 
821
821
  return null;
822
- }
822
+ } // Helmet does not support React.Fragments, so we need to use `[<meta />,
823
+ // <meta />]` instead of `<><meta /><meta /></>`.
824
+
823
825
 
824
- return React.createElement(Head, null, props.image ? React.createElement(React.Fragment, null, React.createElement("meta", {
826
+ return React.createElement(Head, null, props.image ? [React.createElement("meta", {
827
+ key: "twitter:card",
825
828
  name: "twitter:card",
826
829
  content: "summary_large_image"
827
830
  }), React.createElement("meta", {
@@ -832,10 +835,11 @@ function PlasmicHead(props) {
832
835
  key: "twitter:image",
833
836
  name: "twitter:image",
834
837
  content: props.image
835
- })) : React.createElement("meta", {
838
+ })] : React.createElement("meta", {
839
+ key: "twitter:card",
836
840
  name: "twitter:card",
837
841
  content: "summary"
838
- }), props.title && React.createElement(React.Fragment, null, React.createElement("title", {
842
+ }), props.title && [React.createElement("title", {
839
843
  key: "title"
840
844
  }, props.title), React.createElement("meta", {
841
845
  key: "og:title",
@@ -845,7 +849,7 @@ function PlasmicHead(props) {
845
849
  key: "twitter:title",
846
850
  property: "twitter:title",
847
851
  content: props.title
848
- })), props.description && React.createElement(React.Fragment, null, React.createElement("meta", {
852
+ })], props.description && [React.createElement("meta", {
849
853
  key: "description",
850
854
  name: "description",
851
855
  content: props.description
@@ -857,7 +861,8 @@ function PlasmicHead(props) {
857
861
  key: "twitter:description",
858
862
  name: "twitter:description",
859
863
  content: props.description
860
- })), props.canonical && React.createElement("link", {
864
+ })], props.canonical && React.createElement("link", {
865
+ key: "canonical",
861
866
  ref: "canonical",
862
867
  href: props.canonical
863
868
  }));
@@ -865,7 +870,7 @@ function PlasmicHead(props) {
865
870
  var plasmicHeadMeta = {
866
871
  name: "hostless-plasmic-head",
867
872
  displayName: "Head",
868
- description: "Used to add page metadata to HEAD tag",
873
+ description: "Used to add page metadata to HTML <head />.",
869
874
  importName: "PlasmicHead",
870
875
  importPath: "@plasmicapp/react-web",
871
876
  isRepeatable: false,