@txgw/payout-components 1.0.0 → 1.0.1

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 (194) hide show
  1. package/dist/{AMIS-D9TLFIT7.js → AMIS-BpATHKnv.js} +1 -1
  2. package/dist/Action-B0KUcn27.js +1 -0
  3. package/dist/{Action-D_mwIN-5.js → Action-CzJ_r33l.js} +1 -1
  4. package/dist/{Alert-UVAjNb7s.js → Alert-DwWdKr12.js} +1 -1
  5. package/dist/{AnchorNav-BjgLgX6m.js → AnchorNav-DRGjEF5J.js} +1 -1
  6. package/dist/{App-ncbuqXE2.js → App-DxKgyXV1.js} +1 -1
  7. package/dist/{Audio-B3lYr3U2.js → Audio-BoaWMJHA.js} +1 -1
  8. package/dist/{Avatar-XqOgD9ui.js → Avatar-B2lZKPPh.js} +1 -1
  9. package/dist/{BarCode-Cg3O5s_0.js → BarCode-BnchzdIg.js} +1 -1
  10. package/dist/{BarCode-B_ISp_TQ.js → BarCode-dEGhm4u6.js} +1 -1
  11. package/dist/{Breadcrumb-CTA88DWN.js → Breadcrumb-BHzIF2Vg.js} +1 -1
  12. package/dist/ButtonGroup-BMvNPoKc.js +1 -0
  13. package/dist/ButtonGroupSelect-BmQIuhWU.js +1 -0
  14. package/dist/{ButtonGroupSelect-C_qcxdHQ.js → ButtonGroupSelect-CfNu0OBj.js} +1 -1
  15. package/dist/{ButtonToolbar-CUNT7FK4.js → ButtonToolbar-CYZ0LWsz.js} +1 -1
  16. package/dist/{CRUD-DRudIc-q.js → CRUD-BDeg8xZI.js} +1 -1
  17. package/dist/{CRUD2-CYGF0EMp.js → CRUD2-DrE-2JU3.js} +1 -1
  18. package/dist/{Calendar-BW4diX9T.js → Calendar-DkEUJJQW.js} +1 -1
  19. package/dist/Card-BVUWwkgm.js +1 -0
  20. package/dist/{Card-C4m8b89W.js → Card-IZbcizfw.js} +1 -1
  21. package/dist/{Card2-BXG0mDni.js → Card2-Dyl0FIVL.js} +1 -1
  22. package/dist/{Cards-ak9W7Ggn.js → Cards-DlMpwNSr.js} +1 -1
  23. package/dist/{Carousel-CxCXr052.js → Carousel-CXMYZL8H.js} +1 -1
  24. package/dist/{ChainedSelect-BcWT4XqI.js → ChainedSelect-BQK0j-pA.js} +1 -1
  25. package/dist/{Chart-BxLGXl9u.js → Chart-uJ8v1OSG.js} +1 -1
  26. package/dist/{ChartRadios-DstdFZq_.js → ChartRadios-C9Ov2SCd.js} +1 -1
  27. package/dist/Checkbox-DAq7LXTe.js +1 -0
  28. package/dist/{Checkbox-C4MOpWIk.js → Checkbox-DbHhD7iK.js} +1 -1
  29. package/dist/{Checkboxes-DaAz8fEe.js → Checkboxes-wud_gmq3.js} +1 -1
  30. package/dist/{Code-C7wxKt-Z.js → Code-VjDT2QOS.js} +1 -1
  31. package/dist/Collapse-CRIu-D5O.js +1 -0
  32. package/dist/{Collapse-B7DWMzHM.js → Collapse-CknZKNKz.js} +1 -1
  33. package/dist/{CollapseGroup-C5HPq_8j.js → CollapseGroup-DkMS5MXZ.js} +1 -1
  34. package/dist/{Color-BpoN5ndM.js → Color-CZV84qNC.js} +1 -1
  35. package/dist/{ColorPicker-B-eyCI0N.js → ColorPicker-R5D1ZNwb.js} +1 -1
  36. package/dist/{ColumnToggler-BCOanQf7.js → ColumnToggler-BxHry8EL.js} +1 -1
  37. package/dist/{ColumnToggler-BNmJdTb9.js → ColumnToggler-D98cb4XS.js} +1 -1
  38. package/dist/{Combo-DVBtMl-s.js → Combo-BUD7tb8b.js} +1 -1
  39. package/dist/{ConditionBuilder-bQtsEBIu.js → ConditionBuilder-DFF8QBcW.js} +1 -1
  40. package/dist/{Container-BCEndXiL.js → Container-f-JHe2WE.js} +1 -1
  41. package/dist/{Control-DBSbZmLZ.js → Control-dOQnC26j.js} +1 -1
  42. package/dist/{Custom-CVj3O57n.js → Custom-CqKL8xv_.js} +1 -1
  43. package/dist/{Date-CuBE2XD8.js → Date-BcRD4sv_.js} +1 -1
  44. package/dist/{DateRange-Bd9o9Fl_.js → DateRange-BkGu5vJl.js} +1 -1
  45. package/dist/{Dialog-DzlFCRtq.js → Dialog-CQSNeqgY.js} +1 -1
  46. package/dist/{DiffEditor-Cccg35Ly.js → DiffEditor-DU9deT5c.js} +1 -1
  47. package/dist/{Divider-gy0IUviz.js → Divider-CYwXWwc5.js} +1 -1
  48. package/dist/{Drawer-C37JbURK.js → Drawer-DmUqxMKd.js} +1 -1
  49. package/dist/{DropDownButton-DO4hK0Kp.js → DropDownButton-C0e2mksC.js} +1 -1
  50. package/dist/{Each-BfbwJEMb.js → Each-Bnhdfx44.js} +1 -1
  51. package/dist/FieldSet-BRfWbiPG.js +1 -0
  52. package/dist/{FieldSet-D3WMli0B.js → FieldSet-f-m_bp4h.js} +1 -1
  53. package/dist/{Flex-CXooKsRI.js → Flex-C0c49ZMP.js} +1 -1
  54. package/dist/{Formula-KUisLb0j.js → Formula-C82aVdAD.js} +1 -1
  55. package/dist/{Grid2D-6cCqZG6j.js → Grid2D-BJPrAz8w.js} +1 -1
  56. package/dist/{GridNav-Bvueqq-Q.js → GridNav-DCCBgvz1.js} +1 -1
  57. package/dist/{Group-EswEogaf.js → Group-D_2Fn4zB.js} +1 -1
  58. package/dist/{HBox-DyS1JJHh.js → HBox-CG3Ad5us.js} +1 -1
  59. package/dist/HBox-CRrACS8I.js +1 -0
  60. package/dist/{Hidden-DwrGEKjM.js → Hidden-SaNCTMlZ.js} +1 -1
  61. package/dist/{IFrame-BT4_03AI.js → IFrame-2LIicqpq.js} +1 -1
  62. package/dist/{Icon-BNP1oNtQ.js → Icon-3_vNko-P.js} +1 -1
  63. package/dist/{IconPicker-CIL2Wob5.js → IconPicker-DAMClR_z.js} +1 -1
  64. package/dist/{IconSelect-D1CPpZAU.js → IconSelect-CHM0oHqd.js} +1 -1
  65. package/dist/{IconSelectStore-BM_zyU2d.js → IconSelectStore-MNwivoh-.js} +1 -1
  66. package/dist/Image-Br7JbiAF.js +1 -0
  67. package/dist/{Image--xtRdgd5.js → Image-hHgZkb5C.js} +1 -1
  68. package/dist/{Images-zPCUHCyK.js → Images-ZGJfaN-q.js} +1 -1
  69. package/dist/{InputArray-BnERrQT7.js → InputArray-D3y772RO.js} +1 -1
  70. package/dist/{InputCity-Bidd_z8i.js → InputCity-CF6mEwuH.js} +1 -1
  71. package/dist/{InputColor-D0Kf9p1Q.js → InputColor-CYmzXu5I.js} +1 -1
  72. package/dist/{InputDate-CzCxGUx_.js → InputDate-BldJd84x.js} +1 -1
  73. package/dist/{InputDateRange-Bp3owFpS.js → InputDateRange-KzSlI2fv.js} +1 -1
  74. package/dist/{InputExcel-DUdIptAN.js → InputExcel-CJZWvZFT.js} +1 -1
  75. package/dist/{InputFile-DquJWe_S.js → InputFile-C0FUNeFM.js} +1 -1
  76. package/dist/InputFile-DFjvYmV3.js +1 -0
  77. package/dist/{InputFormula-Cu3Oc5xq.js → InputFormula-BKxq41uR.js} +1 -1
  78. package/dist/{InputGroup-RqgoJFcl.js → InputGroup-wvaymJ-V.js} +1 -1
  79. package/dist/InputImage-CLuXGhoy.js +1 -0
  80. package/dist/{InputImage-CdVzSsuR.js → InputImage-DasZBpb-.js} +1 -1
  81. package/dist/{InputMonthRange-BTR1bISz.js → InputMonthRange-DVRnBZ4I.js} +1 -1
  82. package/dist/{InputNumber-C0rip8fu.js → InputNumber-BjzsM73z.js} +1 -1
  83. package/dist/{InputQuarterRange-D1X-Z2tN.js → InputQuarterRange-DQuiFCOb.js} +1 -1
  84. package/dist/{InputRange-Dq-ePI8S.js → InputRange-C97bKrW6.js} +1 -1
  85. package/dist/{InputRating-_KtpPZno.js → InputRating-CpFNTZKA.js} +1 -1
  86. package/dist/{InputRepeat-D3Drjx3I.js → InputRepeat-CN2KxX7g.js} +1 -1
  87. package/dist/InputRichText-BXjRSQFh.js +1 -0
  88. package/dist/{InputRichText-CyfWV74o.js → InputRichText-DdyJFH82.js} +1 -1
  89. package/dist/{InputSignature-CXV7thvH.js → InputSignature-CsxuK757.js} +1 -1
  90. package/dist/{InputSubForm-CQuaHTe3.js → InputSubForm-Ddweo6dR.js} +1 -1
  91. package/dist/{InputTable-CJ4Dl3xA.js → InputTable-Bt8U_tyA.js} +1 -1
  92. package/dist/{InputTag-BAjQnJh1.js → InputTag-kg2v747D.js} +1 -1
  93. package/dist/{InputText-Ci8XzpKK.js → InputText-bKR0VgA6.js} +1 -1
  94. package/dist/{InputTree-Coq2YfRD.js → InputTree-DbdS4b2m.js} +1 -1
  95. package/dist/{InputVerificationCode-CZbzrwa_.js → InputVerificationCode-DcFJRWeR.js} +1 -1
  96. package/dist/{InputYearRange-CbdR1nuY.js → InputYearRange-ChXlMgCi.js} +1 -1
  97. package/dist/{JSONSchema-Z9eJulgD.js → JSONSchema-C_VjFVVN.js} +1 -1
  98. package/dist/{JSONSchemaEditor-qtbO2bWX.js → JSONSchemaEditor-CEgywCvJ.js} +1 -1
  99. package/dist/{Json-I_TX2D01.js → Json-DqjhkjHF.js} +1 -1
  100. package/dist/{Link-DoCudSpW.js → Link-9hUnE5FW.js} +1 -1
  101. package/dist/{List-BItkFb-A.js → List-BBntusL0.js} +1 -1
  102. package/dist/List-C8nPjG1-.js +1 -0
  103. package/dist/{ListSelect-f6rDx6N2.js → ListSelect-lX84FGAP.js} +1 -1
  104. package/dist/{LocationPicker-CZd07tME.js → LocationPicker-DnA8QpYh.js} +1 -1
  105. package/dist/{Log--rbcIY4g.js → Log-CRxPlj86.js} +1 -1
  106. package/dist/{Mapping-rpBDdw-o.js → Mapping-X2IRbppi.js} +1 -1
  107. package/dist/{Markdown-M8qWm8IY.js → Markdown-ByuMaB2P.js} +1 -1
  108. package/dist/{MatrixCheckboxes-DCnC8NGQ.js → MatrixCheckboxes-BvBU1E-4.js} +1 -1
  109. package/dist/{MultilineText-CHrvTjY_.js → MultilineText-BmbIytvk.js} +1 -1
  110. package/dist/{Nav-CDJbX6q3.js → Nav-BxS7kBh9.js} +1 -1
  111. package/dist/{NestedSelect-Uxvg89Pe.js → NestedSelect-CbWnin5b.js} +1 -1
  112. package/dist/{Number-tVXWVP4G.js → Number-CGYpvopX.js} +1 -1
  113. package/dist/{OfficeViewer-Cz447nMa.js → OfficeViewer-DBFFaH5P.js} +1 -1
  114. package/dist/{Operation-JkWrokFn.js → Operation-j5yIUDkZ.js} +1 -1
  115. package/dist/{Page-C5qOXz9A.js → Page-CJ2gK3vA.js} +1 -1
  116. package/dist/{Pagination-DQoNu1Qo.js → Pagination-BDEmomCQ.js} +1 -1
  117. package/dist/{PaginationWrapper-07h0-dmz.js → PaginationWrapper-Bnsk8oIg.js} +1 -1
  118. package/dist/{Panel--P2Ov47t.js → Panel-DKpM1Qfc.js} +1 -1
  119. package/dist/{Password-CF1feQa2.js → Password-CzHAzi8M.js} +1 -1
  120. package/dist/{Picker-CKV0_5vN.js → Picker-D5WVPGTg.js} +1 -1
  121. package/dist/{Plain-CnRq3KDS.js → Plain-oyGNzh1N.js} +1 -1
  122. package/dist/{PopUp-xCiesfUA.js → PopUp-DaheG-Vv.js} +1 -1
  123. package/dist/{Portlet-Agkkko8B.js → Portlet-dA2P7U6i.js} +1 -1
  124. package/dist/{Progress-D-JOmIgT.js → Progress-D2LXKzUA.js} +1 -1
  125. package/dist/{Property-BoNnFGV9.js → Property-CekATdUy.js} +1 -1
  126. package/dist/{QRCode-BFfhBYxV.js → QRCode-DPoyEXK3.js} +1 -1
  127. package/dist/{Radio-BRNZ49gi.js → Radio-HhPQKIKk.js} +1 -1
  128. package/dist/{Radios-0CT3XjKZ.js → Radios-DVzovX2u.js} +1 -1
  129. package/dist/Remark-CHTOdmdn.js +1 -0
  130. package/dist/{Remark-XZDS4Z3Y.js → Remark-bXVj7ffU.js} +1 -1
  131. package/dist/{SearchBox-__1UKInO.js → SearchBox-Jlwq8w3o.js} +1 -1
  132. package/dist/{Select-D9nj7O4q.js → Select-DCB0i1Ga.js} +1 -1
  133. package/dist/{Service-fGzhGL0m.js → Service-Bmfl8VSD.js} +1 -1
  134. package/dist/{Shape-C9r17D5A.js → Shape-5ZBBe1x0.js} +1 -1
  135. package/dist/{Slider-BryEccA-.js → Slider-pb5I0Xb2.js} +1 -1
  136. package/dist/{SparkLine-CcOuk0we.js → SparkLine-C4x34-6K.js} +1 -1
  137. package/dist/{Spinner-qyJRJu1C.js → Spinner-SR1wYU_1.js} +1 -1
  138. package/dist/{StaticHoc-C0bGgnQS.js → StaticHoc-DVc-5HZA.js} +1 -1
  139. package/dist/{Status-BPtAA54m.js → Status-7D4DBjk6.js} +1 -1
  140. package/dist/{Steps-DsmYH15c.js → Steps-Dd_3MM0y.js} +1 -1
  141. package/dist/{Switch-CMkhfkPn.js → Switch-CZqzJH45.js} +1 -1
  142. package/dist/{SwitchContainer-BLxuSTyZ.js → SwitchContainer-L7IwrheV.js} +1 -1
  143. package/dist/Table-CYUuVDxA.js +1 -0
  144. package/dist/{Table-HvHD2tS0.js → Table-D-9NfAqg.js} +1 -1
  145. package/dist/{Table2-C4HNs_R1.js → Table2-CIZ93hrj.js} +1 -1
  146. package/dist/{TableView-zfvmfF6E.js → TableView-CigjcDJc.js} +1 -1
  147. package/dist/{Tabs-BeQyEedg.js → Tabs-Cljj-nTv.js} +1 -1
  148. package/dist/{TabsTransfer-BsYcLplM.js → TabsTransfer-BXwrW4NX.js} +1 -1
  149. package/dist/{TabsTransferPicker-SS6hg5Hc.js → TabsTransferPicker-DB005nER.js} +1 -1
  150. package/dist/{Tag-IL_v32Aa.js → Tag-CcfwT8FM.js} +1 -1
  151. package/dist/{Tasks-D6GQavXw.js → Tasks-DeVW2Tdg.js} +1 -1
  152. package/dist/{Textarea-Ck0rJ3Ff.js → Textarea-zsHcK0rZ.js} +1 -1
  153. package/dist/{Timeline-BT7aVGPP.js → Timeline-D_3FRzUa.js} +1 -1
  154. package/dist/{TooltipWrapper-Bx_3339q.js → TooltipWrapper-BElQhX67.js} +1 -1
  155. package/dist/{Tpl-BiWl-0O_.js → Tpl-OPfW08Kh.js} +1 -1
  156. package/dist/{Transfer-CldOhDuU.js → Transfer-Cx1Ijzfh.js} +1 -1
  157. package/dist/Transfer-DboPBh8V.js +1 -0
  158. package/dist/{TransferPicker-C2cth5_r.js → TransferPicker-xlJfwHxP.js} +1 -1
  159. package/dist/{TreeSelect-D9-PBXkV.js → TreeSelect-BTKg9Ldf.js} +1 -1
  160. package/dist/{UUID-R41mBvtB.js → UUID-BkwpeiT9.js} +1 -1
  161. package/dist/{UserSelect-Cq56ZLkZ.js → UserSelect-CsY5PQp9.js} +1 -1
  162. package/dist/{VBox-BEdXFwFf.js → VBox-Ca4DBR6-.js} +1 -1
  163. package/dist/{Video-BIQhs4lA.js → Video-CXzxq3vU.js} +1 -1
  164. package/dist/{WebComponent-Vzfd9UEy.js → WebComponent-DYxJeu6a.js} +1 -1
  165. package/dist/{Wizard-BwEpr22M.js → Wizard-fqzq2OCn.js} +1 -1
  166. package/dist/{Words-C7JrGNdU.js → Words-V70QrARW.js} +1 -1
  167. package/dist/{Wrapper-DIGr8a29.js → Wrapper-BtFbBBXy.js} +1 -1
  168. package/dist/{beneficiary-form-_xPce615.js → beneficiary-form-BmmdIRc0.js} +1 -1
  169. package/dist/{es-Cn6dJrVn.js → es-DY5--nMG.js} +1 -1
  170. package/dist/esm-BMvKJM5q.js +4 -0
  171. package/dist/{esm-vG8eylH_.js → esm-BbZME5Ac.js} +1 -1
  172. package/dist/index.d.ts +120 -0
  173. package/dist/index.js +1 -1
  174. package/dist/{objectSpread2-yExSo67O.js → objectSpread2-BCtAXXta.js} +1 -1
  175. package/dist/{omitBy-CFU0pICA.js → omitBy-NMzUUhXs.js} +1 -1
  176. package/dist/{xor-ziNg7OgH.js → xor-CSkTraTY.js} +1 -1
  177. package/package.json +7 -6
  178. package/dist/Action-B-ZQiXEF.js +0 -1
  179. package/dist/ButtonGroup-pVY35HQ1.js +0 -1
  180. package/dist/ButtonGroupSelect-Bt6Jwo5u.js +0 -1
  181. package/dist/Card-B_1cg_nQ.js +0 -1
  182. package/dist/Checkbox-nA8maqiS.js +0 -1
  183. package/dist/Collapse-BW-pXRle.js +0 -1
  184. package/dist/FieldSet-D8oj-Vb4.js +0 -1
  185. package/dist/HBox-DGIyZMV6.js +0 -1
  186. package/dist/Image-BAenzG4k.js +0 -1
  187. package/dist/InputFile-X4G2zOvt.js +0 -1
  188. package/dist/InputImage-Cv5FkWaC.js +0 -1
  189. package/dist/InputRichText-0TZzQzcy.js +0 -1
  190. package/dist/List-Ccx0hLxM.js +0 -1
  191. package/dist/Remark-BuTyhR9e.js +0 -1
  192. package/dist/Table-DsxWjUvF.js +0 -1
  193. package/dist/Transfer-BwyAe8c8.js +0 -1
  194. package/dist/esm-CofciBhy.js +0 -4
