@justifi/webcomponents 0.0.9 → 0.0.11

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.
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["justifi-bank-account-form_4.cjs",[[0,"justifi-bank-account-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[0,"justifi-card-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}],[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}],[0,"justifi-payment-method-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}]]]], options);
17
+ return index.bootstrapLazy([["justifi-bank-account-form_4.cjs",[[0,"justifi-bank-account-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[0,"justifi-card-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}],[0,"justifi-payment-method-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["justifi-bank-account-form_4.cjs",[[0,"justifi-bank-account-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[0,"justifi-card-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}],[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}],[0,"justifi-payment-method-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}]]]], options);
18
+ return index.bootstrapLazy([["justifi-bank-account-form_4.cjs",[[0,"justifi-bank-account-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[0,"justifi-card-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormChange","changeHandler"],[0,"paymentMethodFormBlur","blurHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"]]],[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}],[0,"justifi-payment-method-form",{"iframeOrigin":[1,"iframe-origin"],"tokenize":[64]}]]]], options);
19
19
  });
@@ -2,8 +2,8 @@
2
2
  "entries": [
3
3
  "./components/bank-account-form/bank-account-form.js",
4
4
  "./components/card-form/card-form.js",
5
- "./components/payments-list/payments-list.js",
6
- "./components/payment-method-form/payment-method-form.js"
5
+ "./components/payment-method-form/payment-method-form.js",
6
+ "./components/payments-list/payments-list.js"
7
7
  ],
8
8
  "compiler": {
9
9
  "name": "@stencil/core",
@@ -3,6 +3,18 @@ export class CardForm {
3
3
  constructor() {
4
4
  this.iframeOrigin = undefined;
5
5
  }
6
+ readyHandler(event) {
7
+ this.cardFormReady.emit(event);
8
+ }
9
+ changeHandler(event) {
10
+ this.cardFormChange.emit(event);
11
+ }
12
+ blurHandler(event) {
13
+ this.cardFormBlur.emit(event);
14
+ }
15
+ tokenizeHandler(event) {
16
+ this.cardFormTokenize.emit(event);
17
+ }
6
18
  async tokenize(...args) {
7
19
  if (!this.childRef) {
8
20
  throw new Error('Cannot call tokenize');
@@ -140,4 +152,31 @@ export class CardForm {
140
152
  }
141
153
  };
142
154
  }
155
+ static get listeners() {
156
+ return [{
157
+ "name": "paymentMethodFormReady",
158
+ "method": "readyHandler",
159
+ "target": undefined,
160
+ "capture": false,
161
+ "passive": false
162
+ }, {
163
+ "name": "paymentMethodFormChange",
164
+ "method": "changeHandler",
165
+ "target": undefined,
166
+ "capture": false,
167
+ "passive": false
168
+ }, {
169
+ "name": "paymentMethodFormBlur",
170
+ "method": "blurHandler",
171
+ "target": undefined,
172
+ "capture": false,
173
+ "passive": false
174
+ }, {
175
+ "name": "paymentMethodFormTokenize",
176
+ "method": "tokenizeHandler",
177
+ "target": undefined,
178
+ "capture": false,
179
+ "passive": false
180
+ }];
181
+ }
143
182
  }
@@ -1,3 +1 @@
1
- export { BankAccountForm } from './components/bank-account-form/bank-account-form';
2
- export { CardForm } from './components/card-form/card-form';
3
- export { PaymentsList } from './components/payments-list/payments-list';
1
+ export * from './components';
@@ -1,5 +1,5 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
- export { B as BankAccountForm, JustifiBankAccountForm, defineCustomElement as defineCustomElementJustifiBankAccountForm } from './justifi-bank-account-form.js';
3
- export { C as CardForm, JustifiCardForm, defineCustomElement as defineCustomElementJustifiCardForm } from './justifi-card-form.js';
4
- export { JustifiPaymentsList, P as PaymentsList, defineCustomElement as defineCustomElementJustifiPaymentsList } from './justifi-payments-list.js';
2
+ export { JustifiBankAccountForm, defineCustomElement as defineCustomElementJustifiBankAccountForm } from './justifi-bank-account-form.js';
3
+ export { JustifiCardForm, defineCustomElement as defineCustomElementJustifiCardForm } from './justifi-card-form.js';
5
4
  export { JustifiPaymentMethodForm, defineCustomElement as defineCustomElementJustifiPaymentMethodForm } from './justifi-payment-method-form.js';
5
+ export { JustifiPaymentsList, defineCustomElement as defineCustomElementJustifiPaymentsList } from './justifi-payments-list.js';
@@ -62,4 +62,4 @@ function defineCustomElement$1() {
62
62
  const JustifiBankAccountForm = BankAccountForm;
63
63
  const defineCustomElement = defineCustomElement$1;
64
64
 
65
- export { BankAccountForm as B, JustifiBankAccountForm, defineCustomElement };
65
+ export { JustifiBankAccountForm, defineCustomElement };
@@ -13,6 +13,18 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
13
13
  this.cardFormTokenize = createEvent(this, "cardFormTokenize", 7);
14
14
  this.iframeOrigin = undefined;
15
15
  }
16
+ readyHandler(event) {
17
+ this.cardFormReady.emit(event);
18
+ }
19
+ changeHandler(event) {
20
+ this.cardFormChange.emit(event);
21
+ }
22
+ blurHandler(event) {
23
+ this.cardFormBlur.emit(event);
24
+ }
25
+ tokenizeHandler(event) {
26
+ this.cardFormTokenize.emit(event);
27
+ }
16
28
  async tokenize(...args) {
17
29
  if (!this.childRef) {
18
30
  throw new Error('Cannot call tokenize');
@@ -30,7 +42,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
30
42
  }, [0, "justifi-card-form", {
31
43
  "iframeOrigin": [1, "iframe-origin"],
32
44
  "tokenize": [64]
33
- }]);
45
+ }, [[0, "paymentMethodFormReady", "readyHandler"], [0, "paymentMethodFormChange", "changeHandler"], [0, "paymentMethodFormBlur", "blurHandler"], [0, "paymentMethodFormTokenize", "tokenizeHandler"]]]);
34
46
  function defineCustomElement$1() {
35
47
  if (typeof customElements === "undefined") {
36
48
  return;
@@ -53,4 +65,4 @@ function defineCustomElement$1() {
53
65
  const JustifiCardForm = CardForm;
54
66
  const defineCustomElement = defineCustomElement$1;
55
67
 
56
- export { CardForm as C, JustifiCardForm, defineCustomElement };
68
+ export { JustifiCardForm, defineCustomElement };
@@ -4250,4 +4250,4 @@ function defineCustomElement$1() {
4250
4250
  const JustifiPaymentsList = PaymentsList;
4251
4251
  const defineCustomElement = defineCustomElement$1;
4252
4252
 
4253
- export { JustifiPaymentsList, PaymentsList as P, defineCustomElement };
4253
+ export { JustifiPaymentsList, defineCustomElement };
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- export { B as BankAccountForm, C as CardForm, P as PaymentsList } from './payments-list-91eba70b.js';
2
- import './index-e279d85e.js';
1
+