@justifi/webcomponents 6.5.1-rc.4 → 6.5.1-rc.7

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 (119) hide show
  1. package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-BHAFLsKe.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/{package-Dptg-P5y.js → package-CZK-K7yM.js} +1 -1
  25. package/dist/docs.json +1 -1
  26. package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-ClZuo82s.js} +1 -1
  27. package/dist/esm/hidden-input_2.entry.js +1 -1
  28. package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
  29. package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
  30. package/dist/esm/justifi-business-details.entry.js +2 -2
  31. package/dist/esm/justifi-business-form.entry.js +2 -2
  32. package/dist/esm/justifi-checkout.entry.js +2 -2
  33. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  34. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  35. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  36. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  37. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  38. package/dist/esm/justifi-payment-details.entry.js +2 -2
  39. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  40. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  41. package/dist/esm/justifi-payments-list.entry.js +2 -2
  42. package/dist/esm/justifi-payout-details.entry.js +2 -2
  43. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  44. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  45. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  46. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  47. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  48. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  49. package/dist/esm/{package-czPIvHxt.js → package-C3_8r8V7.js} +1 -1
  50. package/dist/module/package.js +1 -1
  51. package/dist/webcomponents/{p-2bd821a8.entry.js → p-082efda3.entry.js} +1 -1
  52. package/dist/webcomponents/{p-f6ec50c9.entry.js → p-12499226.entry.js} +1 -1
  53. package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
  54. package/dist/webcomponents/p-215ce79e.entry.js +1 -0
  55. package/dist/webcomponents/{p-aec7a3c8.entry.js → p-239d1d07.entry.js} +1 -1
  56. package/dist/webcomponents/{p-0b760c4f.entry.js → p-23a3e38e.entry.js} +1 -1
  57. package/dist/webcomponents/{p-21c060ce.entry.js → p-27b88afd.entry.js} +1 -1
  58. package/dist/webcomponents/{p-75f3161c.entry.js → p-2a347349.entry.js} +1 -1
  59. package/dist/webcomponents/{p-9d67209d.entry.js → p-3787cf63.entry.js} +1 -1
  60. package/dist/webcomponents/{p-db17bc59.entry.js → p-476ebd43.entry.js} +1 -1
  61. package/dist/webcomponents/p-64ddd8ea.entry.js +1 -0
  62. package/dist/webcomponents/p-7becc3d3.entry.js +1 -0
  63. package/dist/webcomponents/p-8071daf3.entry.js +1 -0
  64. package/dist/webcomponents/{p-26e95adb.entry.js → p-93aa2d31.entry.js} +1 -1
  65. package/dist/webcomponents/{p-e07bf523.entry.js → p-9e346c2e.entry.js} +1 -1
  66. package/dist/webcomponents/p-C3_8r8V7.js +1 -0
  67. package/dist/webcomponents/p-a9ea2c82.entry.js +1 -0
  68. package/dist/webcomponents/{p-306c7c33.entry.js → p-aaef1450.entry.js} +1 -1
  69. package/dist/webcomponents/{p-e00fb7b1.entry.js → p-beb0a3c8.entry.js} +1 -1
  70. package/dist/webcomponents/{p-3aaedf9d.entry.js → p-d3697504.entry.js} +1 -1
  71. package/dist/webcomponents/{p-d7a06b34.entry.js → p-d9c090b6.entry.js} +1 -1
  72. package/dist/webcomponents/{p-38ff97ea.entry.js → p-f11eb1bc.entry.js} +1 -1
  73. package/dist/webcomponents/{p-5981869a.entry.js → p-f358610a.entry.js} +1 -1
  74. package/dist/webcomponents/{p-CApezhx9.js → p-sassRpOu.js} +1 -1
  75. package/dist/webcomponents/webcomponents.esm.js +1 -1
  76. package/docs/entities/businessdetails/index.mdx +55 -72
  77. package/docs/entities/businessform/index.mdx +13 -19
  78. package/docs/entities/payment-provisioning/index.mdx +9 -17
  79. package/docs/helpers/PartsTable.jsx +29 -0
  80. package/docs/helpers/PropsTable.jsx +35 -0
  81. package/docs/helpers/{version.ts → version.js} +2 -2
  82. package/docs/merchant-tools/checkouts-list/index.mdx +50 -64
  83. package/docs/merchant-tools/gross-payments-chart/index.mdx +17 -19
  84. package/docs/merchant-tools/order-terminals/index.mdx +13 -17
  85. package/docs/merchant-tools/payment-details/index.mdx +13 -16
  86. package/docs/merchant-tools/payment-transactions-list/index.mdx +13 -17
  87. package/docs/merchant-tools/payments-list/index.mdx +13 -19
  88. package/docs/merchant-tools/payout-details/index.mdx +47 -57
  89. package/docs/merchant-tools/payout-transactions-list/index.mdx +13 -17
  90. package/docs/merchant-tools/payouts-list/index.mdx +13 -19
  91. package/docs/merchant-tools/terminal-orders-list/index.mdx +13 -17
  92. package/docs/merchant-tools/terminals-list/index.mdx +13 -17
  93. package/docs/modular-checkout/index.mdx +0 -5
  94. package/docs/modular-checkout/introduction/index.mdx +13 -15
  95. package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -22
  96. package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -51
  97. package/docs/modular-checkout/sub-components/card-form.mdx +50 -54
  98. package/docs/modular-checkout/sub-components/payment-method-options.mdx +13 -15
  99. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -55
  100. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -55
  101. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -24
  102. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -109
  103. package/docs/modular-checkout/sub-components/summary.mdx +13 -14
  104. package/docs/payment-facilitation/dispute-management/index.mdx +13 -17
  105. package/docs/payment-facilitation/refund-payment/index.mdx +22 -15
  106. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -45
  107. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +104 -123
  108. package/package.json +1 -1
  109. package/dist/webcomponents/p-50a4d4c4.entry.js +0 -1
  110. package/dist/webcomponents/p-7661c41a.entry.js +0 -1
  111. package/dist/webcomponents/p-92a43706.entry.js +0 -1
  112. package/dist/webcomponents/p-9ef4288b.entry.js +0 -1
  113. package/dist/webcomponents/p-c9b50493.entry.js +0 -1
  114. package/dist/webcomponents/p-czPIvHxt.js +0 -1
  115. package/dist/webcomponents/p-deda2e9d.entry.js +0 -1
  116. package/docs/helpers/PartsTable.ts +0 -55
  117. package/docs/helpers/PropsTable.ts +0 -63
  118. package/docs/modular-checkout/docs/index.mdx +0 -32
  119. package/docs/modular-checkout/example/index.mdx +0 -25
