@justifi/webcomponents 4.2.1-rc.1 → 4.2.1-rc.2
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/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/components/payment-method-form.js +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/webcomponents/{p-ef1824b4.entry.js → p-2e535890.entry.js} +2 -2
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/webcomponents/{p-ef1824b4.entry.js.map → p-2e535890.entry.js.map} +0 -0
|
@@ -22,7 +22,7 @@ const MessageEventType = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
const name = "@justifi/webcomponents";
|
|
25
|
-
const version = "4.2.1-rc.
|
|
25
|
+
const version = "4.2.1-rc.2";
|
|
26
26
|
const description = "JustiFi Web Components";
|
|
27
27
|
const main = "dist/index.cjs.js";
|
|
28
28
|
const module$1 = "dist/components/index.js";
|
|
@@ -18,7 +18,7 @@ const MessageEventType = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const name = "@justifi/webcomponents";
|
|
21
|
-
const version = "4.2.1-rc.
|
|
21
|
+
const version = "4.2.1-rc.2";
|
|
22
22
|
const description = "JustiFi Web Components";
|
|
23
23
|
const main = "dist/index.cjs.js";
|
|
24
24
|
const module = "dist/components/index.js";
|
|
@@ -18,7 +18,7 @@ const MessageEventType = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const name = "@justifi/webcomponents";
|
|
21
|
-
const version = "4.2.1-rc.
|
|
21
|
+
const version = "4.2.1-rc.2";
|
|
22
22
|
const description = "JustiFi Web Components";
|
|
23
23
|
const main = "dist/index.cjs.js";
|
|
24
24
|
const module = "dist/components/index.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as o,c as t,h as e,H as r}from"./p-3aa91155.js";const i={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};const s="@justifi/webcomponents";const n="4.2.1-rc.
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as o,c as t,h as e,H as r}from"./p-3aa91155.js";const i={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};const s="@justifi/webcomponents";const n="4.2.1-rc.2";const c="JustiFi Web Components";const d="dist/index.cjs.js";const a="dist/components/index.js";const l="dist/esm/index.mjs";const f="dist/esm/index.mjs";const m="dist/types/index.d.ts";const h="dist/collection/collection-manifest.json";const u={type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"};const b={registry:"https://registry.npmjs.org"};const p=["dist/","loader/"];const g={"auto-changelog":"auto-changelog","build:dev":"NODE_ENV=dev stencil build --docs","build:staging":"NODE_ENV=staging stencil build --docs","build:prod":"NODE_ENV=prod stencil build --docs",start:'NODE_ENV=dev concurrently -c "bgBlue.bold,bgMagenta.bold,bgGreen.bold" "yarn run start-stencil" "yarn run storybook"',"start-stencil":"stencil build --watch --serve --no-open",test:"stencil test --spec","test:watch":"stencil test --spec --watchAll","test:e2e":"stencil test --e2e",generate:"stencil generate",storybook:"storybook dev -p 6006 --quiet","build-storybook":"storybook build -o ../docs"};const y={"@stencil/core":"^3.3.0","@stencil/react-output-target":"^0.3.1",bootstrap:"^5.2.3","date-fns":"^2.29.3","dinero.js":"^1.9.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"};const j={"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@pxtrn/storybook-addon-docs-stencil":"^6.4.1","@stencil/sass":"^3.0.1","@storybook/addon-actions":"^7.0.4","@storybook/addon-essentials":"^7.0.4","@storybook/addon-interactions":"^7.0.4","@storybook/addon-links":"^7.0.4","@storybook/html":"^7.0.4","@storybook/html-webpack5":"^7.0.4","@storybook/jest":"^0.1.0","@storybook/testing-library":"^0.1.0","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11","auto-changelog":"^2.4.0",concurrently:"^7.6.0",jest:"^27.4.5","jest-cli":"^27.4.5",puppeteer:"^10.0.0",react:"^18.2.0","react-dom":"^18.2.0","release-it":"^15.6.0","rollup-plugin-replace":"^2.2.0",storybook:"^7.0.4"};const k="MIT";const w={name:s,version:n,description:c,main:d,module:a,es2015:l,es2017:f,types:m,collection:h,"collection:main":"dist/collection/index.js",repository:u,publishConfig:b,files:p,scripts:g,"auto-changelog":{output:"../CHANGELOG.md",hideCredtis:"true",commitLimit:"true"},dependencies:y,devDependencies:j,license:k};const v=()=>{const o=getComputedStyle(document.body);const t={layout:{padding:o.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:o.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:o.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:o.getPropertyValue("--jfi-form-control-background-color"),borderColor:o.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:o.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:o.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:o.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:o.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:o.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:o.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:o.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:o.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:o.getPropertyValue("--jfi-form-control-border-style"),boxShadow:o.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:o.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:o.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:o.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:o.getPropertyValue("--jfi-form-control-color"),colorFocus:o.getPropertyValue("--jfi-form-control-color-focus"),fontSize:o.getPropertyValue("--jfi-form-control-font-size"),fontWeight:o.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:o.getPropertyValue("--jfi-form-control-line-height"),margin:o.getPropertyValue("--jfi-form-control-margin"),padding:o.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:o.getPropertyValue("--jfi-form-label-color"),fontFamily:o.getPropertyValue("--jfi-form-label-font-family"),fontSize:o.getPropertyValue("--jfi-form-label-font-size"),fontWeight:o.getPropertyValue("--jfi-form-label-font-weight"),margin:o.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:o.getPropertyValue("--jfi-error-message-color"),margin:o.getPropertyValue("--jfi-error-message-margin"),fontSize:o.getPropertyValue("--jfi-error-message-font-size")}};return t};const z=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}";const x=class{constructor(e){o(this,e);this.paymentMethodFormReady=t(this,"paymentMethodFormReady",7);this.paymentMethodFormTokenize=t(this,"paymentMethodFormTokenize",7);this.computedTheme=v();this.paymentMethodFormType=undefined;this.paymentMethodFormValidationMode=undefined;this.iframeOrigin=undefined;this.singleLine=undefined;this.height=55}connectedCallback(){window.addEventListener("message",this.dispatchMessageEvent.bind(this))}disconnectedCallback(){window.removeEventListener("message",this.dispatchMessageEvent.bind(this))}componentShouldUpdate(){this.sendStyleOverrides()}sendStyleOverrides(){if(this.computedTheme){this.postMessage(i[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}}dispatchMessageEvent(o){const t=o.data;const e=t.eventType;const r=t.data;if(e===i[this.paymentMethodFormType].ready){this.paymentMethodFormReady.emit(r)}if(e===i[this.paymentMethodFormType].resize){this.height=r.height}}postMessage(o,t){var e,r;(r=(e=this.iframeElement)===null||e===void 0?void 0:e.contentWindow)===null||r===void 0?void 0:r.postMessage(Object.assign({eventType:o},t),"*")}async postMessageWithResponseListener(o,t){return new Promise((e=>{const r=t=>{if(t.data.eventType!==o)return;window.removeEventListener("message",r);e(t.data.data)};window.addEventListener("message",r);this.postMessage(o,t)}))}async tokenize(o,t,e){const r=i[this.paymentMethodFormType].tokenize;const s={clientId:o,componentVersion:w.version,paymentMethodMetadata:t,account:e};return this.postMessageWithResponseListener(r,s)}async validate(){return this.postMessageWithResponseListener(i[this.paymentMethodFormType].validate)}async resize(){this.postMessage(i[this.paymentMethodFormType].resize)}composeQueryParams(o){const t=o.map((t=>{if(t===o[0]){return t=`?${t}`}else{return t=`&${t}`}}));return t.join("")}getIframeSrc(){const o=this.iframeOrigin||"";let t=`${o}/${this.paymentMethodFormType}`;let e=[];if(this.paymentMethodFormValidationMode){e.push(`validationMode=${this.paymentMethodFormValidationMode}`)}if(this.singleLine){e.push(`singleLine=${this.singleLine}`)}return t.concat(this.composeQueryParams(e))}render(){return e(r,null,e("iframe",{id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:o=>this.iframeElement=o,height:this.height}))}};x.style=z;export{x as justifi_payment_method_form};
|
|
2
|
+
//# sourceMappingURL=p-2e535890.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-3aa91155.js";export{s as setNonce}from"./p-3aa91155.js";const i=()=>{const t=import.meta.url;const i={};if(t!==""){i.resourcesUrl=new URL(".",t).href}return e(i)};i().then((e=>t([["p-d87b0711",[[1,"justifi-payment-form",{bankAccount:[4,"bank-account"],card:[4],email:[1],iframeOrigin:[1,"iframe-origin"],clientId:[1,"client-id"],accountId:[1,"account-id"],submitButtonText:[1,"submit-button-text"],submitButtonEnabled:[32],isLoading:[32],selectedPaymentMethodType:[32],allowedPaymentMethodTypes:[32],fillBillingForm:[64],enableSubmitButton:[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["p-255b1284",[[1,"justifi-business-address",{businessAddress:[32],businessAddressErrors:[32],submit:[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["p-90c0d9e1",[[1,"justifi-business-info",{authToken:[1,"auth-token"],businessId:[1,"business-id"],businessInfoPrefillData:[32],businessInfo:[32],businessInfoFieldsErrors:[32],submit:[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-3aa91155.js";export{s as setNonce}from"./p-3aa91155.js";const i=()=>{const t=import.meta.url;const i={};if(t!==""){i.resourcesUrl=new URL(".",t).href}return e(i)};i().then((e=>t([["p-d87b0711",[[1,"justifi-payment-form",{bankAccount:[4,"bank-account"],card:[4],email:[1],iframeOrigin:[1,"iframe-origin"],clientId:[1,"client-id"],accountId:[1,"account-id"],submitButtonText:[1,"submit-button-text"],submitButtonEnabled:[32],isLoading:[32],selectedPaymentMethodType:[32],allowedPaymentMethodTypes:[32],fillBillingForm:[64],enableSubmitButton:[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["p-255b1284",[[1,"justifi-business-address",{businessAddress:[32],businessAddressErrors:[32],submit:[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["p-90c0d9e1",[[1,"justifi-business-info",{authToken:[1,"auth-token"],businessId:[1,"business-id"],businessInfoPrefillData:[32],businessInfo:[32],businessInfoFieldsErrors:[32],submit:[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["p-2e535890",[[0,"justifi-payment-method-form",{paymentMethodFormType:[1,"payment-method-form-type"],paymentMethodFormValidationMode:[1025,"payment-method-form-validation-mode"],iframeOrigin:[1,"iframe-origin"],singleLine:[4,"single-line"],height:[32],tokenize:[64],validate:[64],resize:[64]}]]],["p-bd5352d6",[[0,"justifi-bank-account-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-0969db8f",[[0,"justifi-card-form",{validationMode:[1025,"validation-mode"],iframeOrigin:[1025,"iframe-origin"],singleLine:[4,"single-line"],internalStyleOverrides:[32],tokenize:[64],validate:[64],resize:[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["p-f30d1567",[[1,"justifi-payments-list",{accountId:[1,"account-id"],auth:[16],payments:[32]}]]],["p-dbf7100f",[[1,"select-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],options:[16],internalValue:[32]}],[1,"text-input",{name:[1],label:[1],defaultValue:[1,"default-value"],error:[1],internalValue:[32]}]]],["p-c903cc5a",[[1,"justifi-billing-form",{legend:[1],billingFields:[32],billingFieldsErrors:[32],fill:[64],validate:[64],getValues:[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{paymentMethodTypes:[16],selectedPaymentMethodType:[1,"selected-payment-method-type"]}]]]],e)));
|
|
2
2
|
//# sourceMappingURL=webcomponents.esm.js.map
|
package/package.json
CHANGED
|
File without changes
|