fansunited-frontend-components 0.0.11-RC2 → 0.0.11-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/components.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { ClassicQuizPlayProps, PollVoteProps, CollectLeadProps } from 'fansunited-frontend-core';
1
+ import { ClassicQuizPlayProps, PollVoteProps } from 'fansunited-frontend-core';
2
2
 
3
3
  export declare const ClassicQuizPlay: React.FC<ClassicQuizPlayProps>;
4
4
  export declare const PollVote: React.FC<PollVoteProps>;
5
- export declare const CollectLead: React.FC<CollectLeadProps>;
6
5
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAKlC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CACjC,CAAC;AAE3B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAqB,CAAC;AAEnE,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAwB,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI/E,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CACjC,CAAC;AAE3B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAqB,CAAC"}
package/components.js CHANGED
@@ -5,7 +5,6 @@ import * as U from "react";
5
5
  import xt, { forwardRef as gu, useContext as Hl, useState as lt, useCallback as xr, useEffect as wt, createContext as Wd, useRef as Hr, createElement as fu, useMemo as Rn } from "react";
6
6
  import * as pu from "react-dom";
7
7
  import { createPortal as Nd } from "react-dom";
8
- import "fansunited-frontend-core";
9
8
  function hu(e) {
10
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
10
  }
@@ -5639,7 +5638,7 @@ const Hi = Kr(), ai = {
5639
5638
  }, {
5640
5639
  CssVarsProvider: z2,
5641
5640
  useColorScheme: M2,
5642
- getInitColorSchemeScript: RS
5641
+ getInitColorSchemeScript: ES
5643
5642
  } = x2({
5644
5643
  themeId: Vi,
5645
5644
  theme: Hi,
@@ -24210,7 +24209,7 @@ const js = Yo(/* @__PURE__ */ a.jsx("path", {
24210
24209
  branding: n,
24211
24210
  fields: i = ["fullName", "email"],
24212
24211
  labels: r,
24213
- onClick: s
24212
+ onSuccessfulSubmit: s
24214
24213
  }) => {
24215
24214
  var u;
24216
24215
  const c = ne().textColor, d = ((u = n == null ? void 0 : n.colors) == null ? void 0 : u.secondaryColor) || ne().textColor, A = Ie().primary;
@@ -24256,16 +24255,12 @@ const js = Yo(/* @__PURE__ */ a.jsx("path", {
24256
24255
  onClick: s,
24257
24256
  fields: i,
24258
24257
  submitButtonLabel: r == null ? void 0 : r.submitButtonLabel,
24259
- onClickButtonLabel: r == null ? void 0 : r.onClickButtonLabel,
24258
+ onClickButtonLabel: r == null ? void 0 : r.onSuccessfulSubmitLabel,
24260
24259
  leadSuccessTitle: r == null ? void 0 : r.successTitle,
24261
24260
  leadSuccessDescription: r == null ? void 0 : r.successDescription
24262
24261
  }
24263
24262
  )
24264
24263
  ] });
24265
- }, Gi = (e) => e ? Ue() && e.mobile ? e.mobile || e.main || null : e.main || null : null, st = (e, t) => {
24266
- var n;
24267
- let o = null;
24268
- return t !== pe.OVERLAY ? o = Gi(e.images) : o = ((n = e.images) == null ? void 0 : n.cover) || "", o || (o = e.imagePlaceholder), o;
24269
24264
  }, W8 = ({ fonts: e }) => (wt(() => {
24270
24265
  const t = document.querySelectorAll(
24271
24266
  'link[data-font-loader="true"]'
@@ -24349,6 +24344,10 @@ const js = Yo(/* @__PURE__ */ a.jsx("path", {
24349
24344
  }
24350
24345
  )
24351
24346
  ] });
24347
+ }, Gi = (e) => e ? Ue() && e.mobile ? e.mobile || e.main || null : e.main || null : null, st = (e, t) => {
24348
+ var n;
24349
+ let o = null;
24350
+ return t !== pe.OVERLAY ? o = Gi(e.images) : o = ((n = e.images) == null ? void 0 : n.cover) || "", o || (o = e.imagePlaceholder), o;
24352
24351
  };
24353
24352
  var N8 = Object.create, Ea = Object.defineProperty, G8 = Object.getOwnPropertyDescriptor, Z8 = Object.getOwnPropertyNames, X8 = Object.getPrototypeOf, _8 = Object.prototype.hasOwnProperty, $8 = (e, t, o) => t in e ? Ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, e4 = (e, t) => () => (e && (t = e(e = 0)), t), Ra = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), t4 = (e, t) => {
24354
24353
  for (var o in t) Ea(e, o, { get: t[o], enumerable: !0 });
@@ -25796,7 +25795,7 @@ const L4 = (e, t) => {
25796
25795
  title: C,
25797
25796
  description: h,
25798
25797
  submitButtonLabel: x,
25799
- onClickButtonLabel: io("classicQuiz.buttons.start"),
25798
+ onSuccessfulSubmitLabel: io("classicQuiz.buttons.start"),
25800
25799
  successTitle: b,
25801
25800
  successDescription: v
25802
25801
  };
@@ -25805,7 +25804,7 @@ const L4 = (e, t) => {
25805
25804
  {
25806
25805
  sdk: e,
25807
25806
  content: I,
25808
- onClick: c,
25807
+ onSuccessfulSubmit: c,
25809
25808
  branding: F,
25810
25809
  campaign: y,
25811
25810
  fields: d,
@@ -31829,7 +31828,7 @@ const L3 = (e) => {
31829
31828
  title: C,
31830
31829
  description: h,
31831
31830
  submitButtonLabel: x,
31832
- onClickButtonLabel: io("poll.buttons.start"),
31831
+ onSuccessfulSubmitLabel: io("poll.buttons.start"),
31833
31832
  successTitle: b,
31834
31833
  successDescription: v
31835
31834
  };
@@ -31838,7 +31837,7 @@ const L3 = (e) => {
31838
31837
  {
31839
31838
  sdk: e,
31840
31839
  content: I,
31841
- onClick: c,
31840
+ onSuccessfulSubmit: c,
31842
31841
  branding: F,
31843
31842
  campaign: y,
31844
31843
  fields: d,
@@ -37015,9 +37014,8 @@ const xS = (e) => {
37015
37014
  u,
37016
37015
  g
37017
37016
  ] });
37018
- }, KS = q3, PS = IS;
37017
+ }, RS = q3, KS = IS;
37019
37018
  export {
37020
- KS as ClassicQuizPlay,
37021
- tu as CollectLead,
37022
- PS as PollVote
37019
+ RS as ClassicQuizPlay,
37020
+ KS as PollVote
37023
37021
  };
package/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
1
  export { ClassicQuizPlay, PollVote } from './components';
2
- export { CollectLead } from '../../common/src';
3
- export type { CollectLeadProps } from '../../common/src';
4
2
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-frontend-components",
3
- "version": "0.0.11-RC2",
3
+ "version": "0.0.11-RC3",
4
4
  "description": "Various user centric components for Fans United features",
5
5
  "main": "components.js",
6
6
  "types": "components.d.ts",