@@ -5,7 +5,7 @@ description: Paginated reporting table for monitoring active and past checkouts.
5
5
  sidebar_position: 26
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -15,11 +15,13 @@ Component to render a formated list of checkouts for the requested account.
15
15
 
16
16
  ### Basic list with filters
17
17
 
18
- <pre><code className="language-html">{`<justifi-checkouts-list-filters></justifi-checkouts-list-filters>
18
+ <pre>
19
+ <code className="language-html">{`<justifi-checkouts-list-filters></justifi-checkouts-list-filters>
19
20
  <justifi-checkouts-list
20
21
  account-id="acc_123"
21
22
  auth-token="wct_reportingToken"
22
- />`}</code></pre>
23
+ />`}</code>
24
+ </pre>
23
25
 
24
26
  ### Custom columns
25
27
 
@@ -27,30 +29,28 @@ Pass a comma-separated list to the `columns` prop (`created_at,payment_amount,st
27
29
 
28
30
  ## Props, Events & Methods
29
31
 
30
- <div
31
- dangerouslySetInnerHTML={{
32
- __html: PropsTable([
33
- {
34
- name: 'account-id',
35
- type: 'string',
36
- required: true,
37
- description: 'Platform or sub-account whose checkouts should appear.',
38
- },
39
- {
40
- name: 'auth-token',
41
- type: 'string',
42
- required: true,
43
- description: 'Token with `read:checkouts` scope.',
44
- },
45
- {
46
- name: 'columns',
47
- type: 'string',
48
- defaultValue:
49
- 'created_at,payment_amount,payment_description,payment_mode,status',
50
- description: 'Controls which table columns render and their order.',
51
- },
52
- ]),
53
- }}
32
+ <PropsTable
33
+ rows={[
34
+ {
35
+ name: 'account-id',
36
+ type: 'string',
37
+ required: true,
38
+ description: 'Platform or sub-account whose checkouts should appear.',
39
+ },
40
+ {
41
+ name: 'auth-token',
42
+ type: 'string',
43
+ required: true,
44
+ description: 'Token with `read:checkouts` scope.',
45
+ },
46
+ {
47
+ name: 'columns',
48
+ type: 'string',
49
+ defaultValue:
50
+ 'created_at,payment_amount,payment_description,payment_mode,status',
51
+ description: 'Controls which table columns render and their order.',
52
+ },
53
+ ]}
54
54
  />
55
55
 
56
56
  ### Events
@@ -65,43 +65,29 @@ Pass a comma-separated list to the `columns` prop (`created_at,payment_amount,st
65
65
 
66
66
  ## Theming & Layout
67
67
 
68
- <div
69
- dangerouslySetInnerHTML={{
70
- __html: PartsTable([
71
- {
72
- name: 'font-family',
73
- description: 'Controls the font family for the component.',
74
- },
75
- {
76
- name: 'color',
77
- description: 'Controls the text color.',
78
- },
79
- {
80
- name: 'background-color',
81
- description: 'Controls the background color.',
82
- },
83
- {
84
- name: 'button',
85
- description: 'Button styles.',
86
- },
87
- {
88
- name: 'button-disabled',
89
- description: 'Disabled button styles.',
90
- },
91
- ]),
92
- }}
68
+ <PartsTable
69
+ parts={[
70
+ {
71
+ name: 'font-family',
72
+ description: 'Controls the font family for the component.',
73
+ },
74
+ {
75
+ name: 'color',
76
+ description: 'Controls the text color.',
77
+ },
78
+ {
79
+ name: 'background-color',
80
+ description: 'Controls the background color.',
81
+ },
82
+ {
83
+ name: 'button',
84
+ description: 'Button styles.',
85
+ },
86
+ {
87
+ name: 'button-disabled',
88
+ description: 'Disabled button styles.',
89
+ },
90
+ ]}
93
91
  />
94
92
 
95
93
  - Filters component emits custom events; ensure both components share the same container so spacing stays consistent.
96
-
97
- ## Static examples
98
-
99
- ### Listening for row clicks
100
-
101
- <pre><code className="language-js">{`const list = document.querySelector('justifi-checkouts-list');
102
-
103
- list.addEventListener('click-event', (event) => {
104
- if (event.detail.name === 'row') {
105
- router.navigate('/checkouts/' + event.detail.checkout_id);
106
- }
107
- });`}</code></pre>
@@ -5,7 +5,7 @@ description: Visualizes gross payment volume over time with tooltips and range s
5
5
  sidebar_position: 43
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -15,16 +15,19 @@ Component to render chart displaying last 30 days of gross payment data.
15
15
 
16
16
  ### Chart monthly volume
17
17
 
18
- <pre><code className="language-html">{`<justifi-gross-payment-chart
18
+ <pre>
19
+ <code className="language-html">{`<justifi-gross-payment-chart
19
20
  account-id="acc_123"
20
21
  auth-token="wct_reporting"
21
22
  interval="month"
22
23
  range="12m"
23
- />`}</code></pre>
24
+ />`}</code>
25
+ </pre>
24
26
 
25
27
  ## Props, Events & Methods
26
28
 
27
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
29
+ <PropsTable
30
+ rows={[
28
31
  {
29
32
  name: 'account-id',
30
33
  type: 'string',
@@ -49,7 +52,8 @@ Component to render chart displaying last 30 days of gross payment data.
49
52
  defaultValue: '30d',
50
53
  description: 'Total timeframe (e.g., `7d`, `3m`, `12m`).',
51
54
  },
52
- ]) }} />
55
+ ]}
56
+ />
53
57
 
