@justifi/webcomponents 6.5.1-rc.4 → 6.5.1-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-T54BeR4n.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/{package-Dptg-P5y.js → package-JstJdxIu.js} +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-C8hgGLFx.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/{package-czPIvHxt.js → package-DEhd71m_.js} +1 -1
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-0b760c4f.entry.js → p-04b23547.entry.js} +1 -1
- package/dist/webcomponents/{p-9ef4288b.entry.js → p-04ed045b.entry.js} +1 -1
- package/dist/webcomponents/{p-9d67209d.entry.js → p-20608f0c.entry.js} +1 -1
- package/dist/webcomponents/{p-2bd821a8.entry.js → p-266a9aee.entry.js} +1 -1
- package/dist/webcomponents/{p-5981869a.entry.js → p-2bafa257.entry.js} +1 -1
- package/dist/webcomponents/{p-deda2e9d.entry.js → p-3101565c.entry.js} +1 -1
- package/dist/webcomponents/{p-d7a06b34.entry.js → p-42c3bda4.entry.js} +1 -1
- package/dist/webcomponents/p-5a3687bf.entry.js +1 -0
- package/dist/webcomponents/{p-e00fb7b1.entry.js → p-7128920a.entry.js} +1 -1
- package/dist/webcomponents/{p-db17bc59.entry.js → p-73388c68.entry.js} +1 -1
- package/dist/webcomponents/{p-306c7c33.entry.js → p-7a3d9c24.entry.js} +1 -1
- package/dist/webcomponents/{p-50a4d4c4.entry.js → p-8c07d9f0.entry.js} +1 -1
- package/dist/webcomponents/{p-21c060ce.entry.js → p-8cfda6c1.entry.js} +1 -1
- package/dist/webcomponents/p-90de8098.entry.js +1 -0
- package/dist/webcomponents/{p-c9b50493.entry.js → p-9efd1bce.entry.js} +1 -1
- package/dist/webcomponents/{p-aec7a3c8.entry.js → p-9fef2496.entry.js} +1 -1
- package/dist/webcomponents/{p-CApezhx9.js → p-C6wS5-M7.js} +1 -1
- package/dist/webcomponents/p-DEhd71m_.js +1 -0
- package/dist/webcomponents/{p-e07bf523.entry.js → p-a9bd4e27.entry.js} +1 -1
- package/dist/webcomponents/{p-3aaedf9d.entry.js → p-c364c76d.entry.js} +1 -1
- package/dist/webcomponents/{p-75f3161c.entry.js → p-cfd858be.entry.js} +1 -1
- package/dist/webcomponents/{p-26e95adb.entry.js → p-d1951301.entry.js} +1 -1
- package/dist/webcomponents/{p-f6ec50c9.entry.js → p-de35abb6.entry.js} +1 -1
- package/dist/webcomponents/{p-38ff97ea.entry.js → p-e47a2592.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/docs/entities/businessdetails/index.mdx +5 -2
- package/docs/entities/businessform/index.mdx +1 -2
- package/docs/entities/payment-provisioning/index.mdx +1 -1
- package/docs/helpers/PartsTable.js +50 -0
- package/docs/helpers/PropsTable.js +56 -0
- package/docs/helpers/index.js +4 -0
- package/docs/helpers/version.js +32 -0
- package/docs/merchant-tools/checkouts-list/index.mdx +1 -1
- package/docs/merchant-tools/gross-payments-chart/index.mdx +1 -1
- package/docs/merchant-tools/order-terminals/index.mdx +1 -1
- package/docs/merchant-tools/payment-details/index.mdx +1 -2
- package/docs/merchant-tools/payment-transactions-list/index.mdx +1 -1
- package/docs/merchant-tools/payments-list/index.mdx +1 -1
- package/docs/merchant-tools/payout-details/index.mdx +1 -1
- package/docs/merchant-tools/payout-transactions-list/index.mdx +1 -1
- package/docs/merchant-tools/payouts-list/index.mdx +1 -1
- package/docs/merchant-tools/terminal-orders-list/index.mdx +1 -1
- package/docs/merchant-tools/terminals-list/index.mdx +1 -1
- package/docs/modular-checkout/introduction/index.mdx +1 -1
- package/docs/modular-checkout/sub-components/apple-pay.mdx +1 -2
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +1 -2
- package/docs/modular-checkout/sub-components/card-form.mdx +1 -2
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +1 -1
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +1 -2
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +1 -2
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +1 -2
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +1 -2
- package/docs/modular-checkout/sub-components/summary.mdx +1 -2
- package/docs/payment-facilitation/dispute-management/index.mdx +1 -1
- package/docs/payment-facilitation/refund-payment/index.mdx +1 -2
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +1 -2
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-7661c41a.entry.js +0 -1
- package/dist/webcomponents/p-92a43706.entry.js +0 -1
- package/dist/webcomponents/p-czPIvHxt.js +0 -1
|
@@ -5,8 +5,7 @@ description: Guided UI for issuing full or partial refunds with reason codes and
|
|
|
5
5
|
sidebar_position: 33
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { PropsTable, PartsTable } from '
|
|
9
|
-
import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
|
|
8
|
+
import { PropsTable, PartsTable, getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
|
|
10
9
|
|
|
11
10
|
## Overview
|
|
12
11
|
|
|
@@ -5,8 +5,7 @@ description: Secure standalone card/bank tokenization form with built-in validat
|
|
|
5
5
|
sidebar_position: 1
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { PropsTable, PartsTable } from '
|
|
9
|
-
import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
|
|
8
|
+
import { PropsTable, PartsTable, getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
|
|
10
9
|
|
|
11
10
|
## Overview
|
|
12
11
|
|
|
@@ -5,7 +5,7 @@ description: Unified Fintech Checkout™ component that orchestrates payment cap
|
|
|
5
5
|
sidebar_position: 20
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { PropsTable, PartsTable } from '
|
|
8
|
+
import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as o}from"./p-CPtsjcdm.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{d as p}from"./p-BpaE8q5f.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-BNqo3kt0.js";import{c,J as m}from"./p-CApezhx9.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-wtuY7MT2.js";import"./p-czPIvHxt.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await i.fetchPayout(t,s);c.error?e({error:h(c.error),code:a(null===(n=c.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(c.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as s,c as i}from"./p-DwYM91AU.js";import{A as e}from"./p-C8yN3uBj.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-BpaE8q5f.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-CApezhx9.js";import{c as h}from"./p-DU8dqq9U.js";import{p as d,f as p,r as u,j as v}from"./p-BS7OgSQe.js";import{v as m,i as f,a as y,H as j}from"./p-nrZ9yHcl.js";import{D as g,E as _}from"./p-wtuY7MT2.js";import{S as w}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-c7MCfTgE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-czPIvHxt.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const k=e();class T{async fetchQuote(t,s){return k.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return k.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const b=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(C,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(C,{width:"70%"})),t("div",{class:"col-12"},t(C,{width:"40%"})),t("div",{class:"col-12"},t(C,{width:"40%"})),t("div",{class:"col-12"},t(C,{width:"100%"})),t("div",{class:"col-12"},t(C,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",g),t=>v(t,"p","part",g)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new T};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),f[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,y[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),f[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return y[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(w,null,this.isLoading?t(b,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),t("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"@justifi/webcomponents",version:"6.5.1-rc.4"};export{e as p}
|