@verifiedinc-public/shared-ui-elements 9.11.1-beta.1 → 9.12.0

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 (27) hide show
  1. package/dist/components/BrandFilterInput/types.d.ts +0 -2
  2. package/dist/components/CredentialRequestsEditor/components/DataFieldOptionType.mjs +2 -2
  3. package/dist/components/chart/BillableEventsTable/BillableEventsTable.mjs +1 -1
  4. package/dist/components/chart/BillableEventsTable/BillableEventsTable.types.d.ts +0 -2
  5. package/dist/components/chart/BillableEventsTable/BillableEventsTableDataMapper.d.ts +0 -2
  6. package/dist/components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs +1 -1
  7. package/dist/components/chart/ConversionOverTimeChart/index.d.ts +1 -8
  8. package/dist/components/chart/ConversionOverTimeChart/index.mjs +1 -1
  9. package/dist/components/chart/SeriesChart/SeriesChart.map.d.ts +0 -2
  10. package/dist/components/chart/SeriesChart/SeriesChart.map.mjs +1 -1
  11. package/dist/components/chart/SeriesChart/index.d.ts +1 -3
  12. package/dist/components/chart/SeriesPercentageChartLegend/index.d.ts +0 -3
  13. package/dist/components/chart/SeriesPercentageChartLegend/index.mjs +1 -1
  14. package/dist/components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.d.ts +1 -1
  15. package/dist/components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs +1 -1
  16. package/dist/components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.types.d.ts +0 -1
  17. package/dist/components/index.d.ts +0 -1
  18. package/dist/components/index.mjs +1 -1
  19. package/dist/index.mjs +1 -1
  20. package/package.json +1 -1
  21. package/dist/components/BrandChallengePromptsTooltip/BrandChallengePromptsTooltip.d.ts +0 -13
  22. package/dist/components/BrandChallengePromptsTooltip/BrandChallengePromptsTooltip.mjs +0 -1
  23. package/dist/components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.d.ts +0 -17
  24. package/dist/components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs +0 -1
  25. package/dist/components/BrandChallengePromptsTooltip/format.d.ts +0 -9
  26. package/dist/components/BrandChallengePromptsTooltip/format.mjs +0 -1
  27. package/dist/components/BrandChallengePromptsTooltip/index.d.ts +0 -3