54
58
  ### Events
55
59
 
@@ -61,21 +65,15 @@ Component to render chart displaying last 30 days of gross payment data.
61
65
 
62
66
  ## Theming & Layout
63
67
 
64
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
65
- { name: 'chart', description: 'SVG/Canvas container for the line chart.' },
68
+ <PartsTable
69
+ parts={[
70
+ {
71
+ name: 'chart',
72
+ description: 'SVG/Canvas container for the line chart.',
73
+ },
66
74
  {
67
75
  name: 'tooltip',
68
76
  description: 'Floating tooltip bubble when hovering/focusing a point.',
69
77
  },
70
- ]) }} />
71
-
72
- ## Static examples
73
-
74
- ### Toggle ranges
75
-
76
- <pre><code className="language-js">{`const chart = document.querySelector('justifi-gross-payment-chart');
77
-
78
- document.querySelector('#range').addEventListener('change', (event) => {
79
- chart.setAttribute('range', event.target.value);
80
- chart.refresh();
81
- });`}</code></pre>
78
+ ]}
79
+ />
@@ -5,7 +5,7 @@ description: Guided purchasing flow for ordering in-person terminals and accesso
5
5
  sidebar_position: 50
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to render a form for terminal order requests.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-order-terminals
16
+ <pre>
17
+ <code className="language-html">{`<justifi-order-terminals
17
18
  account-id="acc_123"
18
19
  auth-token="wct_terminals"
19
20
  shipping-contact="contact_456"
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -45,7 +48,8 @@ Component to render a form for terminal order requests.
45
48
  type: 'string',
46
49
  description: 'Comma-separated SKU list to limit which devices appear.',
47
50
  },
48
- ]) }} />
51
+ ]}
52
+ />
49
53
 
50
54
  ### Events
51
55
 
@@ -58,7 +62,8 @@ Component to render a form for terminal order requests.
58
62
 
59
63
  ## Theming & Layout
60
64
 
61
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
65
+ <PartsTable
66
+ parts={[
62
67
  {
63
68
  name: 'font-family',
64
69
  description: 'Controls the font family for the component.',
@@ -71,14 +76,5 @@ Component to render a form for terminal order requests.
71
76
  name: 'background-color',
72
77
  description: 'Controls the background color.',
73
78
  },
74
- ]) }} />
75
-
76
- ## Static examples
77
-
78
- ### Restrict SKUs
79
-
80
- <pre><code className="language-html">{`<justifi-order-terminals
81
- account-id="acc_123"
82
- auth-token="wct_terminals"
83
- allowed-products="WISEPAD_3,WISEPOS_E"
84
- />`}</code></pre>
79
+ ]}
80
+ />
@@ -5,8 +5,11 @@ description: Detailed view for a single payment, including customer data, timeli
5
5
  sidebar_position: 30
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -67,7 +70,8 @@ Component to display detailed information about a specific payment.
67
70
 
68
71
  ## Props, Events & Methods
69
72
 
70
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
73
+ <PropsTable
74
+ rows={[
71
75
  {
72
76
  name: 'account-id',
73
77
  type: 'string',
@@ -92,7 +96,8 @@ Component to display detailed information about a specific payment.
92
96
  defaultValue: 'true',
93
97
  description: 'Hide when you only need a read-only audit surface.',
94
98
  },
95
- ]) }} />
99
+ ]}
100
+ />
96
101
 
97
102
  ### Events
98
103
 
@@ -105,7 +110,8 @@ Component to display detailed information about a specific payment.
105
110
 
106
111
  ## Theming & Layout
107
112
 
108
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
113
+ <PartsTable
114
+ parts={[
109
115
  {
110
116
  name: 'font-family',
111
117
  description: 'Controls the font family for the component.',
@@ -118,14 +124,5 @@ Component to display detailed information about a specific payment.
118
124
  name: 'background-color',
119
125
  description: 'Controls the background color.',
120
126
  },
121
- ]) }} />
122
-
123
- ## Static examples
124
-
125
- ### Hook into refund events
126
-
127
- <pre><code className="language-js">{`const details = document.querySelector('justifi-payment-details');
128
-
129
- details.addEventListener('refund-requested', ({ detail }) => {
130
- console.log('Starting refund flow for payment', detail.payment_id);
131
- });`}</code></pre>
127
+ ]}
128
+ />
@@ -5,7 +5,7 @@ description: Transaction-level ledger for payments, grouped by status and fundin
5
5
  sidebar_position: 32
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to display a list of payment transactions for a specific payment.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-payment-transactions-list
16
+ <pre>
17
+ <code className="language-html">{`<justifi-payment-transactions-list
17
18
  account-id="acc_123"
18
19
  auth-token="wct_reporting"
19
20
  filters='{"payment_id":"pay_456"}'
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -46,7 +49,8 @@ Component to display a list of payment transactions for a specific payment.
46
49
  defaultValue: 'false',
47
50
  description: 'Adds export controls when true.',
48
51
  },
