@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.
@@ -812,9 +812,12 @@ function PlasmicHead(props) {
812
812
  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.
813
813
 
814
814
  return null;
815
- }
815
+ } // Helmet does not support React.Fragments, so we need to use `[<meta />,
816
+ // <meta />]` instead of `<><meta /><meta /></>`.
817
+
816
818
 
817
- return createElement(Head, null, props.image ? createElement(Fragment, null, createElement("meta", {
819
+ return createElement(Head, null, props.image ? [createElement("meta", {
820
+ key: "twitter:card",
818
821
  name: "twitter:card",
819
822
  content: "summary_large_image"
820
823
  }), createElement("meta", {
@@ -825,10 +828,11 @@ function PlasmicHead(props) {
825
828
  key: "twitter:image",
826
829
  name: "twitter:image",
827
830
  content: props.image
828
- })) : createElement("meta", {
831
+ })] : createElement("meta", {
832
+ key: "twitter:card",
829
833
  name: "twitter:card",
830
834
  content: "summary"
831
- }), props.title && createElement(Fragment, null, createElement("title", {
835
+ }), props.title && [createElement("title", {
832
836
  key: "title"
833
837
  }, props.title), createElement("meta", {
834
838
  key: "og:title",
@@ -838,7 +842,7 @@ function PlasmicHead(props) {
838
842
  key: "twitter:title",
839
843
  property: "twitter:title",
840
844
  content: props.title
841
- })), props.description && createElement(Fragment, null, createElement("meta", {
845
+ })], props.description && [createElement("meta", {
842
846
  key: "description",
843
847
  name: "description",
844
848
  content: props.description
@@ -850,7 +854,8 @@ function PlasmicHead(props) {
850
854
  key: "twitter:description",
851
855
  name: "twitter:description",
852
856
  content: props.description
853
- })), props.canonical && createElement("link", {
857
+ })], props.canonical && createElement("link", {
858
+ key: "canonical",
854
859
  ref: "canonical",
855
860
  href: props.canonical
856
861
  }));
@@ -858,7 +863,7 @@ function PlasmicHead(props) {
858
863
  var plasmicHeadMeta = {
859
864
  name: "hostless-plasmic-head",
860
865
  displayName: "Head",
861
- description: "Used to add page metadata to HEAD tag",
866
+ description: "Used to add page metadata to HTML <head />.",
862
867
  importName: "PlasmicHead",
863
868
  importPath: "@plasmicapp/react-web",
864
869
  isRepeatable: false,