@@ -1,4 +1,3 @@
1
- import { ChallengePrompt } from '../BrandChallengePromptsTooltip';
2
1
  export interface Brands {
3
2
  brandUuid: string;
4
3
  brandName: string;
@@ -9,7 +8,6 @@ export interface Brands {
9
8
  isLiveBrand?: boolean;
10
9
  isApproved?: boolean;
11
10
  additionalData?: any;
12
- inputChallengePrompts?: readonly ChallengePrompt[];
13
11
  }
14
12
  export type BrandFilter = {
15
13
  name: string;
@@ -1,3 +1,3 @@
1
- "use strict";import{useMemo as c}from"react";import{useFormContext as h,useController as y}from"react-hook-form";import{Autocomplete as v,TextField as C}from"@mui/material";import{prettyField as F}from"../utils/prettyField.mjs";import{buildDataFieldValue as x}from"../utils/buildDataFieldValue.mjs";import{useCredentialRequestField as g}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldSection as b}from"./DataFieldSection.mjs";import{jsx as n,jsxs as S,Fragment as D}from"react/jsx-runtime";function P(){const e=g(),d=h(),u=y({name:`${e?.path}`}),o=c(()=>{const t={PhoneCredential:0,FullNameCredential:1,AddressCredential:2,BirthDateCredential:3,SsnCredential:4,SexCredential:5,DriversLicenseCredential:6},r=e?.path??"",i=e?.index??0,a=r.split(".").slice(0,-1).join("."),m=d.getValues(a),f=new Set(m?.map((l,s)=>s!==i?l.type:null).filter(l=>l!==null)??[]);return Object.keys(t).map(l=>({label:F(l),id:l})).filter(l=>!f.has(l.id)).sort((l,s)=>t[l.id]-t[s.id])},[e,d]),p=c(()=>{var t,r;const i=(r=(t=u.field)==null?void 0:t.value)==null?void 0:r.type;return o?.find(a=>a.id===i)},[u,o]);return n(b,{title:"Field Type",description:"What type of user data this field is for",tip:S(D,{children:[n("pre",{children:"POST /1-click"}),n("pre",{children:`{
1
+ "use strict";import{useMemo as c}from"react";import{useFormContext as h,useController as y}from"react-hook-form";import{Autocomplete as v,TextField as C}from"@mui/material";import{prettyField as F}from"../utils/prettyField.mjs";import{buildDataFieldValue as x}from"../utils/buildDataFieldValue.mjs";import{useCredentialRequestField as g}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldSection as b}from"./DataFieldSection.mjs";import{jsx as o,jsxs as S,Fragment as P}from"react/jsx-runtime";function T(){const e=g(),s=h(),u=y({name:`${e?.path}`}),n=c(()=>{const t={PhoneCredential:0,FullNameCredential:1,AddressCredential:2,BirthDateCredential:3,SsnCredential:4,SexCredential:5},r=e?.path??"",i=e?.index??0,a=r.split(".").slice(0,-1).join("."),m=s.getValues(a),f=new Set(m?.map((l,d)=>d!==i?l.type:null).filter(l=>l!==null)??[]);return Object.keys(t).map(l=>({label:F(l),id:l})).filter(l=>!f.has(l.id)).sort((l,d)=>t[l.id]-t[d.id])},[e,s]),p=c(()=>{var t,r;const i=(r=(t=u.field)==null?void 0:t.value)==null?void 0:r.type;return n?.find(a=>a.id===i)},[u,n]);return o(b,{title:"Field Type",description:"What type of user data this field is for",tip:S(P,{children:[o("pre",{children:"POST /1-click"}),o("pre",{children:`{
2
2
  type: string
3
- }`})]}),children:n(v,{value:p,onChange:(t,r)=>{if(!r)return;const i=x(r.id),a={type:i.type,issuers:i.issuers,required:i.required,mandatory:i.mandatory,description:i.description,allowUserInput:i.allowUserInput,multi:i.multi,children:i.children};e?.fieldArray.update(e?.index,a)},options:o,disablePortal:!0,renderInput:t=>n(C,{...t,label:"Type",color:"success",size:"small",className:"original",fullWidth:!0,inputProps:{...t.inputProps,"data-testid":"custom-demo-dialog-data-field-type-input"},placeholder:"Choose a type..."}),disabled:(e?.level??0)>0})},JSON.stringify(p))}export{P as DataFieldOptionType};
3
+ }`})]}),children:o(v,{value:p,onChange:(t,r)=>{if(!r)return;const i=x(r.id),a={type:i.type,issuers:i.issuers,required:i.required,mandatory:i.mandatory,description:i.description,allowUserInput:i.allowUserInput,multi:i.multi,children:i.children};e?.fieldArray.update(e?.index,a)},options:n,disablePortal:!0,renderInput:t=>o(C,{...t,label:"Type",color:"success",size:"small",className:"original",fullWidth:!0,inputProps:{...t.inputProps,"data-testid":"custom-demo-dialog-data-field-type-input"},placeholder:"Choose a type..."}),disabled:(e?.level??0)>0})},JSON.stringify(p))}export{T as DataFieldOptionType};
@@ -1 +1 @@
1
- "use strict";import{TableContainer as B,Paper as x,Table as v,TableHead as L,TableRow as u,TableCell as a,TableBody as U,TableSortLabel as w}from"@mui/material";import{useEffect as D,useMemo as b}from"react";import{EmptyChartSection as P}from"../EmptyChartSection.mjs";import{LoadingChartSection as E}from"../LoadingChartSection.mjs";import{BillableProduct as I,BILLABLE_PRODUCTS as j}from"./BillableEventsTable.types.mjs";import{useBillableSort as M}from"./useBillableSort.hook.mjs";import{CopyableUuid as O}from"../../CopyableUuid/index.mjs";import{white as R}from"../../../styles/colors.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";import{LazyBrandChallengePromptsTooltip as z}from"../../BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";const A=["brand","integrationType"],K=({data:l,isLoading:k,isFetching:S,visibleProducts:y,onSortedDataChange:c,columnSlots:o,topLevelColumns:t=[]})=>{const{sortKey:g,sortDir:T,handleSort:C,sortedData:d}=M(l,A,"brand");D(()=>{c?.(d)},[d,c]);const m=b(()=>{const r=y??Object.values(I);return j.filter(n=>r.includes(n.product))},[y]),h=b(()=>new Set(t.map(r=>r.key)),[t]),f=b(()=>m.flatMap(r=>r.columns).filter(r=>!h.has(r.key)),[m,h]),i=(r,n,p="left")=>e(w,{active:g===r,direction:g===r?T:"asc",onClick:()=>C(r),sx:p==="right"?{flexDirection:"row"}:void 0,children:n});return!(l!=null&&l.length)&&k?e(E,{}):l!=null&&l.length?e(B,{component:x,sx:{opacity:S?.4:1},children:s(v,{sx:{backgroundColor:R},children:[s(L,{children:[s(u,{children:[e(a,{rowSpan:2,children:i("brand","Brand Name")}),e(a,{rowSpan:2,children:"Brand UUID"}),e(a,{rowSpan:2,children:i("integrationType","Integration Type")}),t.map(r=>e(a,{rowSpan:2,children:i(r.key,r.label)},r.key)),m.map(r=>{const n=r.columns.filter(p=>!h.has(p.key)).length;return n===0?null:e(a,{colSpan:n,align:"center",sx:{fontWeight:"bold",borderBottom:"none"},children:r.label},r.product)})]}),e(u,{children:f.map(r=>e(a,{align:"right",children:i(r.key,r.label,"right")},r.key))})]}),e(U,{children:d.map(r=>s(u,{children:[e(a,{children:e(z,{prompts:r.inputChallengePrompts,children:r.brand})}),e(a,{children:e(O,{uuid:r.brandUuid,label:"Brand UUID",variant:"button",head:6,tail:0,mono:!1,iconSx:{color:"success.main"},typographyProps:{variant:"inherit",color:"inherit"}})}),e(a,{children:r.integrationType}),t.map(n=>e(a,{children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key)),f.map(n=>e(a,{align:"right",children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key))]},r.brandUuid))})]})}):e(P,{})};export{K as BillableEventsTable};
1
+ "use strict";import{TableContainer as C,Paper as x,Table as v,TableHead as w,TableRow as u,TableCell as a,TableBody as U,TableSortLabel as D}from"@mui/material";import{useEffect as L,useMemo as b}from"react";import{EmptyChartSection as P}from"../EmptyChartSection.mjs";import{LoadingChartSection as E}from"../LoadingChartSection.mjs";import{BillableProduct as I,BILLABLE_PRODUCTS as j}from"./BillableEventsTable.types.mjs";import{useBillableSort as M}from"./useBillableSort.hook.mjs";import{CopyableUuid as O}from"../../CopyableUuid/index.mjs";import{white as R}from"../../../styles/colors.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";const K=["brand","integrationType"],_=({data:l,isLoading:f,isFetching:S,visibleProducts:y,onSortedDataChange:d,columnSlots:o,topLevelColumns:t=[]})=>{const{sortKey:g,sortDir:T,handleSort:B,sortedData:c}=M(l,K,"brand");L(()=>{d?.(c)},[c,d]);const h=b(()=>{const r=y??Object.values(I);return j.filter(n=>r.includes(n.product))},[y]),m=b(()=>new Set(t.map(r=>r.key)),[t]),k=b(()=>h.flatMap(r=>r.columns).filter(r=>!m.has(r.key)),[h,m]),i=(r,n,p="left")=>e(D,{active:g===r,direction:g===r?T:"asc",onClick:()=>B(r),sx:p==="right"?{flexDirection:"row"}:void 0,children:n});return!(l!=null&&l.length)&&f?e(E,{}):l!=null&&l.length?e(C,{component:x,sx:{opacity:S?.4:1},children:s(v,{sx:{backgroundColor:R},children:[s(w,{children:[s(u,{children:[e(a,{rowSpan:2,children:i("brand","Brand Name")}),e(a,{rowSpan:2,children:"Brand UUID"}),e(a,{rowSpan:2,children:i("integrationType","Integration Type")}),t.map(r=>e(a,{rowSpan:2,children:i(r.key,r.label)},r.key)),h.map(r=>{const n=r.columns.filter(p=>!m.has(p.key)).length;return n===0?null:e(a,{colSpan:n,align:"center",sx:{fontWeight:"bold",borderBottom:"none"},children:r.label},r.product)})]}),e(u,{children:k.map(r=>e(a,{align:"right",children:i(r.key,r.label,"right")},r.key))})]}),e(U,{children:c.map(r=>s(u,{children:[e(a,{children:r.brand}),e(a,{children:e(O,{uuid:r.brandUuid,label:"Brand UUID",variant:"button",head:6,tail:0,mono:!1,iconSx:{color:"success.main"},typographyProps:{variant:"inherit",color:"inherit"}})}),e(a,{children:r.integrationType}),t.map(n=>e(a,{children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key)),k.map(n=>e(a,{align:"right",children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key))]},r.brandUuid))})]})}):e(P,{})};export{_ as BillableEventsTable};
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ChartData } from '../BillableEventsProductTable';
3
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
4
3
  export declare enum BillableProduct {
5
4
  TEXT_TO_SIGNUP = "TEXT_TO_SIGNUP",
6
5
  ONE_CLICK_VERIFY = "ONE_CLICK_VERIFY",
@@ -24,7 +23,6 @@ export type BillableEventsTableRow = {
24
23
  integrationType: string;
25
24
  metrics: Record<string, number>;
26
25
  raw: ChartData;
27
- inputChallengePrompts?: readonly ChallengePrompt[];
28
26
  };
29
27
  export type BillableEventsTableProps = {
30
28
  data: BillableEventsTableRow[];
@@ -1,11 +1,9 @@
1
1
  import { BillableProduct, BillableEventsTableRow } from './BillableEventsTable.types';
2
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
3
2
  export declare function formatIntegrationType(type?: string): string;
4
3
  type Brand = {
5
4
  brandUuid: string;
6
5
  brandName: string;
7
6
  integrationType: string;
8
- inputChallengePrompts?: readonly ChallengePrompt[];
9
7
  };
10
8
  type ChartData = {
11
9
  brandUuid: string;
@@ -1 +1 @@
1
- "use strict";import{BILLABLE_PRODUCTS as b}from"./BillableEventsTable.types.mjs";const g={hosted:"SDK","non-hosted":"API","semi-hosted":"Semi-Hosted",sdk:"SDK",api:"API"};function l(o){return o?g[o.toLowerCase()]??o:""}const h=({productDataSets:o,brands:c})=>{var u;const s=new Map,i=new Map;for(const{product:t,data:d}of o){const e=b.find(n=>n.product===t);if(e)for(const n of d){if(!((u=n.interval)!=null&&u.length))continue;const r=s.get(n.brandUuid)??{};for(const a of e.columns){const p=n.interval.reduce((m,f)=>m+(Number(f[a.metricKey])||0),0);r[a.key]=(r[a.key]??0)+p}e.columns.some(a=>(r[a.key]??0)>0)&&!i.has(n.brandUuid)&&i.set(n.brandUuid,n),s.set(n.brandUuid,r)}}return Array.from(i.entries()).map(([t,d])=>{var e;const n=c.find(r=>r.brandUuid===t);return n?{brandUuid:t,brand:n.brandName,integrationType:l(n.integrationType),metrics:s.get(t)??{},raw:d,...(e=n.inputChallengePrompts)!=null&&e.length?{inputChallengePrompts:n.inputChallengePrompts}:{}}:null}).filter(t=>t!==null)};export{l as formatIntegrationType,h as mapBillableEventsTableData};
1
+ "use strict";import{BILLABLE_PRODUCTS as b}from"./BillableEventsTable.types.mjs";const y={hosted:"SDK","non-hosted":"API","semi-hosted":"Semi-Hosted",sdk:"SDK",api:"API"};function u(r){return r?y[r.toLowerCase()]??r:""}const g=({productDataSets:r,brands:f})=>{var c;const s=new Map,i=new Map;for(const{product:e,data:d}of r){const t=b.find(n=>n.product===e);if(t)for(const n of d){if(!((c=n.interval)!=null&&c.length))continue;const o=s.get(n.brandUuid)??{};for(const a of t.columns){const l=n.interval.reduce((m,p)=>m+(Number(p[a.metricKey])||0),0);o[a.key]=(o[a.key]??0)+l}t.columns.some(a=>(o[a.key]??0)>0)&&!i.has(n.brandUuid)&&i.set(n.brandUuid,n),s.set(n.brandUuid,o)}}return Array.from(i.entries()).map(([e,d])=>{const t=f.find(n=>n.brandUuid===e);return t?{brandUuid:e,brand:t.brandName,integrationType:u(t.integrationType),metrics:s.get(e)??{},raw:d}:null}).filter(e=>e!==null)};export{u as formatIntegrationType,g as mapBillableEventsTableData};
@@ -2,7 +2,6 @@ import { default as React } from 'react';
2
2
  import { SxProps } from '@mui/material';
3
3
  import { AreaSeriesChartData } from '../AreaChart';
4
4
  import { BrandFilter } from '../../BrandFilterInput';
5
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
6
5
  export type { AreaSeriesChartData } from '../AreaChart';
7
6
  export interface BrandIntervalData {
8
7
  brandUuid: string;
@@ -16,7 +15,6 @@ export interface ConversionOverTimeChartLegendBrand {
16
15
  dataKey?: string;
17
16
  brandName?: string;
18
17
  integrationType?: string;
19
- inputChallengePrompts?: readonly ChallengePrompt[];
20
18
  }
21
19
  export interface ConversionOverTimeChartProps {
22
20
  data?: Array<Record<string, number | string>>;
@@ -39,10 +37,5 @@ export interface ConversionOverTimeChartProps {
39
37
  legendBrand?: ConversionOverTimeChartLegendBrand;
40
38
  /** Whether the legend displays the copyable UUID. Defaults to true. */
41
39
  showLegendUuid?: boolean;
42
- /**
43
- * Forwarded to the legend. When true, hovering the legend entry reveals
44
- * the brand's `inputChallengePrompts` as a tooltip. Default false.
45
- */
46
- showChallengePromptsTooltip?: boolean;
47
40
  }
48
- export declare function ConversionOverTimeChart({ data, series, chartData, seriesConfig, stackMode: stackModeProp, isLoading, isFetching, isSuccess, filter, sx, legendBrand, showLegendUuid, showChallengePromptsTooltip, }: Readonly<ConversionOverTimeChartProps>): React.ReactNode;
41
+ export declare function ConversionOverTimeChart({ data, series, chartData, seriesConfig, stackMode: stackModeProp, isLoading, isFetching, isSuccess, filter, sx, legendBrand, showLegendUuid, }: Readonly<ConversionOverTimeChartProps>): React.ReactNode;
@@ -1 +1 @@
1
- "use strict";import{useState as A}from"react";import{Stack as P,Box as v,ToggleButtonGroup as E,ToggleButton as N}from"@mui/material";import{EmptyChartSection as U}from"../EmptyChartSection.mjs";import{LoadingChartSection as j}from"../LoadingChartSection.mjs";import{AreaChart as B}from"../AreaChart/index.mjs";import{SeriesPercentageChartLegend as Z}from"../SeriesPercentageChartLegend/index.mjs";import{useStyle as $}from"../styles.mjs";import{formatExtendedDate as z,formatDateMMYY as O}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as W}from"../../form/TimezoneInput/timezones.mjs";import{jsx as n,jsxs as b}from"react/jsx-runtime";function _({brands:h,data:y,seriesConfig:d}){const c=new Map,l=h?new Set(h.map(a=>a._raw.brandUuid)):null;for(const a of y)if(!(l&&!l.has(a.brandUuid)))for(const u of a.interval??[]){const p=+new Date(u.date);let t=c.get(p);if(!t){t={date:p};for(const s of d)t[s.dataKey]=0;c.set(p,t)}for(const s of d)t[s.dataKey]=t[s.dataKey]+Number(u[s.dataKey]||0)}return{series:d,data:Array.from(c.values()).sort((a,u)=>a.date-u.date)}}function I({data:h,series:y,chartData:d,seriesConfig:c,stackMode:l="stack",isLoading:a,isFetching:u,isSuccess:p,filter:t,sx:s,legendBrand:r,showLegendUuid:k=!0,showChallengePromptsTooltip:w}){const x=$(),C=t.timezone??W,[f,K]=A("absolute"),o=d===void 0?{series:y??[],data:h??[]}:a?{series:[],data:[]}:_({brands:t.brands,data:d,seriesConfig:c??[]});if(!o.data.length&&a)return n(j,{});if(!o.data.length||!p)return n(U,{});const S=l==="none"&&f==="percent"?o.data.map(e=>{const m=Math.max(0,...o.series.map(i=>Number(e[i.dataKey])||0)),g={date:e.date};for(const i of o.series)g[i.dataKey]=m===0?0:(Number(e[i.dataKey])||0)/m;return g}):null,F=l==="stack"?f==="absolute"?"stack":"expand":"none",D=f==="absolute"?{tickFormatter:e=>Number(e).toLocaleString(),allowDecimals:!1}:{tickFormatter:e=>`${(e*100).toFixed(0)}%`,domain:[0,1]},M=f==="absolute"?e=>Number(e).toLocaleString():l==="stack"?(e,m,g)=>{const i=o.series.reduce((T,L)=>T+(Number(g.payload[L.dataKey])||0),0);return i===0?"0.0%":`${(Number(e)/i*100).toFixed(1)}%`}:e=>`${(Number(e)*100).toFixed(1)}%`;return b(P,{children:[b(v,{sx:{display:"flex",flexDirection:"column",gap:1,height:x.regularChartWrapper.height},children:[n(v,{sx:{display:"flex",justifyContent:"flex-end"},children:b(E,{value:f,exclusive:!0,onChange:(e,m)=>{m!==null&&K(m)},size:"small",children:[n(N,{value:"absolute",children:"Numbers"}),n(N,{value:"percent",children:"Percentages"})]})}),n(B,{data:S??o.data,series:o.series,stackMode:F,isAnimationActive:!0,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>O(e,{timeZone:C,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:D,tooltip:{formatter:M,labelFormatter:e=>z(e,{timeZone:C,hour12:!1})},sx:{...x.regularChartWrapper,height:"unset",flex:1,minHeight:0,opacity:u?.4:1,...s}})]}),r&&n(Z,{payload:[{uuid:r.uuid,value:r.value,color:r.color,dataKey:r.dataKey??r.uuid,brandName:r.brandName,integrationType:r.integrationType,inputChallengePrompts:r.inputChallengePrompts}],showUuid:k,showChallengePromptsTooltip:w})]})}export{I as ConversionOverTimeChart};
1
+ "use strict";import{useState as T}from"react";import{Stack as A,Box as v,ToggleButtonGroup as E,ToggleButton as N}from"@mui/material";import{EmptyChartSection as U}from"../EmptyChartSection.mjs";import{LoadingChartSection as B}from"../LoadingChartSection.mjs";import{AreaChart as j}from"../AreaChart/index.mjs";import{SeriesPercentageChartLegend as Z}from"../SeriesPercentageChartLegend/index.mjs";import{useStyle as $}from"../styles.mjs";import{formatExtendedDate as z,formatDateMMYY as O}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as W}from"../../form/TimezoneInput/timezones.mjs";import{jsx as n,jsxs as b}from"react/jsx-runtime";function _({brands:g,data:y,seriesConfig:d}){const c=new Map,u=g?new Set(g.map(a=>a._raw.brandUuid)):null;for(const a of y)if(!(u&&!u.has(a.brandUuid)))for(const l of a.interval??[]){const f=+new Date(l.date);let t=c.get(f);if(!t){t={date:f};for(const i of d)t[i.dataKey]=0;c.set(f,t)}for(const i of d)t[i.dataKey]=t[i.dataKey]+Number(l[i.dataKey]||0)}return{series:d,data:Array.from(c.values()).sort((a,l)=>a.date-l.date)}}function I({data:g,series:y,chartData:d,seriesConfig:c,stackMode:u="stack",isLoading:a,isFetching:l,isSuccess:f,filter:t,sx:i,legendBrand:r,showLegendUuid:K=!0}){const x=$(),C=t.timezone??W,[p,k]=T("absolute"),o=d!==void 0?a?{series:[],data:[]}:_({brands:t.brands,data:d,seriesConfig:c??[]}):{series:y??[],data:g??[]};if(!o.data.length&&a)return n(B,{});if(!o.data.length||!f)return n(U,{});const S=u==="none"&&p==="percent"?o.data.map(e=>{const m=Math.max(0,...o.series.map(s=>Number(e[s.dataKey])||0)),h={date:e.date};for(const s of o.series)h[s.dataKey]=m===0?0:(Number(e[s.dataKey])||0)/m;return h}):null,F=u==="stack"?p==="absolute"?"stack":"expand":"none",D=p==="absolute"?{tickFormatter:e=>Number(e).toLocaleString(),allowDecimals:!1}:{tickFormatter:e=>`${(e*100).toFixed(0)}%`,domain:[0,1]},M=p==="absolute"?e=>Number(e).toLocaleString():u==="stack"?(e,m,h)=>{const s=o.series.reduce((w,L)=>w+(Number(h.payload[L.dataKey])||0),0);return s===0?"0.0%":`${(Number(e)/s*100).toFixed(1)}%`}:e=>`${(Number(e)*100).toFixed(1)}%`;return b(A,{children:[b(v,{sx:{display:"flex",flexDirection:"column",gap:1,height:x.regularChartWrapper.height},children:[n(v,{sx:{display:"flex",justifyContent:"flex-end"},children:b(E,{value:p,exclusive:!0,onChange:(e,m)=>{m!==null&&k(m)},size:"small",children:[n(N,{value:"absolute",children:"Numbers"}),n(N,{value:"percent",children:"Percentages"})]})}),n(j,{data:S??o.data,series:o.series,stackMode:F,isAnimationActive:!0,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>O(e,{timeZone:C,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:D,tooltip:{formatter:M,labelFormatter:e=>z(e,{timeZone:C,hour12:!1})},sx:{...x.regularChartWrapper,height:"unset",flex:1,minHeight:0,opacity:l?.4:1,...i}})]}),r&&n(Z,{payload:[{uuid:r.uuid,value:r.value,color:r.color,dataKey:r.dataKey??r.uuid,brandName:r.brandName,integrationType:r.integrationType}],showUuid:K})]})}export{I as ConversionOverTimeChart};
@@ -1,5 +1,4 @@
1
1
  import { BrandFilter } from '../../BrandFilterInput';
2
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
3
2
  interface TimeSeriesDataPoint {
4
3
  date: number;
5
4
  value: number;
@@ -9,7 +8,6 @@ interface TimeSeriesChartData {
9
8
  name: string;
10
9
  color: string;
11
10
  chartData: TimeSeriesDataPoint[];
12
- inputChallengePrompts?: readonly ChallengePrompt[];
13
11
  }
14
12
  export interface MapSeriesTimeSeriesDataOptions {
15
13
  brands: BrandFilter[];
@@ -1 +1 @@
1
- "use strict";import C from"lodash/sortBy";import{stringToHashedColor as m}from"../../../utils/uuidColor.mjs";function w(s){const{brands:h,colorMap:b,data:p,keyValue:c}=s,e=new Map;h.forEach(({_raw:a})=>{(p?.filter(r=>r.brandUuid===a.brandUuid)??[]).forEach(r=>{const n=r.keyword??r.brandUuid;if(!n)return;const u=(r.interval??[]).map(t=>({date:+new Date(t.date),value:Number(t[c]||0)})).filter(t=>s.filterOutZeroValues?t.value>0:!0);if(e.has(n)){const t=e.get(n);if(!t)return;const l=[...t.chartData,...u],o=new Map;l.forEach(({date:d,value:i})=>{o.set(d,(o.get(d)??0)+i)});const U=Array.from(o.entries()).map(([d,i])=>({date:d,value:i})).sort((d,i)=>d.date-i.date);e.set(n,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:b.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:U,inputChallengePrompts:a.inputChallengePrompts})}else e.set(n,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:b.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:u,inputChallengePrompts:a.inputChallengePrompts})})});const g=a=>a==="hosted"||a==="sdk"?"SDK":a==="non-hosted"||a==="api"?"API":a,y=({keyword:a,brandColor:r,brandUuid:n})=>a?m(a):r??m(n),f=Array.from(e.values()).map(({keyword:a,brandUuid:r,brandName:n,brandColor:u,brandIntegrationType:t,chartData:l,inputChallengePrompts:o})=>({uuid:a??r,name:a??n,description:a?"":g(t),color:y({keyword:a,brandColor:u,brandUuid:r}),chartData:l,brandUuid:a?r:void 0,brandName:a?n:void 0,inputChallengePrompts:o}));return C(f,a=>a.name)}export{w as mapSeriesTimeSeriesData};
1
+ "use strict";import g from"lodash/sortBy";import{stringToHashedColor as m}from"../../../utils/uuidColor.mjs";function k(s){const{brands:p,colorMap:l,data:c,keyValue:y}=s,e=new Map;p.forEach(({_raw:a})=>{(c?.filter(r=>r.brandUuid===a.brandUuid)??[]).forEach(r=>{const d=r.keyword??r.brandUuid;if(!d)return;const i=(r.interval??[]).map(t=>({date:+new Date(t.date),value:Number(t[y]||0)})).filter(t=>s.filterOutZeroValues?t.value>0:!0);if(e.has(d)){const t=e.get(d);if(!t)return;const b=[...t.chartData,...i],u=new Map;b.forEach(({date:n,value:o})=>{u.set(n,(u.get(n)??0)+o)});const w=Array.from(u.entries()).map(([n,o])=>({date:n,value:o})).sort((n,o)=>n.date-o.date);e.set(d,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:l.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:w})}else e.set(d,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:l.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:i})})});const f=a=>a==="hosted"||a==="sdk"?"SDK":a==="non-hosted"||a==="api"?"API":a,U=({keyword:a,brandColor:r,brandUuid:d})=>a?m(a):r??m(d),h=Array.from(e.values()).map(({keyword:a,brandUuid:r,brandName:d,brandColor:i,brandIntegrationType:t,chartData:b})=>({uuid:a??r,name:a??d,description:a?"":f(t),color:U({keyword:a,brandColor:i,brandUuid:r}),chartData:b,brandUuid:a?r:void 0,brandName:a?d:void 0}));return g(h,a=>a.name)}export{k as mapSeriesTimeSeriesData};
@@ -1,6 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SxProps } from '@mui/material';
3
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
4
3
  interface ChartDataPoint {
5
4
  date: number;
6
5
  value: number;
@@ -13,7 +12,6 @@ export interface SeriesChartData {
13
12
  chartData: ChartDataPoint[];
14
13
  brandUuid?: string;
15
14
  brandName?: string;
16
- inputChallengePrompts?: readonly ChallengePrompt[];
17
15
  }
18
16
  interface SeriesChartProps {
19
17
  label: string;
@@ -25,5 +23,5 @@ interface SeriesChartProps {
25
23
  showUuid?: boolean;
26
24
  showLegend?: boolean;
27
25
  }
28
- export declare function SeriesChart(props: Readonly<SeriesChartProps>): ReactElement;
26
+ export declare function SeriesChart(props: SeriesChartProps): ReactElement;
29
27
  export * from './SeriesChart.map';
@@ -1,6 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { LegendProps } from 'recharts';
3
- import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
4
3
  type CustomPayload = {
5
4
  uuid: string;
6
5
  value: string;
@@ -8,12 +7,10 @@ type CustomPayload = {
8
7
  dataKey: string;
9
8
  integrationType?: string;
10
9
  brandName?: string;
11
- inputChallengePrompts?: readonly ChallengePrompt[];
12
10
  };
13
11
  interface SeriesPercentageChartLegendProps extends Omit<LegendProps, 'payload'> {
14
12
  showUuid?: boolean;
15
13
  payload?: CustomPayload[];
16
- showChallengePromptsTooltip?: boolean;
17
14
  }
18
15
  export declare function SeriesPercentageChartLegend(props: Readonly<SeriesPercentageChartLegendProps>): ReactElement;
19
16
  export {};
@@ -1 +1 @@
1
- "use strict";import{Box as s,Stack as d,Typography as t}from"@mui/material";import n from"@mui/material/Unstable_Grid2";import{AnimatePresence as c}from"framer-motion";import{MotionStack as m}from"../../animation/motions.mjs";import{CopyableUuid as u}from"../../CopyableUuid/index.mjs";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{BrandChallengePromptsTooltip as h}from"../../BrandChallengePromptsTooltip/BrandChallengePromptsTooltip.mjs";function l({entry:i,showUuid:e=!0}){return a(m,{direction:"row",spacing:1,sx:{color:i.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[r(s,{sx:{width:"3px",height:"100%",backgroundColor:i.color,borderRadius:3}}),a(d,{children:[r(t,{variant:"body1",children:i.value}),i.brandName&&r(t,{variant:"body2",children:i.brandName}),i.integrationType&&r(t,{variant:"body2",children:i.integrationType}),e&&i.uuid&&r(u,{uuid:i.uuid,label:"UUID",head:5,tail:0,variant:"text",mono:!1,typographyProps:{color:"inherit"}})]})]})}function y(i){const{payload:e,showChallengePromptsTooltip:p=!1}=i;return r(n,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,pl:0,listStyle:"none",justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:r(c,{children:e?.map(o=>r(n,{component:"li",children:p?r(h,{prompts:o.inputChallengePrompts,children:r(l,{entry:o,showUuid:i.showUuid})}):r(l,{entry:o,showUuid:i.showUuid})},`item-${o.uuid}-${o.value}`))})})}export{y as SeriesPercentageChartLegend};
1
+ "use strict";import{Box as d,Stack as c,Typography as e}from"@mui/material";import i from"@mui/material/Unstable_Grid2";import{AnimatePresence as l}from"framer-motion";import{MotionStack as p}from"../../animation/motions.mjs";import{CopyableUuid as s}from"../../CopyableUuid/index.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function u({entry:o,showUuid:a=!0}){return n(p,{component:"li",direction:"row",spacing:1,sx:{color:o.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[r(d,{sx:{width:"3px",height:"100%",backgroundColor:o.color,borderRadius:3}}),n(c,{children:[r(e,{variant:"body1",children:o.value}),o.brandName&&r(e,{variant:"body2",children:o.brandName}),o.integrationType&&r(e,{variant:"body2",children:o.integrationType}),a&&o.uuid&&r(s,{uuid:o.uuid,label:"UUID",head:5,tail:0,variant:"text",mono:!1,typographyProps:{color:"inherit"}})]})]})}function m(o){const{payload:a}=o;return r(i,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:r(l,{children:a?.map(t=>r(i,{children:r(u,{entry:t,showUuid:o.showUuid})},`item-${t.uuid}-${t.value}`))})})}export{m as SeriesPercentageChartLegend};
@@ -12,4 +12,4 @@ export declare function mergeChartData(seriesData: SeriesChartData[]): Array<Rec
12
12
  /** Exported for testing. */
13
13
  export declare const TOTAL_DATA_KEY = "__total__";
14
14
  export declare function enrichWithTotal(entries: Array<Record<string, number>>, visibleBrandKeys: string[]): Array<Record<string, number>>;
15
- export declare function SynchronizedMetricsChart({ subCharts, chartData, subChartConfig, colorMap, syncId, isLoading, isSuccess, isFetching, filter, sx, showChallengePromptsTooltip, }: Readonly<SynchronizedMetricsChartProps>): React.ReactNode;
15
+ export declare function SynchronizedMetricsChart({ subCharts, chartData, subChartConfig, colorMap, syncId, isLoading, isSuccess, isFetching, filter, sx, }: Readonly<SynchronizedMetricsChartProps>): React.ReactNode;
@@ -1 +1 @@
1
- "use strict";import{useState as P,useMemo as k}from"react";import{Stack as f,ToggleButton as w,useTheme as K,Typography as W}from"@mui/material";import{ResponsiveContainer as Y,LineChart as j,CartesianGrid as Z,XAxis as O,YAxis as U,Tooltip as B,Line as L}from"recharts";import{formatDateMMYY as G,formatExtendedDate as R}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as X}from"../../form/TimezoneInput/timezones.mjs";import{EmptyChartSection as q}from"../EmptyChartSection.mjs";import{LoadingChartSection as H}from"../LoadingChartSection.mjs";import{SeriesPercentageChartLegend as J}from"../SeriesPercentageChartLegend/index.mjs";import{chartDefaultProps as Q,xAxisDefaultProps as V,yAxisDefaultProps as $}from"../shared.mjs";import{mapSynchronizedSubCharts as tt}from"./SynchronizedMetricsChart.map.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";import at from"../../../node_modules/d3-scale/src/symlog.mjs";const et="synchronized-metrics",rt=200,y="__total__",ot="Total";function F(n){const i=new Map;for(const o of n)for(const r of o.chartData){let s=i.get(r.date);s||(s={date:r.date},i.set(r.date,s)),s[o.uuid]=r.value}return Array.from(i.values()).sort((o,r)=>o.date-r.date)}const it=y;function z(n,i){return i.length?n.map(o=>({...o,[y]:i.reduce((r,s)=>r+(Number(o[s])||0),0)})):n}function st({title:n,mergedData:i,brands:o,timezone:r,syncId:s,isPercentage:m,showTotal:x,logScale:T,tooltipFormatter:h,yAxisTickFormatter:b,yAxisDomain:C}){const p=K(),c=T&&!m,A=x&&!m&&o.length>1,d=c?at():void 0;return u(f,{children:[e(W,{variant:"h5",sx:{mb:.5,fontSize:"1.15rem"},children:n}),e(Y,{width:"100%",height:rt,children:u(j,{data:i,syncId:s,margin:Q.margin,children:[e(Z,{vertical:!1}),e(O,{dataKey:"date",tickFormatter:a=>G(a,{timeZone:r,hour12:!1,hour:"numeric"}),...V}),e(U,{tickFormatter:b??(a=>Number(a).toLocaleString()),allowDecimals:!1,domain:C,scale:d,...$}),e(B,{cursor:{stroke:p.palette.neutral.main,strokeWidth:1},formatter:h??(a=>Number(a).toLocaleString()),labelFormatter:a=>R(a,{timeZone:r,hour12:!1}),itemSorter:a=>-Number(a?.value??0)}),o.map(a=>e(L,{dataKey:a.uuid,name:a.name,stroke:a.color,type:"monotone",strokeWidth:2,isAnimationActive:!1,dot:!1},a.uuid)),A&&e(L,{dataKey:y,name:ot,stroke:p.palette.text.primary,strokeWidth:2,strokeDasharray:"4 4",type:"monotone",isAnimationActive:!1,dot:!1},y)]})})]})}function nt({subCharts:n,chartData:i,subChartConfig:o,colorMap:r,syncId:s=et,isLoading:m,isSuccess:x,isFetching:T,filter:h,sx:b,showChallengePromptsTooltip:C}){const p=h.timezone??X,[c,A]=P(!1),[d,a]=P(!1),l=i?tt({chartData:i,subChartConfig:o,brands:h.brands,colorMap:r,isLoading:m}):n,D=l.every(t=>t.data.length===0),M=k(()=>l.map(t=>{const g=F(t.data);if(t.isPercentage)return g;const E=t.data.map(I=>I.uuid);return z(g,E)}),[l]),S=l.some(t=>!t.isPercentage),v=l.some(t=>!t.isPercentage&&t.data.length>1),N=k(()=>l[0].data.map(t=>({uuid:t.brandUuid??t.uuid,value:t.name,color:t.color,dataKey:t.uuid,integrationType:t.description??void 0,brandName:t.brandName,inputChallengePrompts:t.inputChallengePrompts})),[l]);if(D&&m)return e(H,{});if(D||!x)return e(q,{});const _=S||v;return u(f,{sx:{width:"100%",...b},children:[_&&u(f,{direction:"row",spacing:1,justifyContent:"flex-end",sx:{mb:1},children:[v&&e(w,{value:"total",selected:c,onChange:()=>A(t=>!t),size:"small","aria-label":"Show Total line","aria-pressed":c,children:"Show Total"}),S&&e(w,{value:"log",selected:d,onChange:()=>a(t=>!t),size:"small","aria-label":"Toggle logarithmic scale","aria-pressed":d,children:"Log Scale"})]}),u(f,{sx:{opacity:T?.4:1,gap:2},children:[l.map((t,g)=>e(st,{title:t.title,mergedData:M[g],brands:t.data,timezone:p,syncId:s,isPercentage:t.isPercentage??!1,showTotal:c,logScale:d,tooltipFormatter:t.tooltipFormatter,yAxisTickFormatter:t.yAxisTickFormatter,yAxisDomain:t.yAxisDomain},t.title)),e(J,{payload:N,showChallengePromptsTooltip:C})]})]})}export{nt as SynchronizedMetricsChart,it as TOTAL_DATA_KEY,z as enrichWithTotal,F as mergeChartData};
1
+ "use strict";import{useState as v,useMemo as k}from"react";import{Stack as p,ToggleButton as F,useTheme as I,Typography as K}from"@mui/material";import{ResponsiveContainer as W,LineChart as Y,CartesianGrid as j,XAxis as Z,YAxis as O,Tooltip as U,Line as L}from"recharts";import{formatDateMMYY as B,formatExtendedDate as G}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as R}from"../../form/TimezoneInput/timezones.mjs";import{EmptyChartSection as X}from"../EmptyChartSection.mjs";import{LoadingChartSection as q}from"../LoadingChartSection.mjs";import{SeriesPercentageChartLegend as H}from"../SeriesPercentageChartLegend/index.mjs";import{chartDefaultProps as J,xAxisDefaultProps as Q,yAxisDefaultProps as V}from"../shared.mjs";import{mapSynchronizedSubCharts as $}from"./SynchronizedMetricsChart.map.mjs";import{jsx as e,jsxs as d}from"react/jsx-runtime";import tt from"../../../node_modules/d3-scale/src/symlog.mjs";const at="synchronized-metrics",et=200,g="__total__",rt="Total";function w(n){const i=new Map;for(const o of n)for(const r of o.chartData){let s=i.get(r.date);s||(s={date:r.date},i.set(r.date,s)),s[o.uuid]=r.value}return Array.from(i.values()).sort((o,r)=>o.date-r.date)}const ot=g;function z(n,i){return i.length?n.map(o=>({...o,[g]:i.reduce((r,s)=>r+(Number(o[s])||0),0)})):n}function it({title:n,mergedData:i,brands:o,timezone:r,syncId:s,isPercentage:l,showTotal:f,logScale:y,tooltipFormatter:u,yAxisTickFormatter:x,yAxisDomain:b}){const m=I(),A=y&&!l,c=f&&!l&&o.length>1,T=A?tt():void 0;return d(p,{children:[e(K,{variant:"h5",sx:{mb:.5,fontSize:"1.15rem"},children:n}),e(W,{width:"100%",height:et,children:d(Y,{data:i,syncId:s,margin:J.margin,children:[e(j,{vertical:!1}),e(Z,{dataKey:"date",tickFormatter:a=>B(a,{timeZone:r,hour12:!1,hour:"numeric"}),...Q}),e(O,{tickFormatter:x??(a=>Number(a).toLocaleString()),allowDecimals:!1,domain:b,scale:T,...V}),e(U,{cursor:{stroke:m.palette.neutral.main,strokeWidth:1},formatter:u??(a=>Number(a).toLocaleString()),labelFormatter:a=>G(a,{timeZone:r,hour12:!1}),itemSorter:a=>-Number(a?.value??0)}),o.map(a=>e(L,{dataKey:a.uuid,name:a.name,stroke:a.color,type:"monotone",strokeWidth:2,isAnimationActive:!1,dot:!1},a.uuid)),c&&e(L,{dataKey:g,name:rt,stroke:m.palette.text.primary,strokeWidth:2,strokeDasharray:"4 4",type:"monotone",isAnimationActive:!1,dot:!1},g)]})})]})}function st({subCharts:n,chartData:i,subChartConfig:o,colorMap:r,syncId:s=at,isLoading:l,isSuccess:f,isFetching:y,filter:u,sx:x}){const b=u.timezone??R,[m,A]=v(!1),[c,T]=v(!1),a=i?$({chartData:i,subChartConfig:o,brands:u.brands,colorMap:r,isLoading:l}):n,D=a.every(t=>t.data.length===0),P=k(()=>a.map(t=>{const h=w(t.data);if(t.isPercentage)return h;const _=t.data.map(E=>E.uuid);return z(h,_)}),[a]),S=a.some(t=>!t.isPercentage),C=a.some(t=>!t.isPercentage&&t.data.length>1),M=k(()=>a[0].data.map(t=>({uuid:t.brandUuid??t.uuid,value:t.name,color:t.color,dataKey:t.uuid,integrationType:t.description??void 0,brandName:t.brandName})),[a]);if(D&&l)return e(q,{});if(D||!f)return e(X,{});const N=S||C;return d(p,{sx:{width:"100%",...x},children:[N&&d(p,{direction:"row",spacing:1,justifyContent:"flex-end",sx:{mb:1},children:[C&&e(F,{value:"total",selected:m,onChange:()=>A(t=>!t),size:"small","aria-label":"Show Total line","aria-pressed":m,children:"Show Total"}),S&&e(F,{value:"log",selected:c,onChange:()=>T(t=>!t),size:"small","aria-label":"Toggle logarithmic scale","aria-pressed":c,children:"Log Scale"})]}),d(p,{sx:{opacity:y?.4:1,gap:2},children:[a.map((t,h)=>e(it,{title:t.title,mergedData:P[h],brands:t.data,timezone:b,syncId:s,isPercentage:t.isPercentage??!1,showTotal:m,logScale:c,tooltipFormatter:t.tooltipFormatter,yAxisTickFormatter:t.yAxisTickFormatter,yAxisDomain:t.yAxisDomain},t.title)),e(H,{payload:M})]})]})}export{st as SynchronizedMetricsChart,ot as TOTAL_DATA_KEY,z as enrichWithTotal,w as mergeChartData};
@@ -42,7 +42,6 @@ type SynchronizedMetricsChartBaseProps = {
42
42
  brands: BrandFilter[];
43
43
  };
44
44
  sx?: SxProps;
45
- showChallengePromptsTooltip?: boolean;
46
45
  };
47
46
  export type SynchronizedMetricsChartProps = SynchronizedMetricsChartBaseProps & ({
48
47
  subCharts: readonly [SubChartConfig, ...SubChartConfig[]];
@@ -23,4 +23,3 @@ export * from './UI';
23
23
  export * from './text-to-signup';
24
24
  export * from './logs';
25
25
  export * from './CopyableUuid';
26
- export * from './BrandChallengePromptsTooltip';
@@ -1 +1 @@
1
- "use strict";import{Paragraph as a}from"./typographies/Paragraph.mjs";import{SectionHeader as r}from"./typographies/SectionHeader.mjs";import{PageHeader as e}from"./typographies/PageHeader.mjs";import{PageSectionHeader as o}from"./typographies/PageSectionHeader.mjs";import{Typography as t}from"./Typography/index.mjs";import{CredentialRequestsEditor as i}from"./CredentialRequestsEditor/index.mjs";import{When as s}from"./When.mjs";import{Image as m}from"./Image.mjs";import{QRCodeDisplay as n}from"./QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./Snackbar/index.mjs";import{Backdrop as f}from"./Backdrop/index.mjs";import{Button as C}from"./Button/index.mjs";import{BrandFilterInput as d}from"./BrandFilterInput/index.mjs";import{SeriesChart as c}from"./chart/SeriesChart/index.mjs";import{SeriesChartLegend as u}from"./chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as h}from"./chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./chart/BigNumber/index.mjs";import{SimpleBarChart as B}from"./chart/SimpleBarChart/index.mjs";import{AreaChart as g}from"./chart/AreaChart/index.mjs";import{ErrorCodesChart as S}from"./chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as P}from"./chart/ReasonCodesChart/index.mjs";import{PieChart as I}from"./chart/PieChart/index.mjs";import{RiskScorePieChart as v}from"./chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as O}from"./chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as L}from"./chart/SimpleLegend/index.mjs";import{LoadingChartSection as b}from"./chart/LoadingChartSection.mjs";import{EmptyChartSection as D}from"./chart/EmptyChartSection.mjs";import{MetricLastUpdated as y}from"./chart/MetricLastUpdated.mjs";import{FunnelChart as F}from"./chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as E}from"./chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as k}from"./WhenStyled.mjs";import{RequiredLabel as A}from"./RequiredLabel/index.mjs";import{CopyableUuid as R}from"./CopyableUuid/index.mjs";import{AcceptTermsNotice as N}from"./terms/AcceptTermsNotice.mjs";import{AdaptativeBox as V}from"./UI/AdaptativeBox.mjs";import{AddressInput as x}from"./form/AddressInput/index.mjs";import{Alert as M}from"./Alert/Alert.mjs";import{BILLABLE_PRODUCTS as W,BillableProduct as w}from"./chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as H}from"./Banners/Banner.mjs";import{BasePhoneInput as _}from"./form/BasePhoneInput.mjs";import{BillableEventsProductTable as z}from"./chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Q}from"./chart/BillableEventsTable/BillableEventsTable.mjs";import{BrandChallengePromptsTooltip as U}from"./BrandChallengePromptsTooltip/BrandChallengePromptsTooltip.mjs";import{CalendlyDialog as q,CalendlyDialogComponent as Y}from"./dialog/CalendlyDialog.mjs";import{ContentWithLoader as G}from"./UI/ContentWithLoader.mjs";import{CustomDialog as K}from"./dialog/Dialog.mjs";import{DateInput as X}from"./form/DateInput/index.mjs";import{DateRangeInput as $}from"./form/DateRangeInput/index.mjs";import{DefaultInput as j}from"./form/DefaultInput.mjs";import{EmailInput as J}from"./form/EmailInput.mjs";import{ExactBirthdayBanner as Z}from"./Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as aa}from"./buttons/ExportToPdfButton.mjs";import{Form as ra}from"./form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as ea}from"./form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as oa}from"./form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as ta}from"./form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as ia,useForm as sa}from"./form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as ma}from"./Alert/FullWidthAlert.mjs";import{IconPlayer as na}from"./icons/IconPlayer.mjs";import{LazyBrandChallengePromptsTooltip as pa}from"./BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";import{LegalLink as la}from"./terms/LegalLink.mjs";import{LinkButton as fa}from"./buttons/LinkButton.mjs";import{LogDetailPanel as Ca}from"./logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as da}from"./logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as ca}from"./logs/LogsTable/LogsTable.mjs";import{NPIInput as ua}from"./form/NPIInput/index.mjs";import{NewOneClickForm as ha}from"./form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Ta}from"./form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as Ba}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as ga}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as Sa}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as Pa}from"./buttons/OriginalButton.mjs";import{OverviewBigNumbers as Ia}from"./chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as va}from"./dialog/PersistentDialog.mjs";import{PhoneInput as Oa}from"./form/PhoneInput.mjs";import{PoweredByVerified as La}from"./verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as ba}from"./form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Da}from"./terms/PrivacyPolicyNotice.mjs";import{RadioOption as ya}from"./form/RadioOption.mjs";import{ResendPhoneBanner as Fa}from"./Banners/ResendPhoneBanner.mjs";import{SSNInput as Ea}from"./form/SSNInput.mjs";import{SelectInput as ka}from"./form/SelectInput.mjs";import{SnackbarProvider as Aa}from"notistack";import{SynchronizedMetricsChart as Ra,TOTAL_DATA_KEY as Na,enrichWithTotal as Va,mergeChartData as xa}from"./chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Ma}from"./text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Wa}from"./text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as wa}from"./text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as Ha}from"./chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as _a}from"./Banners/TestPhoneNumbersBanner.mjs";import{TextButton as za}from"./buttons/TextButton.mjs";import{TimezoneInput as Qa}from"./form/TimezoneInput/index.mjs";import{VerifiedImage as Ua}from"./verified/VerifiedImage.mjs";import{VerifiedIncLogo as qa}from"./verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as Ya}from"./chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as Ga}from"./chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatIntegrationType as Ka,mapBillableEventsTableData as Xa}from"./chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as $a}from"./chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as ja}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as Ja}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as Za}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as ar}from"./chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as rr}from"./chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as er}from"./form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as or,useBrandFilterInput as tr}from"./BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as ir}from"./form/NewOneClickForm/core/mappers/share.map.mjs";export{N as AcceptTermsNotice,V as AdaptativeBox,x as AddressInput,M as Alert,g as AreaChart,W as BILLABLE_PRODUCTS,f as Backdrop,H as Banner,_ as BasePhoneInput,T as BigNumber,z as BillableEventsProductTable,Q as BillableEventsTable,w as BillableProduct,U as BrandChallengePromptsTooltip,d as BrandFilterInput,C as Button,q as CalendlyDialog,Y as CalendlyDialogComponent,G as ContentWithLoader,E as ConversionOverTimeChart,R as CopyableUuid,i as CredentialRequestsEditor,p as CustomAlertComponent,K as CustomDialog,X as DateInput,$ as DateRangeInput,j as DefaultInput,J as EmailInput,D as EmptyChartSection,S as ErrorCodesChart,Z as ExactBirthdayBanner,aa as ExportToPdfButton,ra as Form,ea as FormBuilder,oa as FormField,ta as FormFieldBuilder,ia as FormProvider,ma as FullWidthAlert,F as FunnelChart,na as IconPlayer,m as Image,pa as LazyBrandChallengePromptsTooltip,la as LegalLink,fa as LinkButton,b as LoadingChartSection,Ca as LogDetailPanel,da as LogsInfoAlert,ca as LogsTable,y as MetricLastUpdated,ua as NPIInput,ha as NewOneClickForm,Ta as OTPInput,Ba as OneClickVerificationEventsOverTimeChart,ga as OneClickVerificationFunnelChart,Sa as OneClickVerificationSuccessOverTimeChart,Pa as OriginalButton,Ia as OverviewBigNumbers,e as PageHeader,o as PageSectionHeader,a as Paragraph,va as PersistentDialog,Oa as PhoneInput,I as PieChart,La as PoweredByVerified,ba as PrettyPhoneInput,Da as PrivacyPolicyNotice,n as QRCodeDisplay,ya as RadioOption,P as ReasonCodesChart,A as RequiredLabel,Fa as ResendPhoneBanner,O as RiskScoreBarChart,v as RiskScorePieChart,Ea as SSNInput,r as SectionHeader,ka as SelectInput,c as SeriesChart,u as SeriesChartLegend,h as SeriesPercentageChart,B as SimpleBarChart,L as SimpleLegend,Aa as SnackbarProvider,Ra as SynchronizedMetricsChart,Na as TOTAL_DATA_KEY,Ma as TTSMagicButton,Wa as TTSMagicLegalLanguage,wa as TTSMagicQRCode,Ha as TTSOverTimeChart,_a as TestPhoneNumbersBanner,za as TextButton,Qa as TimezoneInput,t as Typography,Ua as VerifiedImage,qa as VerifiedIncLogo,s as When,k as WhenStyled,Ya as defaultOverviewMetrics,Va as enrichWithTotal,Ga as exportBillableEventsToCsv,Ka as formatIntegrationType,$a as mapBillableEventsProductTableData,Xa as mapBillableEventsTableData,ja as mapOneClickVerificationAreaSeriesData,Ja as mapOneClickVerificationFunnelChartData,Za as mapOneClickVerificationSuccessOverTimeChartData,ar as mapSeriesTimeSeriesData,rr as mapTTSTimeSeriesData,xa as mergeChartData,er as toCreatePatchCredentials,or as toOption,ir as toShareCredentials,tr as useBrandFilterInput,sa as useForm,l as useSnackbar};
1
+ "use strict";import{Paragraph as a}from"./typographies/Paragraph.mjs";import{SectionHeader as r}from"./typographies/SectionHeader.mjs";import{PageHeader as e}from"./typographies/PageHeader.mjs";import{PageSectionHeader as o}from"./typographies/PageSectionHeader.mjs";import{Typography as t}from"./Typography/index.mjs";import{CredentialRequestsEditor as i}from"./CredentialRequestsEditor/index.mjs";import{When as s}from"./When.mjs";import{Image as m}from"./Image.mjs";import{QRCodeDisplay as n}from"./QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./Snackbar/index.mjs";import{Backdrop as f}from"./Backdrop/index.mjs";import{Button as c}from"./Button/index.mjs";import{BrandFilterInput as d}from"./BrandFilterInput/index.mjs";import{SeriesChart as C}from"./chart/SeriesChart/index.mjs";import{SeriesChartLegend as u}from"./chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as h}from"./chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./chart/BigNumber/index.mjs";import{SimpleBarChart as B}from"./chart/SimpleBarChart/index.mjs";import{AreaChart as S}from"./chart/AreaChart/index.mjs";import{ErrorCodesChart as g}from"./chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as P}from"./chart/ReasonCodesChart/index.mjs";import{PieChart as I}from"./chart/PieChart/index.mjs";import{RiskScorePieChart as v}from"./chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as D}from"./chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as O}from"./chart/SimpleLegend/index.mjs";import{LoadingChartSection as b}from"./chart/LoadingChartSection.mjs";import{EmptyChartSection as L}from"./chart/EmptyChartSection.mjs";import{MetricLastUpdated as y}from"./chart/MetricLastUpdated.mjs";import{FunnelChart as F}from"./chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as E}from"./chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as k}from"./WhenStyled.mjs";import{RequiredLabel as A}from"./RequiredLabel/index.mjs";import{CopyableUuid as R}from"./CopyableUuid/index.mjs";import{AcceptTermsNotice as V}from"./terms/AcceptTermsNotice.mjs";import{AdaptativeBox as N}from"./UI/AdaptativeBox.mjs";import{AddressInput as M}from"./form/AddressInput/index.mjs";import{Alert as x}from"./Alert/Alert.mjs";import{BILLABLE_PRODUCTS as w,BillableProduct as W}from"./chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as U}from"./Banners/Banner.mjs";import{BasePhoneInput as q}from"./form/BasePhoneInput.mjs";import{BillableEventsProductTable as H}from"./chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Q}from"./chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as _,CalendlyDialogComponent as z}from"./dialog/CalendlyDialog.mjs";import{ContentWithLoader as Y}from"./UI/ContentWithLoader.mjs";import{CustomDialog as G}from"./dialog/Dialog.mjs";import{DateInput as K}from"./form/DateInput/index.mjs";import{DateRangeInput as X}from"./form/DateRangeInput/index.mjs";import{DefaultInput as Z}from"./form/DefaultInput.mjs";import{EmailInput as $}from"./form/EmailInput.mjs";import{ExactBirthdayBanner as j}from"./Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as J}from"./buttons/ExportToPdfButton.mjs";import{Form as aa}from"./form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as ra}from"./form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as ea}from"./form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as oa}from"./form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as ta,useForm as ia}from"./form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as sa}from"./Alert/FullWidthAlert.mjs";import{IconPlayer as ma}from"./icons/IconPlayer.mjs";import{LegalLink as na}from"./terms/LegalLink.mjs";import{LinkButton as pa}from"./buttons/LinkButton.mjs";import{LogDetailPanel as la}from"./logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as fa}from"./logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as ca}from"./logs/LogsTable/LogsTable.mjs";import{NPIInput as da}from"./form/NPIInput/index.mjs";import{NewOneClickForm as Ca}from"./form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as ua}from"./form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as ha}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as Ta}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as Ba}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as Sa}from"./buttons/OriginalButton.mjs";import{OverviewBigNumbers as ga}from"./chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as Pa}from"./dialog/PersistentDialog.mjs";import{PhoneInput as Ia}from"./form/PhoneInput.mjs";import{PoweredByVerified as va}from"./verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Da}from"./form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Oa}from"./terms/PrivacyPolicyNotice.mjs";import{RadioOption as ba}from"./form/RadioOption.mjs";import{ResendPhoneBanner as La}from"./Banners/ResendPhoneBanner.mjs";import{SSNInput as ya}from"./form/SSNInput.mjs";import{SelectInput as Fa}from"./form/SelectInput.mjs";import{SnackbarProvider as Ea}from"notistack";import{SynchronizedMetricsChart as ka,TOTAL_DATA_KEY as Aa,enrichWithTotal as Ra,mergeChartData as Va}from"./chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Na}from"./text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Ma}from"./text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as xa}from"./text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as wa}from"./chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Wa}from"./Banners/TestPhoneNumbersBanner.mjs";import{TextButton as Ua}from"./buttons/TextButton.mjs";import{TimezoneInput as qa}from"./form/TimezoneInput/index.mjs";import{VerifiedImage as Ha}from"./verified/VerifiedImage.mjs";import{VerifiedIncLogo as Qa}from"./verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as _a}from"./chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as za}from"./chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatIntegrationType as Ya,mapBillableEventsTableData as Ga}from"./chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as Ka}from"./chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as Xa}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as Za}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as $a}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as ja}from"./chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as Ja}from"./chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as ar}from"./form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as rr,useBrandFilterInput as er}from"./BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as or}from"./form/NewOneClickForm/core/mappers/share.map.mjs";export{V as AcceptTermsNotice,N as AdaptativeBox,M as AddressInput,x as Alert,S as AreaChart,w as BILLABLE_PRODUCTS,f as Backdrop,U as Banner,q as BasePhoneInput,T as BigNumber,H as BillableEventsProductTable,Q as BillableEventsTable,W as BillableProduct,d as BrandFilterInput,c as Button,_ as CalendlyDialog,z as CalendlyDialogComponent,Y as ContentWithLoader,E as ConversionOverTimeChart,R as CopyableUuid,i as CredentialRequestsEditor,p as CustomAlertComponent,G as CustomDialog,K as DateInput,X as DateRangeInput,Z as DefaultInput,$ as EmailInput,L as EmptyChartSection,g as ErrorCodesChart,j as ExactBirthdayBanner,J as ExportToPdfButton,aa as Form,ra as FormBuilder,ea as FormField,oa as FormFieldBuilder,ta as FormProvider,sa as FullWidthAlert,F as FunnelChart,ma as IconPlayer,m as Image,na as LegalLink,pa as LinkButton,b as LoadingChartSection,la as LogDetailPanel,fa as LogsInfoAlert,ca as LogsTable,y as MetricLastUpdated,da as NPIInput,Ca as NewOneClickForm,ua as OTPInput,ha as OneClickVerificationEventsOverTimeChart,Ta as OneClickVerificationFunnelChart,Ba as OneClickVerificationSuccessOverTimeChart,Sa as OriginalButton,ga as OverviewBigNumbers,e as PageHeader,o as PageSectionHeader,a as Paragraph,Pa as PersistentDialog,Ia as PhoneInput,I as PieChart,va as PoweredByVerified,Da as PrettyPhoneInput,Oa as PrivacyPolicyNotice,n as QRCodeDisplay,ba as RadioOption,P as ReasonCodesChart,A as RequiredLabel,La as ResendPhoneBanner,D as RiskScoreBarChart,v as RiskScorePieChart,ya as SSNInput,r as SectionHeader,Fa as SelectInput,C as SeriesChart,u as SeriesChartLegend,h as SeriesPercentageChart,B as SimpleBarChart,O as SimpleLegend,Ea as SnackbarProvider,ka as SynchronizedMetricsChart,Aa as TOTAL_DATA_KEY,Na as TTSMagicButton,Ma as TTSMagicLegalLanguage,xa as TTSMagicQRCode,wa as TTSOverTimeChart,Wa as TestPhoneNumbersBanner,Ua as TextButton,qa as TimezoneInput,t as Typography,Ha as VerifiedImage,Qa as VerifiedIncLogo,s as When,k as WhenStyled,_a as defaultOverviewMetrics,Ra as enrichWithTotal,za as exportBillableEventsToCsv,Ya as formatIntegrationType,Ka as mapBillableEventsProductTableData,Ga as mapBillableEventsTableData,Xa as mapOneClickVerificationAreaSeriesData,Za as mapOneClickVerificationFunnelChartData,$a as mapOneClickVerificationSuccessOverTimeChartData,ja as mapSeriesTimeSeriesData,Ja as mapTTSTimeSeriesData,Va as mergeChartData,ar as toCreatePatchCredentials,rr as toOption,or as toShareCredentials,er as useBrandFilterInput,ia as useForm,l as useSnackbar};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use strict";import{Paragraph as a}from"./components/typographies/Paragraph.mjs";import{SectionHeader as e}from"./components/typographies/SectionHeader.mjs";import{PageHeader as r}from"./components/typographies/PageHeader.mjs";import{PageSectionHeader as s}from"./components/typographies/PageSectionHeader.mjs";import{Typography as o}from"./components/Typography/index.mjs";import{CredentialRequestsEditor as t}from"./components/CredentialRequestsEditor/index.mjs";import{When as i}from"./components/When.mjs";import{Image as m}from"./components/Image.mjs";import{QRCodeDisplay as n}from"./components/QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./components/Snackbar/index.mjs";import{Backdrop as f}from"./components/Backdrop/index.mjs";import{Button as d}from"./components/Button/index.mjs";import{BrandFilterInput as u}from"./components/BrandFilterInput/index.mjs";import{SeriesChart as c}from"./components/chart/SeriesChart/index.mjs";import{SeriesChartLegend as h}from"./components/chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as C}from"./components/chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./components/chart/BigNumber/index.mjs";import{SimpleBarChart as S}from"./components/chart/SimpleBarChart/index.mjs";import{AreaChart as g}from"./components/chart/AreaChart/index.mjs";import{ErrorCodesChart as P}from"./components/chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as D}from"./components/chart/ReasonCodesChart/index.mjs";import{PieChart as B}from"./components/chart/PieChart/index.mjs";import{RiskScorePieChart as y}from"./components/chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as b}from"./components/chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as k}from"./components/chart/SimpleLegend/index.mjs";import{LoadingChartSection as v}from"./components/chart/LoadingChartSection.mjs";import{EmptyChartSection as O}from"./components/chart/EmptyChartSection.mjs";import{MetricLastUpdated as I}from"./components/chart/MetricLastUpdated.mjs";import{FunnelChart as L}from"./components/chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as F}from"./components/chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as M}from"./components/WhenStyled.mjs";import{RequiredLabel as A}from"./components/RequiredLabel/index.mjs";import{CopyableUuid as E}from"./components/CopyableUuid/index.mjs";import{Tunnel as R}from"./contexts/tunnel/index.mjs";import{useLocalStorage as N}from"./hooks/useLocalStorage.mjs";import{useCopyToClipboard as w}from"./hooks/useCopyToClipboard.mjs";import{useDisclosure as U}from"./hooks/useDisclosure.mjs";import{useGoogleFont as V}from"./hooks/useGoogleFont.mjs";import{useCallbackRef as x}from"./hooks/useCallbackRef.mjs";import{useQRCode as G}from"./hooks/useQRCode.mjs";import{useSearchParams as W}from"./hooks/useSearchParams.mjs";import{useDebounceValue as Y}from"./hooks/useDebounceValue.mjs";import{useScript as z}from"./hooks/useScript.mjs";import{useThrottle as H}from"./hooks/useThrottle.mjs";import{useToggle as _}from"./hooks/useToggle.mjs";import{useWindowScroll as Q}from"./hooks/useWindowScroll.mjs";import{useWindowSize as q}from"./hooks/useWindowSize.mjs";import{useIntersectionObserver as Z}from"./hooks/useIntersectionObserver.mjs";import{useCounter as J}from"./hooks/useCounter.mjs";import{useOnClickOutside as K}from"./hooks/useOnClickOutside.mjs";import{usePrevious as $}from"./hooks/usePrevious.mjs";import{useResizeObserver as j}from"./hooks/useResizeObserver.mjs";import{useNavigatorOnline as X}from"./hooks/useNavigatorOnline.mjs";import{useDebounceCallback as aa}from"./hooks/useDebounceCallback.mjs";import{useStyledQRCode as ea}from"./hooks/useStyledQRCode.mjs";import{useNetworkType as ra}from"./hooks/useNetworkType.mjs";import{useBidirectionalScroll as sa}from"./hooks/useBidirectionalScroll.mjs";import{black as oa,blue as ta,colors as ia,dangerContrast as ma,darkBlue as na,darkGreen as pa,darkGrey as la,darkGreyContrast as fa,darkRed as da,darkYellow as ua,green as ca,grey as ha,greyContrast as Ca,infoContrast as Ta,lightBlue as Sa,lightGreen as ga,lightGrey as Pa,lightGreyContrast as Da,lightRed as Ba,lightYellow as ya,red as ba,textDisabled as ka,warningContrast as va,white as Oa,yellow as Ia}from"./styles/colors.mjs";import{theme as La}from"./styles/theme.mjs";import{shadows as Fa}from"./styles/shadows.mjs";import{wrapPromise as Ma}from"./utils/wrapPromise/index.mjs";import{formatDateMMDDYYYY as Aa,formatDateMMYY as Ea,formatDateToTimestamp as Ra,formatExtendedDate as Na,formatLogTimestamp as wa,toUTCMilliseconds as Ua}from"./utils/date.mjs";import{countries as Va,getPhoneData as xa,getPhoneDataByFieldName as Ga,parseToPhoneNational as Wa,sortByCountryName as Ya,validatePhone as za}from"./utils/phone/index.mjs";import{masks as Ha}from"./utils/masks/index.mjs";import{omitProperties as _a}from"./utils/omitProperty.mjs";import{ssnFormatter as Qa,ssnRegex as qa}from"./utils/ssn.mjs";import{stringToHashedColor as Za,uuidToHashedColor as Ja}from"./utils/uuidColor.mjs";import{toCapitalize as Ka}from"./utils/string/toCapitalize.mjs";import{toSentenceCase as $a}from"./utils/string/toSentenceCase.mjs";import{kebabCaseToPretty as ja}from"./utils/string/formatKebabToPretty.mjs";import{generateKeyFromString as Xa}from"./utils/string/generateKeyFromString.mjs";import{alpha as ae,contrastColor as ee,darken as re,getThemeFromPrimaryColor as se,lighten as oe,mix as te}from"./utils/color/index.mjs";import{addressFormatter as ie,fromUSAddress as me,parseCountryCode as ne,toUSaddress as pe,toUSaddressPretty as le}from"./utils/address/index.mjs";import{DEFAULT_FONT_FAMILY as fe,DEFAULT_FONT_WEIGHTS as de,makeGoogleFontUrl as ue}from"./utils/makeGoogleFont.mjs";import{prepareNotification as ce}from"./utils/notification.mjs";import{resolveLogo as he}from"./utils/logo/index.mjs";import{USDateSchema as Ce,birthDateSchema as Te,dateSchema as Se,getDateSchemaWithPastValidation as ge,refineAge18Plus as Pe,refineMinimumDate1900 as De,refineTimestamp as Be,validateAge18Plus as ye,validateMinimumDate1900 as be,validateTimestamp as ke}from"./validations/date.schema.mjs";import{descriptionSchema as ve}from"./validations/description.schema.mjs";import{businessEmailSchema as Oe,emailSchema as Ie}from"./validations/email.schema.mjs";import{fieldSchema as Le}from"./validations/field.schema.mjs";import{phoneSchema as Fe}from"./validations/phone.schema.mjs";import{MaskedAndUnmaskedSSNSchema as Me,SSNSchema as Ae}from"./validations/ssn.schema.mjs";import{getUnixSchema as Ee}from"./validations/unix.schema.mjs";import{npiSchema as Re}from"./validations/npi.schema.mjs";import{stateSchema as Ne,zipCodeSchema as we}from"./validations/address.schema.mjs";import{AcceptTermsNotice as Ue}from"./components/terms/AcceptTermsNotice.mjs";import{AdaptativeBox as Ve}from"./components/UI/AdaptativeBox.mjs";import{AddressInput as xe}from"./components/form/AddressInput/index.mjs";import{Alert as Ge}from"./components/Alert/Alert.mjs";import{BILLABLE_PRODUCTS as We,BillableProduct as Ye}from"./components/chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as ze}from"./components/Banners/Banner.mjs";import{BasePhoneInput as He}from"./components/form/BasePhoneInput.mjs";import{BillableEventsProductTable as _e}from"./components/chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Qe}from"./components/chart/BillableEventsTable/BillableEventsTable.mjs";import{BrandChallengePromptsTooltip as qe}from"./components/BrandChallengePromptsTooltip/BrandChallengePromptsTooltip.mjs";import{CalendlyDialog as Ze,CalendlyDialogComponent as Je}from"./components/dialog/CalendlyDialog.mjs";import{ContentWithLoader as Ke}from"./components/UI/ContentWithLoader.mjs";import{CustomDialog as $e}from"./components/dialog/Dialog.mjs";import{DateInput as je}from"./components/form/DateInput/index.mjs";import{DateRangeInput as Xe}from"./components/form/DateRangeInput/index.mjs";import{DefaultInput as ar}from"./components/form/DefaultInput.mjs";import{EmailInput as er}from"./components/form/EmailInput.mjs";import{ExactBirthdayBanner as rr}from"./components/Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as sr}from"./components/buttons/ExportToPdfButton.mjs";import{Form as or}from"./components/form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as tr}from"./components/form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as ir}from"./components/form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as mr}from"./components/form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as nr,useForm as pr}from"./components/form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as lr}from"./components/Alert/FullWidthAlert.mjs";import{IconPlayer as fr}from"./components/icons/IconPlayer.mjs";import{LazyBrandChallengePromptsTooltip as dr}from"./components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";import{LegalLink as ur}from"./components/terms/LegalLink.mjs";import{LinkButton as cr}from"./components/buttons/LinkButton.mjs";import{LogDetailPanel as hr}from"./components/logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as Cr}from"./components/logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as Tr}from"./components/logs/LogsTable/LogsTable.mjs";import{MetricsProvider as Sr,useMetrics as gr}from"./contexts/metrics/Metrics.context.mjs";import{NPIInput as Pr}from"./components/form/NPIInput/index.mjs";import{NewOneClickForm as Dr}from"./components/form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Br}from"./components/form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as yr}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as br}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as kr}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as vr}from"./components/buttons/OriginalButton.mjs";import{OverviewBigNumbers as Or}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as Ir}from"./components/dialog/PersistentDialog.mjs";import{PhoneInput as Lr}from"./components/form/PhoneInput.mjs";import{PoweredByVerified as Fr}from"./components/verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Mr}from"./components/form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Ar}from"./components/terms/PrivacyPolicyNotice.mjs";import{RadioOption as Er}from"./components/form/RadioOption.mjs";import{ResendPhoneBanner as Rr}from"./components/Banners/ResendPhoneBanner.mjs";import{SSNInput as Nr}from"./components/form/SSNInput.mjs";import{SelectInput as wr}from"./components/form/SelectInput.mjs";import{SnackbarProvider as Ur}from"notistack";import{SynchronizedMetricsChart as Vr,TOTAL_DATA_KEY as xr,enrichWithTotal as Gr,mergeChartData as Wr}from"./components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Yr}from"./components/text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as zr}from"./components/text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as Hr}from"./components/text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as _r}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Qr}from"./components/Banners/TestPhoneNumbersBanner.mjs";import{TextButton as qr}from"./components/buttons/TextButton.mjs";import{TimezoneInput as Zr}from"./components/form/TimezoneInput/index.mjs";import{VerifiedImage as Jr}from"./components/verified/VerifiedImage.mjs";import{VerifiedIncLogo as Kr}from"./components/verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as $r}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as jr}from"./components/chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatInTimeZone as Xr}from"./node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.mjs";import{formatIntegrationType as as,mapBillableEventsTableData as es}from"./components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as rs}from"./components/chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as ss}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as os}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as ts}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as is}from"./components/chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as ms}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as ns}from"./components/form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as ps,useBrandFilterInput as ls}from"./components/BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as fs}from"./components/form/NewOneClickForm/core/mappers/share.map.mjs";import{useColorMap as ds}from"./hooks/metrics/useColorMap.mjs";import{useTTSMagicLink as us}from"./hooks/text-to-signup/magic-link.mjs";import{useTTSMagicQRCode as cs}from"./hooks/text-to-signup/magic-qr-code.mjs";import{useTTSMagicQRCodeOptions as hs}from"./hooks/text-to-signup/magic-qr-code-options.mjs";import{useTTSMagicText as Cs}from"./hooks/text-to-signup/magic-text.mjs";export{Ue as AcceptTermsNotice,Ve as AdaptativeBox,xe as AddressInput,Ge as Alert,g as AreaChart,We as BILLABLE_PRODUCTS,f as Backdrop,ze as Banner,He as BasePhoneInput,T as BigNumber,_e as BillableEventsProductTable,Qe as BillableEventsTable,Ye as BillableProduct,qe as BrandChallengePromptsTooltip,u as BrandFilterInput,d as Button,Ze as CalendlyDialog,Je as CalendlyDialogComponent,Ke as ContentWithLoader,F as ConversionOverTimeChart,E as CopyableUuid,t as CredentialRequestsEditor,p as CustomAlertComponent,$e as CustomDialog,fe as DEFAULT_FONT_FAMILY,de as DEFAULT_FONT_WEIGHTS,je as DateInput,Xe as DateRangeInput,ar as DefaultInput,er as EmailInput,O as EmptyChartSection,P as ErrorCodesChart,rr as ExactBirthdayBanner,sr as ExportToPdfButton,or as Form,tr as FormBuilder,ir as FormField,mr as FormFieldBuilder,nr as FormProvider,lr as FullWidthAlert,L as FunnelChart,fr as IconPlayer,m as Image,dr as LazyBrandChallengePromptsTooltip,ur as LegalLink,cr as LinkButton,v as LoadingChartSection,hr as LogDetailPanel,Cr as LogsInfoAlert,Tr as LogsTable,Me as MaskedAndUnmaskedSSNSchema,I as MetricLastUpdated,Sr as MetricsProvider,Pr as NPIInput,Dr as NewOneClickForm,Br as OTPInput,yr as OneClickVerificationEventsOverTimeChart,br as OneClickVerificationFunnelChart,kr as OneClickVerificationSuccessOverTimeChart,vr as OriginalButton,Or as OverviewBigNumbers,r as PageHeader,s as PageSectionHeader,a as Paragraph,Ir as PersistentDialog,Lr as PhoneInput,B as PieChart,Fr as PoweredByVerified,Mr as PrettyPhoneInput,Ar as PrivacyPolicyNotice,n as QRCodeDisplay,Er as RadioOption,D as ReasonCodesChart,A as RequiredLabel,Rr as ResendPhoneBanner,b as RiskScoreBarChart,y as RiskScorePieChart,Nr as SSNInput,Ae as SSNSchema,e as SectionHeader,wr as SelectInput,c as SeriesChart,h as SeriesChartLegend,C as SeriesPercentageChart,S as SimpleBarChart,k as SimpleLegend,Ur as SnackbarProvider,Vr as SynchronizedMetricsChart,xr as TOTAL_DATA_KEY,Yr as TTSMagicButton,zr as TTSMagicLegalLanguage,Hr as TTSMagicQRCode,_r as TTSOverTimeChart,Qr as TestPhoneNumbersBanner,qr as TextButton,Zr as TimezoneInput,R as Tunnel,o as Typography,Ce as USDateSchema,Jr as VerifiedImage,Kr as VerifiedIncLogo,i as When,M as WhenStyled,ie as addressFormatter,ae as alpha,Te as birthDateSchema,oa as black,ta as blue,Oe as businessEmailSchema,ia as colors,ee as contrastColor,Va as countries,ma as dangerContrast,na as darkBlue,pa as darkGreen,la as darkGrey,fa as darkGreyContrast,da as darkRed,ua as darkYellow,re as darken,Se as dateSchema,$r as defaultOverviewMetrics,ve as descriptionSchema,Ie as emailSchema,Gr as enrichWithTotal,jr as exportBillableEventsToCsv,Le as fieldSchema,Aa as formatDateMMDDYYYY,Ea as formatDateMMYY,Ra as formatDateToTimestamp,Na as formatExtendedDate,Xr as formatInTimeZone,as as formatIntegrationType,wa as formatLogTimestamp,me as fromUSAddress,Xa as generateKeyFromString,ge as getDateSchemaWithPastValidation,xa as getPhoneData,Ga as getPhoneDataByFieldName,se as getThemeFromPrimaryColor,Ee as getUnixSchema,ca as green,ha as grey,Ca as greyContrast,Ta as infoContrast,ja as kebabCaseToPretty,Sa as lightBlue,ga as lightGreen,Pa as lightGrey,Da as lightGreyContrast,Ba as lightRed,ya as lightYellow,oe as lighten,ue as makeGoogleFontUrl,rs as mapBillableEventsProductTableData,es as mapBillableEventsTableData,ss as mapOneClickVerificationAreaSeriesData,os as mapOneClickVerificationFunnelChartData,ts as mapOneClickVerificationSuccessOverTimeChartData,is as mapSeriesTimeSeriesData,ms as mapTTSTimeSeriesData,Ha as masks,Wr as mergeChartData,te as mix,Re as npiSchema,_a as omitProperties,ne as parseCountryCode,Wa as parseToPhoneNational,Fe as phoneSchema,ce as prepareNotification,ba as red,Pe as refineAge18Plus,De as refineMinimumDate1900,Be as refineTimestamp,he as resolveLogo,Fa as shadows,Ya as sortByCountryName,Qa as ssnFormatter,qa as ssnRegex,Ne as stateSchema,Za as stringToHashedColor,ka as textDisabled,La as theme,Ka as toCapitalize,ns as toCreatePatchCredentials,ps as toOption,$a as toSentenceCase,fs as toShareCredentials,pe as toUSaddress,le as toUSaddressPretty,Ua as toUTCMilliseconds,sa as useBidirectionalScroll,ls as useBrandFilterInput,x as useCallbackRef,ds as useColorMap,w as useCopyToClipboard,J as useCounter,aa as useDebounceCallback,Y as useDebounceValue,U as useDisclosure,pr as useForm,V as useGoogleFont,Z as useIntersectionObserver,N as useLocalStorage,gr as useMetrics,X as useNavigatorOnline,ra as useNetworkType,K as useOnClickOutside,$ as usePrevious,G as useQRCode,j as useResizeObserver,z as useScript,W as useSearchParams,l as useSnackbar,ea as useStyledQRCode,us as useTTSMagicLink,cs as useTTSMagicQRCode,hs as useTTSMagicQRCodeOptions,Cs as useTTSMagicText,H as useThrottle,_ as useToggle,Q as useWindowScroll,q as useWindowSize,Ja as uuidToHashedColor,ye as validateAge18Plus,be as validateMinimumDate1900,za as validatePhone,ke as validateTimestamp,va as warningContrast,Oa as white,Ma as wrapPromise,Ia as yellow,we as zipCodeSchema};
1
+ "use strict";import{Paragraph as a}from"./components/typographies/Paragraph.mjs";import{SectionHeader as e}from"./components/typographies/SectionHeader.mjs";import{PageHeader as r}from"./components/typographies/PageHeader.mjs";import{PageSectionHeader as s}from"./components/typographies/PageSectionHeader.mjs";import{Typography as o}from"./components/Typography/index.mjs";import{CredentialRequestsEditor as t}from"./components/CredentialRequestsEditor/index.mjs";import{When as i}from"./components/When.mjs";import{Image as m}from"./components/Image.mjs";import{QRCodeDisplay as n}from"./components/QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./components/Snackbar/index.mjs";import{Backdrop as f}from"./components/Backdrop/index.mjs";import{Button as d}from"./components/Button/index.mjs";import{BrandFilterInput as u}from"./components/BrandFilterInput/index.mjs";import{SeriesChart as c}from"./components/chart/SeriesChart/index.mjs";import{SeriesChartLegend as h}from"./components/chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as C}from"./components/chart/SeriesPercentageChart/index.mjs";import{BigNumber as S}from"./components/chart/BigNumber/index.mjs";import{SimpleBarChart as g}from"./components/chart/SimpleBarChart/index.mjs";import{AreaChart as T}from"./components/chart/AreaChart/index.mjs";import{ErrorCodesChart as P}from"./components/chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as D}from"./components/chart/ReasonCodesChart/index.mjs";import{PieChart as B}from"./components/chart/PieChart/index.mjs";import{RiskScorePieChart as y}from"./components/chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as b}from"./components/chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as k}from"./components/chart/SimpleLegend/index.mjs";import{LoadingChartSection as v}from"./components/chart/LoadingChartSection.mjs";import{EmptyChartSection as O}from"./components/chart/EmptyChartSection.mjs";import{MetricLastUpdated as F}from"./components/chart/MetricLastUpdated.mjs";import{FunnelChart as I}from"./components/chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as L}from"./components/chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as M}from"./components/WhenStyled.mjs";import{RequiredLabel as A}from"./components/RequiredLabel/index.mjs";import{CopyableUuid as E}from"./components/CopyableUuid/index.mjs";import{Tunnel as R}from"./contexts/tunnel/index.mjs";import{useLocalStorage as N}from"./hooks/useLocalStorage.mjs";import{useCopyToClipboard as w}from"./hooks/useCopyToClipboard.mjs";import{useDisclosure as x}from"./hooks/useDisclosure.mjs";import{useGoogleFont as V}from"./hooks/useGoogleFont.mjs";import{useCallbackRef as U}from"./hooks/useCallbackRef.mjs";import{useQRCode as G}from"./hooks/useQRCode.mjs";import{useSearchParams as Y}from"./hooks/useSearchParams.mjs";import{useDebounceValue as _}from"./hooks/useDebounceValue.mjs";import{useScript as W}from"./hooks/useScript.mjs";import{useThrottle as H}from"./hooks/useThrottle.mjs";import{useToggle as z}from"./hooks/useToggle.mjs";import{useWindowScroll as Q}from"./hooks/useWindowScroll.mjs";import{useWindowSize as q}from"./hooks/useWindowSize.mjs";import{useIntersectionObserver as Z}from"./hooks/useIntersectionObserver.mjs";import{useCounter as J}from"./hooks/useCounter.mjs";import{useOnClickOutside as K}from"./hooks/useOnClickOutside.mjs";import{usePrevious as $}from"./hooks/usePrevious.mjs";import{useResizeObserver as j}from"./hooks/useResizeObserver.mjs";import{useNavigatorOnline as X}from"./hooks/useNavigatorOnline.mjs";import{useDebounceCallback as aa}from"./hooks/useDebounceCallback.mjs";import{useStyledQRCode as ea}from"./hooks/useStyledQRCode.mjs";import{useNetworkType as ra}from"./hooks/useNetworkType.mjs";import{useBidirectionalScroll as sa}from"./hooks/useBidirectionalScroll.mjs";import{black as oa,blue as ta,colors as ia,dangerContrast as ma,darkBlue as na,darkGreen as pa,darkGrey as la,darkGreyContrast as fa,darkRed as da,darkYellow as ua,green as ca,grey as ha,greyContrast as Ca,infoContrast as Sa,lightBlue as ga,lightGreen as Ta,lightGrey as Pa,lightGreyContrast as Da,lightRed as Ba,lightYellow as ya,red as ba,textDisabled as ka,warningContrast as va,white as Oa,yellow as Fa}from"./styles/colors.mjs";import{theme as Ia}from"./styles/theme.mjs";import{shadows as La}from"./styles/shadows.mjs";import{wrapPromise as Ma}from"./utils/wrapPromise/index.mjs";import{formatDateMMDDYYYY as Aa,formatDateMMYY as Ea,formatDateToTimestamp as Ra,formatExtendedDate as Na,formatLogTimestamp as wa,toUTCMilliseconds as xa}from"./utils/date.mjs";import{countries as Va,getPhoneData as Ua,getPhoneDataByFieldName as Ga,parseToPhoneNational as Ya,sortByCountryName as _a,validatePhone as Wa}from"./utils/phone/index.mjs";import{masks as Ha}from"./utils/masks/index.mjs";import{omitProperties as za}from"./utils/omitProperty.mjs";import{ssnFormatter as Qa,ssnRegex as qa}from"./utils/ssn.mjs";import{stringToHashedColor as Za,uuidToHashedColor as Ja}from"./utils/uuidColor.mjs";import{toCapitalize as Ka}from"./utils/string/toCapitalize.mjs";import{toSentenceCase as $a}from"./utils/string/toSentenceCase.mjs";import{kebabCaseToPretty as ja}from"./utils/string/formatKebabToPretty.mjs";import{generateKeyFromString as Xa}from"./utils/string/generateKeyFromString.mjs";import{alpha as ae,contrastColor as ee,darken as re,getThemeFromPrimaryColor as se,lighten as oe,mix as te}from"./utils/color/index.mjs";import{addressFormatter as ie,fromUSAddress as me,parseCountryCode as ne,toUSaddress as pe,toUSaddressPretty as le}from"./utils/address/index.mjs";import{DEFAULT_FONT_FAMILY as fe,DEFAULT_FONT_WEIGHTS as de,makeGoogleFontUrl as ue}from"./utils/makeGoogleFont.mjs";import{prepareNotification as ce}from"./utils/notification.mjs";import{resolveLogo as he}from"./utils/logo/index.mjs";import{USDateSchema as Ce,birthDateSchema as Se,dateSchema as ge,getDateSchemaWithPastValidation as Te,refineAge18Plus as Pe,refineMinimumDate1900 as De,refineTimestamp as Be,validateAge18Plus as ye,validateMinimumDate1900 as be,validateTimestamp as ke}from"./validations/date.schema.mjs";import{descriptionSchema as ve}from"./validations/description.schema.mjs";import{businessEmailSchema as Oe,emailSchema as Fe}from"./validations/email.schema.mjs";import{fieldSchema as Ie}from"./validations/field.schema.mjs";import{phoneSchema as Le}from"./validations/phone.schema.mjs";import{MaskedAndUnmaskedSSNSchema as Me,SSNSchema as Ae}from"./validations/ssn.schema.mjs";import{getUnixSchema as Ee}from"./validations/unix.schema.mjs";import{npiSchema as Re}from"./validations/npi.schema.mjs";import{stateSchema as Ne,zipCodeSchema as we}from"./validations/address.schema.mjs";import{AcceptTermsNotice as xe}from"./components/terms/AcceptTermsNotice.mjs";import{AdaptativeBox as Ve}from"./components/UI/AdaptativeBox.mjs";import{AddressInput as Ue}from"./components/form/AddressInput/index.mjs";import{Alert as Ge}from"./components/Alert/Alert.mjs";import{BILLABLE_PRODUCTS as Ye,BillableProduct as _e}from"./components/chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as We}from"./components/Banners/Banner.mjs";import{BasePhoneInput as He}from"./components/form/BasePhoneInput.mjs";import{BillableEventsProductTable as ze}from"./components/chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Qe}from"./components/chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as qe,CalendlyDialogComponent as Ze}from"./components/dialog/CalendlyDialog.mjs";import{ContentWithLoader as Je}from"./components/UI/ContentWithLoader.mjs";import{CustomDialog as Ke}from"./components/dialog/Dialog.mjs";import{DateInput as $e}from"./components/form/DateInput/index.mjs";import{DateRangeInput as je}from"./components/form/DateRangeInput/index.mjs";import{DefaultInput as Xe}from"./components/form/DefaultInput.mjs";import{EmailInput as ar}from"./components/form/EmailInput.mjs";import{ExactBirthdayBanner as er}from"./components/Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as rr}from"./components/buttons/ExportToPdfButton.mjs";import{Form as sr}from"./components/form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as or}from"./components/form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as tr}from"./components/form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as ir}from"./components/form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as mr,useForm as nr}from"./components/form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as pr}from"./components/Alert/FullWidthAlert.mjs";import{IconPlayer as lr}from"./components/icons/IconPlayer.mjs";import{LegalLink as fr}from"./components/terms/LegalLink.mjs";import{LinkButton as dr}from"./components/buttons/LinkButton.mjs";import{LogDetailPanel as ur}from"./components/logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as cr}from"./components/logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as hr}from"./components/logs/LogsTable/LogsTable.mjs";import{MetricsProvider as Cr,useMetrics as Sr}from"./contexts/metrics/Metrics.context.mjs";import{NPIInput as gr}from"./components/form/NPIInput/index.mjs";import{NewOneClickForm as Tr}from"./components/form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Pr}from"./components/form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as Dr}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as Br}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as yr}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as br}from"./components/buttons/OriginalButton.mjs";import{OverviewBigNumbers as kr}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as vr}from"./components/dialog/PersistentDialog.mjs";import{PhoneInput as Or}from"./components/form/PhoneInput.mjs";import{PoweredByVerified as Fr}from"./components/verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Ir}from"./components/form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Lr}from"./components/terms/PrivacyPolicyNotice.mjs";import{RadioOption as Mr}from"./components/form/RadioOption.mjs";import{ResendPhoneBanner as Ar}from"./components/Banners/ResendPhoneBanner.mjs";import{SSNInput as Er}from"./components/form/SSNInput.mjs";import{SelectInput as Rr}from"./components/form/SelectInput.mjs";import{SnackbarProvider as Nr}from"notistack";import{SynchronizedMetricsChart as wr,TOTAL_DATA_KEY as xr,enrichWithTotal as Vr,mergeChartData as Ur}from"./components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Gr}from"./components/text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Yr}from"./components/text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as _r}from"./components/text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as Wr}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Hr}from"./components/Banners/TestPhoneNumbersBanner.mjs";import{TextButton as zr}from"./components/buttons/TextButton.mjs";import{TimezoneInput as Qr}from"./components/form/TimezoneInput/index.mjs";import{VerifiedImage as qr}from"./components/verified/VerifiedImage.mjs";import{VerifiedIncLogo as Zr}from"./components/verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as Jr}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as Kr}from"./components/chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatInTimeZone as $r}from"./node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.mjs";import{formatIntegrationType as jr,mapBillableEventsTableData as Xr}from"./components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as as}from"./components/chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as es}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as rs}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as ss}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as os}from"./components/chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as ts}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as is}from"./components/form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as ms,useBrandFilterInput as ns}from"./components/BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as ps}from"./components/form/NewOneClickForm/core/mappers/share.map.mjs";import{useColorMap as ls}from"./hooks/metrics/useColorMap.mjs";import{useTTSMagicLink as fs}from"./hooks/text-to-signup/magic-link.mjs";import{useTTSMagicQRCode as ds}from"./hooks/text-to-signup/magic-qr-code.mjs";import{useTTSMagicQRCodeOptions as us}from"./hooks/text-to-signup/magic-qr-code-options.mjs";import{useTTSMagicText as cs}from"./hooks/text-to-signup/magic-text.mjs";export{xe as AcceptTermsNotice,Ve as AdaptativeBox,Ue as AddressInput,Ge as Alert,T as AreaChart,Ye as BILLABLE_PRODUCTS,f as Backdrop,We as Banner,He as BasePhoneInput,S as BigNumber,ze as BillableEventsProductTable,Qe as BillableEventsTable,_e as BillableProduct,u as BrandFilterInput,d as Button,qe as CalendlyDialog,Ze as CalendlyDialogComponent,Je as ContentWithLoader,L as ConversionOverTimeChart,E as CopyableUuid,t as CredentialRequestsEditor,p as CustomAlertComponent,Ke as CustomDialog,fe as DEFAULT_FONT_FAMILY,de as DEFAULT_FONT_WEIGHTS,$e as DateInput,je as DateRangeInput,Xe as DefaultInput,ar as EmailInput,O as EmptyChartSection,P as ErrorCodesChart,er as ExactBirthdayBanner,rr as ExportToPdfButton,sr as Form,or as FormBuilder,tr as FormField,ir as FormFieldBuilder,mr as FormProvider,pr as FullWidthAlert,I as FunnelChart,lr as IconPlayer,m as Image,fr as LegalLink,dr as LinkButton,v as LoadingChartSection,ur as LogDetailPanel,cr as LogsInfoAlert,hr as LogsTable,Me as MaskedAndUnmaskedSSNSchema,F as MetricLastUpdated,Cr as MetricsProvider,gr as NPIInput,Tr as NewOneClickForm,Pr as OTPInput,Dr as OneClickVerificationEventsOverTimeChart,Br as OneClickVerificationFunnelChart,yr as OneClickVerificationSuccessOverTimeChart,br as OriginalButton,kr as OverviewBigNumbers,r as PageHeader,s as PageSectionHeader,a as Paragraph,vr as PersistentDialog,Or as PhoneInput,B as PieChart,Fr as PoweredByVerified,Ir as PrettyPhoneInput,Lr as PrivacyPolicyNotice,n as QRCodeDisplay,Mr as RadioOption,D as ReasonCodesChart,A as RequiredLabel,Ar as ResendPhoneBanner,b as RiskScoreBarChart,y as RiskScorePieChart,Er as SSNInput,Ae as SSNSchema,e as SectionHeader,Rr as SelectInput,c as SeriesChart,h as SeriesChartLegend,C as SeriesPercentageChart,g as SimpleBarChart,k as SimpleLegend,Nr as SnackbarProvider,wr as SynchronizedMetricsChart,xr as TOTAL_DATA_KEY,Gr as TTSMagicButton,Yr as TTSMagicLegalLanguage,_r as TTSMagicQRCode,Wr as TTSOverTimeChart,Hr as TestPhoneNumbersBanner,zr as TextButton,Qr as TimezoneInput,R as Tunnel,o as Typography,Ce as USDateSchema,qr as VerifiedImage,Zr as VerifiedIncLogo,i as When,M as WhenStyled,ie as addressFormatter,ae as alpha,Se as birthDateSchema,oa as black,ta as blue,Oe as businessEmailSchema,ia as colors,ee as contrastColor,Va as countries,ma as dangerContrast,na as darkBlue,pa as darkGreen,la as darkGrey,fa as darkGreyContrast,da as darkRed,ua as darkYellow,re as darken,ge as dateSchema,Jr as defaultOverviewMetrics,ve as descriptionSchema,Fe as emailSchema,Vr as enrichWithTotal,Kr as exportBillableEventsToCsv,Ie as fieldSchema,Aa as formatDateMMDDYYYY,Ea as formatDateMMYY,Ra as formatDateToTimestamp,Na as formatExtendedDate,$r as formatInTimeZone,jr as formatIntegrationType,wa as formatLogTimestamp,me as fromUSAddress,Xa as generateKeyFromString,Te as getDateSchemaWithPastValidation,Ua as getPhoneData,Ga as getPhoneDataByFieldName,se as getThemeFromPrimaryColor,Ee as getUnixSchema,ca as green,ha as grey,Ca as greyContrast,Sa as infoContrast,ja as kebabCaseToPretty,ga as lightBlue,Ta as lightGreen,Pa as lightGrey,Da as lightGreyContrast,Ba as lightRed,ya as lightYellow,oe as lighten,ue as makeGoogleFontUrl,as as mapBillableEventsProductTableData,Xr as mapBillableEventsTableData,es as mapOneClickVerificationAreaSeriesData,rs as mapOneClickVerificationFunnelChartData,ss as mapOneClickVerificationSuccessOverTimeChartData,os as mapSeriesTimeSeriesData,ts as mapTTSTimeSeriesData,Ha as masks,Ur as mergeChartData,te as mix,Re as npiSchema,za as omitProperties,ne as parseCountryCode,Ya as parseToPhoneNational,Le as phoneSchema,ce as prepareNotification,ba as red,Pe as refineAge18Plus,De as refineMinimumDate1900,Be as refineTimestamp,he as resolveLogo,La as shadows,_a as sortByCountryName,Qa as ssnFormatter,qa as ssnRegex,Ne as stateSchema,Za as stringToHashedColor,ka as textDisabled,Ia as theme,Ka as toCapitalize,is as toCreatePatchCredentials,ms as toOption,$a as toSentenceCase,ps as toShareCredentials,pe as toUSaddress,le as toUSaddressPretty,xa as toUTCMilliseconds,sa as useBidirectionalScroll,ns as useBrandFilterInput,U as useCallbackRef,ls as useColorMap,w as useCopyToClipboard,J as useCounter,aa as useDebounceCallback,_ as useDebounceValue,x as useDisclosure,nr as useForm,V as useGoogleFont,Z as useIntersectionObserver,N as useLocalStorage,Sr as useMetrics,X as useNavigatorOnline,ra as useNetworkType,K as useOnClickOutside,$ as usePrevious,G as useQRCode,j as useResizeObserver,W as useScript,Y as useSearchParams,l as useSnackbar,ea as useStyledQRCode,fs as useTTSMagicLink,ds as useTTSMagicQRCode,us as useTTSMagicQRCodeOptions,cs as useTTSMagicText,H as useThrottle,z as useToggle,Q as useWindowScroll,q as useWindowSize,Ja as uuidToHashedColor,ye as validateAge18Plus,be as validateMinimumDate1900,Wa as validatePhone,ke as validateTimestamp,va as warningContrast,Oa as white,Ma as wrapPromise,Fa as yellow,we as zipCodeSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "9.11.1-beta.1",
3
+ "version": "9.12.0",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -1,13 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { ChallengePrompt } from './format';
3
- export interface BrandChallengePromptsTooltipProps {
4
- prompts?: readonly ChallengePrompt[];
5
- children: ReactNode;
6
- }
7
- /**
8
- * Wraps `children` with a hover tooltip listing the brand's challenge prompts.
9
- * When `prompts` is empty or undefined, renders `children` unwrapped, no
10
- * tooltip mounts, so dense surfaces (e.g. billing tables with many rows) pay
11
- * zero per-row Popper cost when there's nothing to show.
12
- */
13
- export declare function BrandChallengePromptsTooltip({ prompts, children, }: Readonly<BrandChallengePromptsTooltipProps>): ReactElement;
@@ -1 +0,0 @@
1
- "use strict";import{Box as a,Typography as p,Tooltip as i}from"@mui/material";import{formatChallengePrompt as l}from"./format.mjs";import{jsx as e,Fragment as m}from"react/jsx-runtime";function s({prompts:r,children:o}){if(!r||r.length===0)return e(m,{children:o});const t=e(a,{children:r.map(n=>e(p,{variant:"caption",component:"div",children:l(n)},`${n.type}-${n.promptForChallenge}`))});return e(i,{title:t,describeChild:!0,placement:"top",arrow:!0,enterDelay:300,children:e("span",{tabIndex:0,children:o})})}export{s as BrandChallengePromptsTooltip};
@@ -1,17 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { BrandChallengePromptsTooltipProps } from './BrandChallengePromptsTooltip';
3
- interface LazyProps extends Omit<BrandChallengePromptsTooltipProps, 'children'> {
4
- children: ReactNode;
5
- }
6
- /**
7
- * Defers mounting the underlying MUI `Tooltip` until the trigger is hovered or
8
- * focused. Use in dense surfaces (e.g. tables with 50+ rows) to avoid the
9
- * documented Popper-render cost of mounting one Tooltip per row up front
10
- * (see MUI #27057, #41144).
11
- *
12
- * For sparse surfaces (chart legend with <50 entries), prefer
13
- * `<BrandChallengePromptsTooltip>` directly — the lazy-mount wrapper has no
14
- * benefit and the extra re-render hurts.
15
- */
16
- export declare function LazyBrandChallengePromptsTooltip({ prompts, children, }: Readonly<LazyProps>): ReactElement;
17
- export {};
@@ -1 +0,0 @@
1
- "use strict";import{useState as s}from"react";import{BrandChallengePromptsTooltip as a}from"./BrandChallengePromptsTooltip.mjs";import{jsx as n}from"react/jsx-runtime";function p({prompts:t,children:o}){const[e,r]=s(!1);return e?n(a,{prompts:t,children:o}):n("span",{tabIndex:0,onMouseEnter:()=>r(!0),onFocus:()=>r(!0),children:o})}export{p as LazyBrandChallengePromptsTooltip};
@@ -1,9 +0,0 @@
1
- export type ChallengeInputType = 'birthDate' | 'ssn4' | 'fullName.firstName';
2
- export type ChallengePromptBehavior = 'always' | 'ifNecessary';
3
- export interface ChallengePrompt {
4
- type: ChallengeInputType;
5
- promptForChallenge: ChallengePromptBehavior;
6
- }
7
- export declare function formatChallengeInput(type: ChallengeInputType): string;
8
- export declare function formatChallengePromptBehavior(behavior: ChallengePromptBehavior): string;
9
- export declare function formatChallengePrompt(prompt: ChallengePrompt): string;
@@ -1 +0,0 @@
1
- "use strict";const t={birthDate:"Birth Date",ssn4:"SSN (last 4)","fullName.firstName":"First Name"},n={always:"Always",ifNecessary:"If Necessary"};function a(e){return t[e]??e}function r(e){return n[e]??e}function s(e){return`${a(e.type)}: ${r(e.promptForChallenge)}`}export{a as formatChallengeInput,s as formatChallengePrompt,r as formatChallengePromptBehavior};
@@ -1,3 +0,0 @@
1
- export type { ChallengePrompt } from './format';
2
- export { BrandChallengePromptsTooltip, type BrandChallengePromptsTooltipProps, } from './BrandChallengePromptsTooltip';
3
- export { LazyBrandChallengePromptsTooltip } from './LazyBrandChallengePromptsTooltip';