package/dist/index.d.ts CHANGED
@@ -1 +1,121 @@
1
+ import { ComponentProps } from 'react';
2
+ import { Emitter } from 'mitt';
3
+ import { EventType } from 'mitt';
4
+ import { Handler } from 'mitt';
5
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
6
+ import { Mi18nInstance } from '@mi18n/react';
7
+ import { WildcardHandler } from 'mitt';
8
+
9
+ declare const BANK_DETAILS_FORM_KEY = "bankDetails";
10
+
11
+ declare interface BaseProps<T extends keyof typeof ElementsMap> extends InitOptions {
12
+ emitter: Emitter<Events<T>>;
13
+ mi18n: Mi18nInstance;
14
+ }
15
+
16
+ declare function BeneficiaryForm(props: Props): JSX_2.Element;
17
+
18
+ declare interface BeneficiaryFormCustomizations {
19
+ layout?: LayoutSection[];
20
+ }
21
+
22
+ declare type BeneficiaryFormFinalValues = {
23
+ beneficiary?: {
24
+ address?: {
25
+ country?: string;
26
+ street_address?: string;
27
+ };
28
+ bank_account?: {
29
+ account_number?: string;
30
+ account_routing_type1?: string;
31
+ account_routing_value1?: string;
32
+ bank_country_code: string;
33
+ bank_name?: string;
34
+ swift_code?: string;
35
+ };
36
+ wallet_account?: {
37
+ account_id?: string;
38
+ sub_account_id?: string;
39
+ wallet_type?: string;
40
+ country_code?: string;
41
+ account_routing_type1?: string;
42
+ account_routing_value1?: string;
43
+ };
44
+ entity_details?: {
45
+ mobile_number?: string;
46
+ name?: string;
47
+ type?: EntityDetailType;
48
+ };
49
+ };
50
+ payment_method?: string;
51
+ receive_currency?: string;
52
+ };
53
+
54
+ declare type BeneficiaryFormOptions<T extends keyof typeof ElementsMap> = Omit<BeneficiaryFormProps, keyof BaseProps<T>>;
55
+
56
+ declare type BeneficiaryFormProps = ComponentProps<typeof BeneficiaryForm>;
57
+
58
+ export declare function createElement<T extends keyof typeof ElementsMap>(type: T, options?: ElementOptionsTypes<T>[T]): SDKComponent<T>;
59
+
60
+ declare interface ElementEventsMap extends Record<EventType, unknown> {
61
+ beneficiaryForm: {
62
+ submit: BeneficiaryFormFinalValues;
63
+ };
64
+ }
65
+
66
+ declare interface ElementOptionsTypes<T extends keyof typeof ElementsMap> {
67
+ beneficiaryForm: BeneficiaryFormOptions<T>;
68
+ }
69
+
70
+ declare const ElementsMap: {
71
+ beneficiaryForm: () => Promise<{
72
+ default: typeof BeneficiaryForm;
73
+ }>;
74
+ };
75
+
76
+ declare type EntityDetailType = "ENTITY_TYPE_PERSONAL";
77
+
78
+ declare type Events<T extends keyof typeof ElementsMap> = ElementEventsMap[T];
79
+
80
+ declare type EventsData<T extends keyof typeof ElementsMap> = Events<T>[keyof Events<T>];
81
+
82
+ export declare function init(options: InitOptions): void;
83
+
84
+ declare interface InitOptions {
85
+ authCode: string;
86
+ domain: string;
87
+ codeVerifier: string;
88
+ locale?: Locale;
89
+ }
90
+
91
+ declare interface LayoutSection {
92
+ title?: string;
93
+ name?: typeof BANK_DETAILS_FORM_KEY;
94
+ hidden?: boolean;
95
+ }
96
+
97
+ declare type Locale = "en" | "zh-Hant" | "ar" | "ja" | "th" | "zh" | "tr" | "de" | "es" | "fr" | "id" | "ko" | "ms" | "pt" | "ru" | "vi" | "it" | "bn" | "ur" | "my" | "uz";
98
+
99
+ declare interface Props extends BaseProps<"beneficiaryForm"> {
100
+ defaultValues?: BeneficiaryFormFinalValues;
101
+ customizations?: BeneficiaryFormCustomizations;
102
+ }
103
+
104
+ declare class SDKComponent<T extends keyof typeof ElementsMap> {
105
+ private loader;
106
+ private options;
107
+ private mounted;
108
+ private root;
109
+ private emitter;
110
+ private mi18n;
111
+ constructor(loader: (typeof ElementsMap)[T], options: InitOptions, mi18n: Mi18nInstance);
112
+ mount(container: Element): Promise<void>;
113
+ unmount(): void;
114
+ on(type: keyof Events<T>, handler: Handler<EventsData<T>>): void;
115
+ on(type: "*", handler: WildcardHandler<Events<T>>): void;
116
+ off(type: keyof Events<T>, handler?: Handler<EventsData<T>>): void;
117
+ off(type: "*", handler?: WildcardHandler<Events<T>>): void;
118
+ isMounted(): boolean;
119
+ }
120
+
1
121
  export { }
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{o as t}from"./rolldown-runtime-DcYi-9oA.js";import{a as e,c as n,i as o,l as i,o as s,s as r}from"./mi18n-react.esm-BFa-Q7wX.js";var a=class{loader;options;mounted=!1;root;emitter;mi18n;constructor(t,e,n){var o;this.loader=t,this.options=e,this.emitter={all:o=o||/* @__PURE__ */new Map,on:function(t,e){var n=o.get(t);n?n.push(e):o.set(t,[e])},off:function(t,e){var n=o.get(t);n&&(e?n.splice(n.indexOf(e)>>>0,1):o.set(t,[]))},emit:function(t,e){var n=o.get(t);n&&n.slice().map(function(t){t(e)}),(n=o.get("*"))&&n.slice().map(function(n){n(t,e)})}},this.mi18n=n,this.root=null}async mount(e){if(this.mounted)return;const n=await this.loader(),o=n.default??n,i=await import("./react-BW4ssgUo.js").then(e=>/* @__PURE__ */t(e.t(),1)),s=(await import("./client-BoE-UyzU.js").then(e=>/* @__PURE__ */t(e.default,1))).createRoot(e);s.render(i.createElement(o,{...this.options,emitter:this.emitter,mi18n:this.mi18n})),this.root=s,this.mounted=!0}unmount(){this.root&&(this.root.unmount(),this.root=null),this.mounted=!1}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}isMounted(){return this.mounted}},m={beneficiaryForm:()=>import("./beneficiary-form-_xPce615.js")},u=class{options;mi18n;components={};constructor(t){var a;this.options=t,this.mi18n=(a=this.options?.locale||"en",n().use(e()).use(s()).use(r()).use(o({env:"release",pathTemplate:`/i18n/project-export/{env}/{projectId}/{language}.json?t=${Date.now()}`})).init({language:i()||a,defaultLanguage:a,fallbackLanguage:"en",availableLanguages:["en"],apiUrl:"https://admin.midasbuy.com/i18n/api",apiKey:"********************",projectId:358}))}createElement(t,e){if(!this.options)throw new Error("[payout-sdk] options are not initialized");const n=m[t];if(!n)throw new Error(`[payout-sdk] component ${t} not found`);return this.components[t]||(this.components[t]=new a(n,{...this.options,...e},this.mi18n)),this.components[t]}},c=null;function l(t){c=new u(t)}function p(t,e){if(!c)throw new Error("[payout-sdk] SDK is not initialized");return c.createElement(t,e)}export{p as createElement,l as init};
1
+ import{o as t}from"./rolldown-runtime-DcYi-9oA.js";import{a as e,c as n,i as o,l as i,o as s,s as r}from"./mi18n-react.esm-BFa-Q7wX.js";var a=class{loader;options;mounted=!1;root;emitter;mi18n;constructor(t,e,n){var o;this.loader=t,this.options=e,this.emitter={all:o=o||/* @__PURE__ */new Map,on:function(t,e){var n=o.get(t);n?n.push(e):o.set(t,[e])},off:function(t,e){var n=o.get(t);n&&(e?n.splice(n.indexOf(e)>>>0,1):o.set(t,[]))},emit:function(t,e){var n=o.get(t);n&&n.slice().map(function(t){t(e)}),(n=o.get("*"))&&n.slice().map(function(n){n(t,e)})}},this.mi18n=n,this.root=null}async mount(e){if(this.mounted)return;const n=await this.loader(),o=n.default??n,i=await import("./react-BW4ssgUo.js").then(e=>/* @__PURE__ */t(e.t(),1)),s=(await import("./client-BoE-UyzU.js").then(e=>/* @__PURE__ */t(e.default,1))).createRoot(e);s.render(i.createElement(o,{...this.options,emitter:this.emitter,mi18n:this.mi18n})),this.root=s,this.mounted=!0}unmount(){this.root&&(this.root.unmount(),this.root=null),this.mounted=!1}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}isMounted(){return this.mounted}},m={beneficiaryForm:()=>import("./beneficiary-form-BmmdIRc0.js")},u=class{options;mi18n;components={};constructor(t){var a;this.options=t,this.mi18n=(a=this.options?.locale||"en",n().use(e()).use(s()).use(r()).use(o({env:"release",pathTemplate:`/i18n/project-export/{env}/{projectId}/{language}.json?t=${Date.now()}`})).init({language:i()||a,defaultLanguage:a,fallbackLanguage:"en",availableLanguages:["en"],apiUrl:"https://admin.midasbuy.com/i18n/api",apiKey:"********************",projectId:358}))}createElement(t,e){if(!this.options)throw new Error("[payout-sdk] options are not initialized");const n=m[t];if(!n)throw new Error(`[payout-sdk] component ${t} not found`);return this.components[t]||(this.components[t]=new a(n,{...this.options,...e},this.mi18n)),this.components[t]}},c=null;function l(t){c=new u(t)}function p(t,e){if(!c)throw new Error("[payout-sdk] SDK is not initialized");return c.createElement(t,e)}export{p as createElement,l as init};
@@ -1 +1 @@
1
- import{n as r}from"./rolldown-runtime-DcYi-9oA.js";import{Ai as e,ji as t}from"./esm-CofciBhy.js";function o(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),t.push.apply(t,o)}return t}function n(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){e(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}var c=r(()=>{t()});export{c as n,n as t};
1
+ import{n as r}from"./rolldown-runtime-DcYi-9oA.js";import{Ai as e,ji as t}from"./esm-BMvKJM5q.js";function o(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),t.push.apply(t,o)}return t}function n(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){e(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}var c=r(()=>{t()});export{c as n,n as t};
@@ -1 +1 @@
1
- import{t as r}from"./rolldown-runtime-DcYi-9oA.js";import{F as t,d as n}from"./function-C8ta9DKb.js";import{At as e,Sn as o}from"./esm-CofciBhy.js";var s=/* @__PURE__ */r((r,s)=>{var a=t(),u=n(),i=e(),c=o();s.exports=function(r,t){if(null==r)return{};var n=a(c(r),function(r){return[r]});return t=u(t),i(r,n,function(r,n){return t(r,n[0])})}}),a=/* @__PURE__ */r((r,t)=>{t.exports=function(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}}),u=/* @__PURE__ */r((r,t)=>{var e=n(),o=a(),u=s();t.exports=function(r,t){return u(r,o(e(t)))}});export{s as n,u as t};
1
+ import{t as r}from"./rolldown-runtime-DcYi-9oA.js";import{F as t,d as n}from"./function-C8ta9DKb.js";import{At as e,Sn as o}from"./esm-BMvKJM5q.js";var s=/* @__PURE__ */r((r,s)=>{var a=t(),u=n(),i=e(),c=o();s.exports=function(r,t){if(null==r)return{};var n=a(c(r),function(r){return[r]});return t=u(t),i(r,n,function(r,n){return t(r,n[0])})}}),a=/* @__PURE__ */r((r,t)=>{t.exports=function(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}}),u=/* @__PURE__ */r((r,t)=>{var e=n(),o=a(),u=s();t.exports=function(r,t){return u(r,o(e(t)))}});export{s as n,u as t};
@@ -1 +1 @@
1
- import{t as r}from"./rolldown-runtime-DcYi-9oA.js";import{b as o}from"./function-C8ta9DKb.js";import{y as t}from"./isEqual-BxlJ5vH7.js";import{Zi as a,f as s,qi as n,xn as i}from"./esm-CofciBhy.js";var f=/* @__PURE__ */r((r,t)=>{var a=s(),n=i(),f=o();t.exports=function(r,o,t){var s=r.length;if(s<2)return s?f(r[0]):[];for(var i=-1,m=Array(s);++i<s;)for(var e=r[i],u=-1;++u<s;)u!=i&&(m[i]=a(m[i]||e,r[u],o,t));return f(n(m,1),o,t)}}),m=/* @__PURE__ */r((r,o)=>{var s=t(),i=n(),m=f(),e=a(),u=i(function(r){return m(s(r,e))});o.exports=u});export{m as t};
1
+ import{t as r}from"./rolldown-runtime-DcYi-9oA.js";import{b as o}from"./function-C8ta9DKb.js";import{y as t}from"./isEqual-BxlJ5vH7.js";import{Zi as a,f as s,qi as n,xn as i}from"./esm-BMvKJM5q.js";var f=/* @__PURE__ */r((r,t)=>{var a=s(),n=i(),f=o();t.exports=function(r,o,t){var s=r.length;if(s<2)return s?f(r[0]):[];for(var i=-1,m=Array(s);++i<s;)for(var e=r[i],u=-1;++u<s;)u!=i&&(m[i]=a(m[i]||e,r[u],o,t));return f(n(m,1),o,t)}}),m=/* @__PURE__ */r((r,o)=>{var s=t(),i=n(),m=f(),e=a(),u=i(function(r){return m(s(r,e))});o.exports=u});export{m as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txgw/payout-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@mi18n/react": "^5.16.4",
24
+ "@microsoft/api-extractor": "^7.58.0",
24
25
  "@types/crypto-js": "^4.2.2",
25
26
  "@types/lodash-es": "^4.17.12",
26
27
  "@types/react": "^18.3.28",
@@ -31,17 +32,17 @@
31
32
  "amis-ui": "^6.13.0",
32
33
  "clsx": "^2.1.1",
33
34
  "crypto-js": "^4.2.0",
34
- "lodash-es": "^4.18.0",
35
+ "lodash-es": "^4.18.1",
35
36
  "mitt": "^3.0.1",
36
37
  "postcss-discard-comments": "^7.0.6",
37
38
  "react": "^18.3.1",
38
39
  "react-dom": "^18.3.1",
39
40
  "rollup-plugin-visualizer": "^7.0.1",
40
- "sass-embedded": "^1.98.0",
41
- "typescript": "~6.0.2",
41
+ "sass-embedded": "^1.99.0",
42
+ "typescript": "~5.9.2",
43
+ "unplugin-dts": "1.0.0-beta.6",
42
44
  "vite": "^8.0.3",
43
- "vite-plugin-dts": "^4.5.4",
44
- "vite-plugin-inspect": "^11.3.3",
45
+ "vite-plugin-inspect": "12.0.0-beta.1",
45
46
  "vite-plugin-strip-comments": "^0.0.10"
46
47
  },
47
48
  "scripts": {
@@ -1 +0,0 @@
1
- import{i as a,n as s,r as t,t as o}from"./Action-D_mwIN-5.js";export{o as Action,t as ActionRenderer,a as createSyntheticEvent,s as default};
@@ -1 +0,0 @@
1
- import{i as t,r}from"./tslib.es6-C2q27PUR.js";import{it as o}from"./esm-CofciBhy.js";import{t as s}from"./ButtonGroupSelect-C_qcxdHQ.js";var i=function(s){function i(){return null!==s&&s.apply(this,arguments)||this}return t(i,s),r([o({type:"button-group"})],i)}(s);export{i as ButtonGroupRenderer,s as default};
@@ -1 +0,0 @@
1
- import{n as t,t as o}from"./ButtonGroupSelect-C_qcxdHQ.js";export{t as ButtonGroupControlRenderer,o as default};
@@ -1 +0,0 @@
1
- import{n as r,t as a}from"./Card-C4m8b89W.js";export{a as CardItemFieldRenderer,r as CardRenderer};
@@ -1 +0,0 @@
1
- import{n as a,t as o}from"./Checkbox-C4MOpWIk.js";export{a as CheckboxControlRenderer,o as default};
@@ -1 +0,0 @@
1
- import{n as a,t as s}from"./Collapse-B7DWMzHM.js";export{a as CollapseRenderer,s as default};
@@ -1 +0,0 @@
1
- import{n as t,t as a}from"./FieldSet-D3WMli0B.js";export{t as FieldSetRenderer,a as default};
@@ -1 +0,0 @@
1
- import{n as a,t as o}from"./HBox-DyS1JJHh.js";export{a as HBoxRenderer,o as default};
@@ -1 +0,0 @@
1
- import{a,i as s,n as r,r as t,t as e}from"./Image--xtRdgd5.js";export{e as ImageField,r as ImageFieldRenderer,t as ImageThumb,s as default,a as imagePlaceholder};
@@ -1 +0,0 @@
1
- import{n as a,r,t as s}from"./InputFile-DquJWe_S.js";export{a as FileControlRenderer,s as default,r as getNameFromUrl};
@@ -1 +0,0 @@
1
- import{n as a,t}from"./InputImage-CdVzSsuR.js";export{a as ImageControlRenderer,t as default};
@@ -1 +0,0 @@
1
- import{n as t,t as a}from"./InputRichText-CyfWV74o.js";export{t as RichTextControlRenderer,a as default};
@@ -1 +0,0 @@
1
- import{a,i as s,n as t,r,t as e}from"./List-BItkFb-A.js";export{t as ListItem,r as ListItemFieldRenderer,s as ListItemRenderer,a as ListRenderer,e as default};
@@ -1 +0,0 @@
1
- import{n as a,r,t as s}from"./Remark-XZDS4Z3Y.js";export{a as RemarkRenderer,s as default,r as filterContents};
@@ -1 +0,0 @@
1
- import{i as a,n as s,r,t}from"./Table-HvHD2tS0.js";export{a as TableCell,s as TableRenderer,r as TableRendererBase,t as default};
@@ -1 +0,0 @@
1
- import{i as a,n as s,r,t}from"./Transfer-CldOhDuU.js";export{t as BaseTransferRenderer,r as TransferRender,s as default,a as getCustomFilterOption};