@apollosproject/canvas-embeds 2.1.486 → 2.1.487

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/widget/index.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apollosproject/canvas-embeds",
3
3
  "description": "Apollos React embed widgets",
4
- "version": "2.1.486",
4
+ "version": "2.1.487",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",
package/widget/index.js CHANGED
@@ -721,7 +721,7 @@ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var A0=v0(K,Z0,S0,c0,z0+
721
721
  height
722
722
  url
723
723
  }
724
- `);const QD1=({church:a,feature:e,isInteractionEnabled:r=!1,userProfile:n})=>{var o;const l=typeof window<"u"&&((o=window.ENV)==null?void 0:o.ENABLE_CONNECT_BUTTON)===!0;switch(e.__typename){case"ActionBarFeature":return w.jsx(_C1,{feature:e},e.id);case"HtmlFeature":return w.jsx(aq,{feature:e},e.id);case"ScriptureFeature":return w.jsx(SC1,{feature:e},e.id);case"QuestionBlockFeature":return w.jsx(oD1,{feature:e,church:a,enableCTA:r},e.id);case"PollFeature":return w.jsx(gD1,{feature:e,church:a},e.id);case"ActionListFeature":return w.jsx(CC1,{feature:e},e.id);case"EventBlockFeature":return w.jsx(MN1,{feature:e},e.id);case"ButtonFeature":return w.jsx(VN1,{feature:e},e.id);case"ConnectButtonFeature":return l?w.jsx(LI1,{feature:e,currentChurch:a,userProfile:n},e.id):null;case"ChipListFeature":return w.jsx(FI1,{feature:e},e.id);case"VerticalCardListFeature":return w.jsx(jI1,{feature:e},e.id);case"HeroListFeature":return w.jsx(PI1,{feature:e},e.id);case"HorizontalCardListFeature":return w.jsx(kI1,{feature:e},e.id);case"HorizontalMediaListFeature":return w.jsx(qI1,{feature:e},e.id);case"LinkEmbedFeature":return w.jsx(ND1,{feature:e},e.id);case"WebviewFeature":return w.jsx(YD1,{feature:e},e.id);default:return console.error("Feature component: Unknown feature type - this will cause the crash!",{__typename:e.__typename,id:e.id,type:e.type,data:e.data,fullFeature:e}),null}},D$=({church:a,features:e,isInteractionEnabled:r=!1,userProfile:n})=>w.jsx(w.Fragment,{children:e==null?void 0:e.map((l,o)=>l?w.jsx("div",{className:o===0?"":"mt-8",children:w.jsx(QD1,{feature:l,church:a,isInteractionEnabled:r,userProfile:n})},l.id):null)});h2(`
724
+ `);const QD1=({church:a,feature:e,isInteractionEnabled:r=!1,userProfile:n})=>{var o;const l=typeof window<"u"&&((o=window.ENV)==null?void 0:o.ENABLE_CONNECT_BUTTON)===!0;switch(e.__typename){case"ActionBarFeature":return w.jsx(_C1,{feature:e},e.id);case"HtmlFeature":return w.jsx(aq,{feature:e},e.id);case"ScriptureFeature":return w.jsx(SC1,{feature:e},e.id);case"QuestionBlockFeature":return w.jsx(oD1,{feature:e,church:a,enableCTA:r},e.id);case"PollFeature":return w.jsx(gD1,{feature:e,church:a},e.id);case"ActionListFeature":return w.jsx(CC1,{feature:e},e.id);case"EventBlockFeature":return w.jsx(MN1,{feature:e},e.id);case"ButtonFeature":return w.jsx(VN1,{feature:e},e.id);case"ConnectButtonFeature":return l?w.jsx(LI1,{feature:e,currentChurch:a,userProfile:n},e.id):null;case"ChipListFeature":return w.jsx(FI1,{feature:e},e.id);case"VerticalCardListFeature":return w.jsx(jI1,{feature:e},e.id);case"HeroListFeature":return w.jsx(PI1,{feature:e},e.id);case"HorizontalCardListFeature":return w.jsx(kI1,{feature:e},e.id);case"HorizontalMediaListFeature":return w.jsx(qI1,{feature:e},e.id);case"LinkEmbedFeature":return w.jsx(ND1,{feature:e},e.id);case"WebviewFeature":return w.jsx(YD1,{feature:e},e.id);default:return console.error("Feature component: Unknown feature type - this will cause the crash!",{__typename:e.__typename,id:e.id,type:e.type,data:e.data,fullFeature:e}),null}},D$=({church:a,features:e,isInteractionEnabled:r=!1,userProfile:n})=>{const l=e==null?void 0:e.filter(o=>{if(!o)return!1;if(o.__typename==="HtmlFeature"){const m=o.content;return m&&m.trim()!==""&&m!=="<p></p>"}return!0});return w.jsx(w.Fragment,{children:l==null?void 0:l.map((o,c)=>o?w.jsx("div",{className:c===0?"":"mt-8",children:w.jsx(QD1,{feature:o,church:a,isInteractionEnabled:r,userProfile:n})},o.id):null)})};h2(`
725
725
  fragment FeatureFeedFragment on FeatureFeed {
726
726
  id
727
727
  features {