fansunited-management-components 1.55.0-RC2 → 1.55.0-RC3
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.
package/index.es.js
CHANGED
|
@@ -35893,7 +35893,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35893
35893
|
country: "Country",
|
|
35894
35894
|
phoneCountryCode: "Phone country code",
|
|
35895
35895
|
phoneNumber: "Phone number"
|
|
35896
|
-
}, ne = ({ title: X }) => /* @__PURE__ */ c.jsx(_e, { title: X, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(dr, { color: "primary" }) }), se = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb:
|
|
35896
|
+
}, ne = ({ title: X }) => /* @__PURE__ */ c.jsx(_e, { title: X, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(dr, { color: "primary" }) }), se = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 2 }, children: [
|
|
35897
35897
|
/* @__PURE__ */ c.jsx(
|
|
35898
35898
|
Dr,
|
|
35899
35899
|
{
|
|
@@ -35920,7 +35920,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35920
35920
|
}
|
|
35921
35921
|
)
|
|
35922
35922
|
] })
|
|
35923
|
-
] }), oe = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb:
|
|
35923
|
+
] }), oe = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 2 }, children: [
|
|
35924
35924
|
/* @__PURE__ */ c.jsxs(Fe, { children: [
|
|
35925
35925
|
/* @__PURE__ */ c.jsx(ze, { color: "primary", children: r.signInLabel }),
|
|
35926
35926
|
/* @__PURE__ */ c.jsx(Ln, { variant: "outlined", color: "neutral", value: l, defaultValue: "", onChange: (X) => u(X.target.value) }),
|
|
@@ -35931,7 +35931,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35931
35931
|
/* @__PURE__ */ c.jsx(Ln, { variant: "outlined", color: "neutral", value: d, defaultValue: "", onChange: (X) => f(X.target.value) }),
|
|
35932
35932
|
/* @__PURE__ */ c.jsx(On, { children: r.authenticationHandlerDescription })
|
|
35933
35933
|
] })
|
|
35934
|
-
] }), J = () => /* @__PURE__ */ c.jsxs(ln, { sx: {
|
|
35934
|
+
] }), J = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 2 }, children: [
|
|
35935
35935
|
/* @__PURE__ */ c.jsx(
|
|
35936
35936
|
jn,
|
|
35937
35937
|
{
|
|
@@ -35960,7 +35960,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35960
35960
|
A(he), $(he !== "STANDARD" ? null : "left");
|
|
35961
35961
|
};
|
|
35962
35962
|
return /* @__PURE__ */ c.jsxs(ie, { mt: 1, children: [
|
|
35963
|
-
e === "classic-quiz" || e === "poll" ? /* @__PURE__ */ c.jsxs(ie, { mb:
|
|
35963
|
+
e === "classic-quiz" || e === "poll" ? /* @__PURE__ */ c.jsxs(ie, { mb: 2, children: [
|
|
35964
35964
|
/* @__PURE__ */ c.jsxs(Fe, { sx: { mb: 1 }, children: [
|
|
35965
35965
|
/* @__PURE__ */ c.jsx(ze, { color: "primary", children: r.layoutTemplate }),
|
|
35966
35966
|
/* @__PURE__ */ c.jsxs(Ot, { value: I, size: "md", name: "layout_template", onChange: le, children: [
|
|
@@ -35970,7 +35970,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35970
35970
|
] }),
|
|
35971
35971
|
/* @__PURE__ */ c.jsx(On, { children: r.layoutTemplateDescription })
|
|
35972
35972
|
] }),
|
|
35973
|
-
/* @__PURE__ */ c.jsxs(Fe, { sx: { mb: 1 }, children: [
|
|
35973
|
+
/* @__PURE__ */ c.jsxs(Fe, { sx: { mb: e === "classic-quiz" ? 1 : 0 }, children: [
|
|
35974
35974
|
/* @__PURE__ */ c.jsx(ze, { color: "primary", children: r.imagePosition }),
|
|
35975
35975
|
/* @__PURE__ */ c.jsxs(
|
|
35976
35976
|
Ot,
|
|
@@ -35988,7 +35988,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35988
35988
|
),
|
|
35989
35989
|
/* @__PURE__ */ c.jsx(On, { children: r.imagePositionDescription })
|
|
35990
35990
|
] }),
|
|
35991
|
-
e === "classic-quiz" ? /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center",
|
|
35991
|
+
e === "classic-quiz" ? /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", children: [
|
|
35992
35992
|
/* @__PURE__ */ c.jsx(
|
|
35993
35993
|
ci,
|
|
35994
35994
|
{
|
|
@@ -36045,6 +36045,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36045
36045
|
/* @__PURE__ */ c.jsx(
|
|
36046
36046
|
ci,
|
|
36047
36047
|
{
|
|
36048
|
+
sx: { label: { mb: 1 } },
|
|
36048
36049
|
defaultValue: v,
|
|
36049
36050
|
label: r.addCampaignInfo,
|
|
36050
36051
|
labelPosition: "end",
|
|
@@ -36057,7 +36058,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36057
36058
|
}
|
|
36058
36059
|
),
|
|
36059
36060
|
v && J(),
|
|
36060
|
-
/* @__PURE__ */ c.jsxs(ie, { position: "relative", mb:
|
|
36061
|
+
/* @__PURE__ */ c.jsxs(ie, { position: "relative", mb: 2, children: [
|
|
36061
36062
|
/* @__PURE__ */ c.jsx(
|
|
36062
36063
|
Jc,
|
|
36063
36064
|
{
|
|
@@ -36086,7 +36087,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36086
36087
|
}
|
|
36087
36088
|
) })
|
|
36088
36089
|
] }),
|
|
36089
|
-
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(dr, {}), sx: { mb:
|
|
36090
|
+
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(dr, {}), sx: { mb: 2, width: "fit-content" }, children: /* @__PURE__ */ c.jsxs(pe, { color: "primary", fontSize: 14, fontWeight: 500, children: [
|
|
36090
36091
|
r.divElementTextInfo,
|
|
36091
36092
|
/* @__PURE__ */ c.jsx(Mi, { href: "https://docs.fansunitedmedia.com/docs/user-centric-widgets#/", underline: "always", target: "_blank", rel: "noopener noreferrer", children: "User-centric widgets" })
|
|
36092
36093
|
] }) })
|
package/index.umd.js
CHANGED
|
@@ -2485,7 +2485,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2485
2485
|
data-image-position="${k}"`:"",L=`
|
|
2486
2486
|
data-show-answer-explanations="${Y}"`,U=`<div
|
|
2487
2487
|
data-component="fu-widget"${T}${N}${te}${R}${L}${V}${j}${$}${M}${H}${Q}
|
|
2488
|
-
></div>`,W={fullName:"Full name",firstName:"First name",lastName:"Last name",email:"Email",gender:"Gender",country:"Country",phoneCountryCode:"Phone country code",phoneNumber:"Phone number"},re=({title:Z})=>c.jsx(v.Tooltip,{title:Z,sx:{maxWidth:300},children:c.jsx(ir,{color:"primary"})}),se=()=>c.jsxs(v.Card,{sx:{mb:
|
|
2488
|
+
></div>`,W={fullName:"Full name",firstName:"First name",lastName:"Last name",email:"Email",gender:"Gender",country:"Country",phoneCountryCode:"Phone country code",phoneNumber:"Phone number"},re=({title:Z})=>c.jsx(v.Tooltip,{title:Z,sx:{maxWidth:300},children:c.jsx(ir,{color:"primary"})}),se=()=>c.jsxs(v.Card,{sx:{mb:2},children:[c.jsx(Ar,{label:"",values:h,allValues:Object.keys(W),valuesMap:W,onChange:Z=>p(Z)}),c.jsxs(v.FormControl,{sx:{mb:1},children:[c.jsx(v.FormLabel,{color:"primary",children:r.leadPosition}),c.jsxs(v.Select,{value:m,size:"md",name:"lead_position",onChange:(Z,he)=>g(he==="before"?"before":"after"),children:[c.jsx(v.Option,{value:"before",children:"Before"}),c.jsx(v.Option,{value:"after",children:"After"})]})]})]}),ae=()=>c.jsxs(v.Card,{sx:{mb:2},children:[c.jsxs(v.FormControl,{children:[c.jsx(v.FormLabel,{color:"primary",children:r.signInLabel}),c.jsx(v.Input,{variant:"outlined",color:"neutral",value:l,defaultValue:"",onChange:Z=>u(Z.target.value)}),c.jsx(v.FormHelperText,{children:r.signInLabelDescription})]}),c.jsxs(v.FormControl,{children:[c.jsx(v.FormLabel,{color:"primary",children:r.authenticationHandler}),c.jsx(v.Input,{variant:"outlined",color:"neutral",value:d,defaultValue:"",onChange:Z=>f(Z.target.value)}),c.jsx(v.FormHelperText,{children:r.authenticationHandlerDescription})]})]}),X=()=>c.jsxs(v.Card,{sx:{mb:2},children:[c.jsx(xn,{label:r.id,placeholder:"",defaultValue:S,required:!1,size:"md",endDecorator:c.jsx(re,{title:r.campaignIdInfoMessage}),onChange:Z=>C(Z.target.value)}),c.jsx(xn,{label:r.name,placeholder:"",defaultValue:I,required:!1,size:"md",endDecorator:c.jsx(re,{title:r.campaignNameInfoMessage}),onChange:Z=>y(Z.target.value)})]}),le=(Z,he)=>{E(he),F(he!=="STANDARD"?null:"left")};return c.jsxs(v.Box,{mt:1,children:[e==="classic-quiz"||e==="poll"?c.jsxs(v.Box,{mb:2,children:[c.jsxs(v.FormControl,{sx:{mb:1},children:[c.jsx(v.FormLabel,{color:"primary",children:r.layoutTemplate}),c.jsxs(v.Select,{value:A,size:"md",name:"layout_template",onChange:le,children:[c.jsx(v.Option,{value:"STANDARD",children:"Standard"}),c.jsx(v.Option,{value:"SPLIT",children:"Split"}),c.jsx(v.Option,{value:"OVERLAY",children:"Overlay"})]}),c.jsx(v.FormHelperText,{children:r.layoutTemplateDescription})]}),c.jsxs(v.FormControl,{sx:{mb:e==="classic-quiz"?1:0},children:[c.jsx(v.FormLabel,{color:"primary",children:r.imagePosition}),c.jsxs(v.Select,{value:k,size:"md",name:"image_position",disabled:A!=="STANDARD",onChange:(Z,he)=>F(he),children:[c.jsx(v.Option,{value:"left",children:"Left"}),c.jsx(v.Option,{value:"right",children:"Right"})]}),c.jsx(v.FormHelperText,{children:r.imagePositionDescription})]}),e==="classic-quiz"?c.jsxs(v.Box,{display:"flex",alignItems:"center",children:[c.jsx(ui,{defaultValue:Y,label:r.showAnswerExplanations,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:!1,onChange:Z=>{O(Z)}}),c.jsx(v.Tooltip,{title:r.showAnswerExplanationsTooltip,sx:{ml:2,maxWidth:300},children:c.jsx(ir,{color:"primary"})})]}):c.jsx(c.Fragment,{})]}):c.jsx(c.Fragment,{}),c.jsxs(v.Box,{display:"flex",mb:1,children:[c.jsx(ui,{defaultValue:i,label:r.configureLeads,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:n!=="LEAD",onChange:Z=>{Z===!1&&(p([]),g("before")),o(Z)}}),n!=="LEAD"&&c.jsx(v.Tooltip,{title:r.configureLeadsDisabledMessage,sx:{ml:2,maxWidth:300},children:c.jsx(ir,{color:"primary"})})]}),i&&se(),c.jsxs(v.Box,{display:"flex",mb:1,children:[c.jsx(ui,{defaultValue:a,label:r.configureSignIn,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:n!=="REGISTERED",onChange:Z=>{Z===!1&&(u(""),f("")),s(Z)}}),n!=="REGISTERED"&&c.jsx(v.Tooltip,{title:r.configureSignInDisabledMessage,sx:{ml:2,maxWidth:300},children:c.jsx(ir,{color:"primary"})})]}),a&&ae(),c.jsx(ui,{sx:{label:{mb:1}},defaultValue:b,label:r.addCampaignInfo,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:!1,onChange:Z=>{Z===!1&&(C(""),y("")),w(Z)}}),b&&X(),c.jsxs(v.Box,{position:"relative",mb:2,children:[c.jsx(v.Textarea,{value:U,minRows:"5",maxRows:"20",readOnly:!0,onMouseDown:Z=>Z.preventDefault(),sx:{cursor:"default","&:hover":{cursor:"default"},"& textarea":{cursor:"default"}}}),c.jsx(v.Tooltip,{title:r.copyToClipboard,children:c.jsx(v.Button,{onClick:()=>{navigator.clipboard.writeText(U)},sx:{position:"absolute",top:"10px",right:"10px",zIndex:1},variant:"soft",color:"neutral",children:c.jsx(De.ContentCopy,{})})})]}),c.jsx(v.Alert,{variant:"outlined",color:"primary",startDecorator:c.jsx(ir,{}),sx:{mb:2,width:"fit-content"},children:c.jsxs(v.Typography,{color:"primary",fontSize:14,fontWeight:500,children:[r.divElementTextInfo,c.jsx(v.Link,{href:"https://docs.fansunitedmedia.com/docs/user-centric-widgets#/",underline:"always",target:"_blank",rel:"noopener noreferrer",children:"User-centric widgets"})]})})]})},pF=["load-more","limited"],gF={"load-more":"Load more",limited:"Limited"},mF=({entityId:e,labels:t})=>{const[n,r]=x.useState(!1),[i,o]=x.useState(""),[a,s]=x.useState(""),[l,u]=x.useState(""),[d,f]=x.useState(10),[h,p]=x.useState(2),[m,g]=x.useState("load-more"),b=`
|
|
2489
2489
|
data-content-id="${e}"`,w=i?`
|
|
2490
2490
|
data-classic-quiz-url="${i}"`:"",S=a?`
|
|
2491
2491
|
data-either-or-url="${a}"`:"",C=l?`
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEmbedCode.d.ts","sourceRoot":"","sources":["../../../../src/components/WidgetEmbedCode/WidgetEmbedCode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA2BnD,KAAK,qBAAqB,GAAG;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,EAAE,MAAM,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,MAAM,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,6BAA6B,EAAE,MAAM,CAAC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,8BAA8B,EAAE,MAAM,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC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