@apollosproject/canvas-embeds 2.1.430 → 2.1.432

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.430",
4
+ "version": "2.1.432",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",
package/widget/index.js CHANGED
@@ -685,7 +685,7 @@ Valid keys: `+JSON.stringify(Object.keys(t0),null," "));var Z0=g0(Y,A0,b0,i0,$0
685
685
  }
686
686
  }
687
687
  }
688
- `);const uI1=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]);var dI1=Object.defineProperty,pI1=Object.defineProperties,hI1=Object.getOwnPropertyDescriptors,Tq=Object.getOwnPropertySymbols,fI1=Object.prototype.hasOwnProperty,vI1=Object.prototype.propertyIsEnumerable,Iq=(a,e,r)=>e in a?dI1(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,gI1=(a,e)=>{for(var r in e||(e={}))fI1.call(e,r)&&Iq(a,r,e[r]);if(Tq)for(var r of Tq(e))vI1.call(e,r)&&Iq(a,r,e[r]);return a},AI1=(a,e)=>pI1(a,hI1(e));const O$=p.forwardRef((a,e)=>t.createElement(y,AI1(gI1({ref:e},a),{weights:uI1})));O$.displayName="Circle";const ZI1=Object.freeze(Object.defineProperty({__proto__:null,Circle:O$},Symbol.toStringTag,{value:"Module"})),yI1=({poll:a,church:e})=>{var m;const r=A$(),[n,l]=p.useState(!1),o=()=>{l(!0)},c=(a==null?void 0:a.totalOptionVotes)||0;return a?S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"bg-system-chrome shadow-sm dark:bg-material-regular-dark rounded-xl backdrop-blur-md p-4 my-4 dark:border-white/5 dark:border",children:[S.jsx("div",{className:"mt-0 flex flex-row gap-4 items-center justify-between",children:S.jsx("div",{className:"font-semibold text-2xl flex-1",children:a==null?void 0:a.title})}),S.jsx("div",{className:"mt-5 flex flex-col gap-3",children:(m=a==null?void 0:a.options)==null?void 0:m.map((u,h)=>S.jsxs("div",{className:"flex flex-row gap-2 items-center text-fg-secondary cursor-pointer border rounded-3xl p-2",onClick:o,children:[S.jsx(O$,{weight:"thin",size:24}),S.jsx("span",{className:"flex-1",children:u==null?void 0:u.value})]},`option-${(u==null?void 0:u.id)||h}`))}),S.jsx("div",{className:"mt-3 flex flex-row gap-4 items-center justify-between px-1",children:S.jsxs("div",{className:"text-fg-secondary text-sm text-action",children:[c," ",c===1?"response":"responses"]})})]}),S.jsx(s$,{type:I4.Vote,currentPageParams:r,isOpen:n,setIsOpen:l,church:e})]}):void 0},bI1=({feature:a,church:e})=>{var r;return(r=a.poll)!=null&&r.status&&a.poll.status!=="Inactive"?S.jsx(yI1,{poll:a.poll,church:e}):null};v2(`
688
+ `);const uI1=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]);var dI1=Object.defineProperty,pI1=Object.defineProperties,hI1=Object.getOwnPropertyDescriptors,Tq=Object.getOwnPropertySymbols,fI1=Object.prototype.hasOwnProperty,vI1=Object.prototype.propertyIsEnumerable,Iq=(a,e,r)=>e in a?dI1(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,gI1=(a,e)=>{for(var r in e||(e={}))fI1.call(e,r)&&Iq(a,r,e[r]);if(Tq)for(var r of Tq(e))vI1.call(e,r)&&Iq(a,r,e[r]);return a},AI1=(a,e)=>pI1(a,hI1(e));const O$=p.forwardRef((a,e)=>t.createElement(y,AI1(gI1({ref:e},a),{weights:uI1})));O$.displayName="Circle";const ZI1=Object.freeze(Object.defineProperty({__proto__:null,Circle:O$},Symbol.toStringTag,{value:"Module"})),yI1=({poll:a,church:e})=>{var m;const r=A$(),[n,l]=p.useState(!1),o=()=>{l(!0)},c=(a==null?void 0:a.totalOptionVotes)||0;return a?S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"bg-system-chrome shadow-sm dark:bg-material-regular-dark rounded-xl backdrop-blur-md p-4 my-4 dark:border-white/5 dark:border",children:[S.jsx("div",{className:"mt-0 flex flex-row gap-4 items-center justify-between",children:S.jsx("div",{className:"font-semibold text-2xl flex-1",children:a==null?void 0:a.title})}),S.jsx("div",{className:"mt-5 flex flex-col gap-3",children:(m=a==null?void 0:a.options)==null?void 0:m.map((u,h)=>S.jsxs("div",{className:"flex flex-row gap-2 items-center text-fg-secondary dark:text-fg-primary-dark cursor-pointer border rounded-3xl p-2",onClick:o,children:[S.jsx(O$,{weight:"thin",size:24}),S.jsx("span",{className:"flex-1",children:u==null?void 0:u.value})]},`option-${(u==null?void 0:u.id)||h}`))}),S.jsx("div",{className:"mt-3 flex flex-row gap-4 items-center justify-between px-1",children:S.jsxs("div",{className:"text-fg-secondary dark:text-fg-secondary-dark text-sm text-action",children:[c," ",c===1?"response":"responses"]})})]}),S.jsx(s$,{type:I4.Vote,currentPageParams:r,isOpen:n,setIsOpen:l,church:e})]}):void 0},bI1=({feature:a,church:e})=>{var r;return(r=a.poll)!=null&&r.status&&a.poll.status!=="Inactive"?S.jsx(yI1,{poll:a.poll,church:e}):null};v2(`
689
689
  fragment PollFeatureFragment on PollFeature {
690
690
  poll {
691
691
  id