49
- ]) }} />
52
+ ]}
53
+ />
50
54
 
51
55
  ### Events
52
56
 
@@ -59,7 +63,8 @@ Component to display a list of payment transactions for a specific payment.
59
63
 
60
64
  ## Theming & Layout
61
65
 
62
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
66
+ <PartsTable
67
+ parts={[
63
68
  {
64
69
  name: 'font-family',
65
70
  description: 'Controls the font family for the component.',
@@ -72,14 +77,5 @@ Component to display a list of payment transactions for a specific payment.
72
77
  name: 'background-color',
73
78
  description: 'Controls the background color.',
74
79
  },
75
- ]) }} />
76
-
77
- ## Static examples
78
-
79
- ### Listening for filter changes
80
-
81
- <pre><code className="language-js">{`const ledger = document.querySelector('justifi-payment-transactions-list');
82
-
83
- ledger.addEventListener('filter-changed', (event) => {
84
- console.log('Filters now', event.detail);
85
- });`}</code></pre>
80
+ ]}
81
+ />
@@ -5,7 +5,7 @@ description: Paginated table of payments with filtering, export, and quick actio
5
5
  sidebar_position: 31
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,7 +13,8 @@ Component to render a formated list of payments for the requested account.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<div class="payments-report">
16
+ <pre>
17
+ <code className="language-html">{`<div class="payments-report">
17
18
  <justifi-filters
18
19
  account-id="acc_123"
19
20
  auth-token="wct_reporting"
@@ -24,11 +25,13 @@ Component to render a formated list of payments for the requested account.
24
25
  auth-token="wct_reporting"
25
26
  columns="created_at,customer_name,payment_amount,status"
26
27
  ></justifi-payments-list>
27
- </div>`}</code></pre>
28
+ </div>`}</code>
29
+ </pre>
28
30
 
29
31
  ## Props, Events & Methods
30
32
 
31
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
33
+ <PropsTable
34
+ rows={[
32
35
  {
33
36
  name: 'account-id',
34
37
  type: 'string',
@@ -61,7 +64,8 @@ Component to render a formated list of payments for the requested account.
61
64
  defaultValue: 'false',
62
65
  description: 'Adds an export button that streams CSV data when true.',
63
66
  },
64
- ]) }} />
67
+ ]}
68
+ />
65
69
 
66
70
  ### Events
67
71
 
@@ -75,7 +79,8 @@ Component to render a formated list of payments for the requested account.
75
79
 
76
80
  ## Theming & Layout
77
81
 
78
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
82
+ <PartsTable
83
+ parts={[
79
84
  {
80
85
  name: 'font-family',
81
86
  description: 'Controls the font family for the component.',
@@ -96,16 +101,5 @@ Component to render a formated list of payments for the requested account.
96
101
  name: 'button-disabled',
97
102
  description: 'Disabled button styles.',
98
103
  },
99
- ]) }} />
100
-
101
- ## Static examples
102
-
103
- ### Reacting to row clicks
104
-
105
- <pre><code className="language-js">{`const list = document.querySelector('justifi-payments-list');
106
-
107
- list.addEventListener('click-event', (event) => {
108
- if (event.detail.name === 'row') {
109
- router.push('/payments/' + event.detail.payment_id);
110
- }
111
- });`}</code></pre>
104
+ ]}
105
+ />
@@ -5,7 +5,7 @@ description: Drill-down view for a single payout, including ledger items and ban
5
5
  sidebar_position: 41
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,43 +13,43 @@ Component to display detailed information about a specific payout.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-payout-details
16
+ <pre>
17
+ <code className="language-html">{`<justifi-payout-details
17
18
  account-id="acc_123"
