@apollosproject/canvas-embeds 2.1.2240 → 2.1.2241

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.2240",
4
+ "version": "2.1.2241",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
package/widget/index.js CHANGED
@@ -540,7 +540,7 @@ React keys must be passed directly to JSX without using spread:
540
540
  ...FeatureContentCardFragment
541
541
  }
542
542
  }
543
- `);var NNr=({feature:e})=>{let{isInline:t}=fw();if(!e.heroCard&&!e.actions?.length)return null;let n=(e.actions??[]).filter(e=>!!e);return(0,q.jsxs)(`div`,{className:`mb-8 flex flex-col gap-y-4`,children:[(0,q.jsx)(UC,{variant:`section`,title:e.title,subtitle:e.subtitle}),e.heroCard?(0,q.jsx)(jNr,{card:e.heroCard,titleVariant:`hero`}):null,n.length?t?(0,q.jsx)(`div`,{"data-testid":`hero-list-actions`,className:`mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 md:grid-cols-3`,children:n.map(e=>(0,q.jsx)(JCr,{item:e,tile:!0},e.id))}):(0,q.jsx)(PC,{className:`mt-2`,"data-testid":`hero-list-actions`,children:n.map(e=>(0,q.jsx)(JCr,{item:e},e.id))}):null,e.primaryAction?(0,q.jsx)(YCr,{action:e.primaryAction}):null]})};tw(`
543
+ `);var NNr=({feature:e})=>{let{isInline:t}=fw();if(!e.heroCard&&!e.actions?.length)return null;let n=(e.actions??[]).filter(e=>!!e),r=n.some(e=>aAe(e.action,e.relatedNode));return(0,q.jsxs)(`div`,{className:`mb-8 flex flex-col gap-y-4`,children:[(0,q.jsx)(UC,{variant:`section`,title:e.title,subtitle:e.subtitle}),e.heroCard?(0,q.jsx)(jNr,{card:e.heroCard,titleVariant:`hero`}):null,n.length?t?(0,q.jsx)(`div`,{"data-testid":`hero-list-actions`,className:`mt-2 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 md:grid-cols-3`,children:n.map(e=>(0,q.jsx)(JCr,{item:e,tile:!0},e.id))}):(0,q.jsx)(PC,{className:`mt-2`,"data-testid":`hero-list-actions`,children:n.map(e=>(0,q.jsx)(JCr,{item:e},e.id))}):null,e.primaryAction&&r?(0,q.jsx)(YCr,{action:e.primaryAction}):null]})};tw(`
544
544
  fragment HeroListFeatureFragment on HeroListFeature {
545
545
  title
546
546
  subtitle