18
19
  auth-token="wct_reporting"
19
20
  payout-id="po_456"
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div
25
- dangerouslySetInnerHTML={{
26
- __html: PropsTable([
27
- {
28
- name: 'account-id',
29
- type: 'string',
30
- required: true,
31
- description: 'Scope the payout to a platform or merchant.',
32
- },
33
- {
34
- name: 'auth-token',
35
- type: 'string',
36
- required: true,
37
- description: 'Token with `read:payouts` scope.',
38
- },
39
- {
40
- name: 'payout-id',
41
- type: 'string',
42
- required: true,
43
- description: 'Identifier for the payout you want to view.',
44
- },
45
- {
46
- name: 'show-ledger',
47
- type: 'boolean',
48
- defaultValue: 'true',
49
- description: 'Hide the ledger table when you only need summary data.',
50
- },
51
- ]),
52
- }}
26
+ <PropsTable
27
+ rows={[
28
+ {
29
+ name: 'account-id',
30
+ type: 'string',
31
+ required: true,
32
+ description: 'Scope the payout to a platform or merchant.',
33
+ },
34
+ {
35
+ name: 'auth-token',
36
+ type: 'string',
37
+ required: true,
38
+ description: 'Token with `read:payouts` scope.',
39
+ },
40
+ {
41
+ name: 'payout-id',
42
+ type: 'string',
43
+ required: true,
44
+ description: 'Identifier for the payout you want to view.',
45
+ },
46
+ {
47
+ name: 'show-ledger',
48
+ type: 'boolean',
49
+ defaultValue: 'true',
50
+ description: 'Hide the ledger table when you only need summary data.',
51
+ },
52
+ ]}
53
53
  />
54
54
 
55
55
  ### Events
@@ -62,29 +62,19 @@ Component to display detailed information about a specific payout.
62
62
 
63
63
  ## Theming & Layout
64
64
 
65
- <div
66
- dangerouslySetInnerHTML={{
67
- __html: PartsTable([
68
- {
69
- name: 'font-family',
70
- description: 'Controls the font family for the component.',
71
- },
72
- {
73
- name: 'color',
74
- description: 'Controls the text color.',
75
- },
76
- {
77
- name: 'background-color',
78
- description: 'Controls the background color.',
79
- },
80
- ]),
81
- }}
65
+ <PartsTable
66
+ parts={[
67
+ {
68
+ name: 'font-family',
69
+ description: 'Controls the font family for the component.',
70
+ },
71
+ {
72
+ name: 'color',
73
+ description: 'Controls the text color.',
74
+ },
75
+ {
76
+ name: 'background-color',
77
+ description: 'Controls the background color.',
78
+ },
79
+ ]}
82
80
  />
83
-
84
- ## Static examples
85
-
86
- ### Auto-refresh
87
-
88
- <pre><code className="language-js">{`const payout = document.querySelector('justifi-payout-details');
89
-
90
- setInterval(() => payout.refresh(), 60_000);`}</code></pre>
@@ -5,7 +5,7 @@ description: Ledger of transactions contributing to a payout, with filtering and
5
5
  sidebar_position: 42
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to display a list of payout transactions for a specific payout.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-payout-transactions-list
16
+ <pre>
17
+ <code className="language-html">{`<justifi-payout-transactions-list
17
18
  account-id="acc_123"
18
19
  auth-token="wct_reporting"
19
20
  payout-id="po_456"
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -46,7 +49,8 @@ Component to display a list of payout transactions for a specific payout.
46
49
  defaultValue: 'type,amount,source,status',
47
50
  description: 'Column ordering and selection.',
48
51
  },
49
- ]) }} />
52
+ ]}
53
+ />
50
54
 
51
55
  ### Events
52
56
 
@@ -58,7 +62,8 @@ Component to display a list of payout transactions for a specific payout.
58
62
 
59
63
  ## Theming & Layout
60
64
 
61
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
65
+ <PartsTable
66
+ parts={[
62
67
  {
63
68
  name: 'font-family',
64
69
  description: 'Controls the font family for the component.',
@@ -71,14 +76,5 @@ Component to display a list of payout transactions for a specific payout.
71
76
  name: 'background-color',
72
77
  description: 'Controls the background color.',
73
78
  },
74
- ]) }} />
75
-
76
- ## Static examples
77
-
78
- ### Open payment details
79
-
80
- <pre><code className="language-js">{`const payoutLedger = document.querySelector('justifi-payout-transactions-list');
81
-
82
- payoutLedger.addEventListener('click-event', ({ detail }) => {
83
- router.push('/payments/' + detail.transaction_id);
84
- });`}</code></pre>
79
+ ]}
80
+ />