@tesouro/embedded-components-react 0.2.127 → 0.2.130
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/README.md +10 -0
- package/dist/index.d.ts +48 -31
- package/dist/index.js +104 -100
- package/dist/lib/AcceptDisclosuresWidget.d.ts +587 -0
- package/dist/lib/AcceptDisclosuresWidget.js +7 -0
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index2.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index2.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index3.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +25 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +76 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +7 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +25 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +116 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +217 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +10 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +46 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +42 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +15 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +152 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +27 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +39 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +42 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +74 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +53 -430
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +77 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +41 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +116 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +68 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +190 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +31 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +108 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +137 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +17 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +19 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +183 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +88 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +35 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +6 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +197 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +432 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +27 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +10 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +19 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +17 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +22 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +116 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +69 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +146 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +26 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +47 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +28 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +75 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +343 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +11 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +35 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +15 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +243 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +11 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +18 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +23 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +40 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +56 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +45 -484
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +28 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +96 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +107 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +490 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +160 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +30 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +38 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +61 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +90 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +109 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +88 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +37 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +60 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +30 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +114 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +41 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +56 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +94 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +96 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +210 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +149 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +17 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +13 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +76 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +41 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +73 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +17 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +161 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +133 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +155 -278
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +60 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +64 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +59 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +62 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +24 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +30 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +125 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +22 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +54 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +27 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +60 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +158 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +27 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +78 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +39 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +62 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +62 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +41 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +137 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +112 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +80 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +285 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +83 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +224 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +37 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +11 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +8 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +6 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +2 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +90 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +82 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +17 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +48 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +50 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +32 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +122 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +16 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +255 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +71 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +11 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +25 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +40 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +74 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +90 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +27 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +95 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +36 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +32 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +31 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +126 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +18 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +62 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +20 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +2 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +21 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +18 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +8 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +82 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +49 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +81 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +54 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +55 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +45 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +26 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +72 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +64 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +85 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +22 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +107 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +29 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +39 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +13 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +48 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +56 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +6 -3
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { FallbackProps } from 'react-error-boundary';
|
|
4
|
+
|
|
5
|
+
interface AcceptDisclosuresWidgetLabels {
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ACCEPT_DISCLOSURES_WIDGET_LABELS_EN: AcceptDisclosuresWidgetLabels;
|
|
9
|
+
|
|
10
|
+
interface AcceptDisclosuresWidgetProps$1 {
|
|
11
|
+
labels?: Partial<AcceptDisclosuresWidgetLabels>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type AuthToken = string | undefined;
|
|
15
|
+
interface Auth {
|
|
16
|
+
/**
|
|
17
|
+
* Which part of the request do we use to send the auth?
|
|
18
|
+
*
|
|
19
|
+
* @default 'header'
|
|
20
|
+
*/
|
|
21
|
+
in?: 'header' | 'query' | 'cookie';
|
|
22
|
+
/**
|
|
23
|
+
* A unique identifier for the security scheme.
|
|
24
|
+
*
|
|
25
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
26
|
+
* shape would otherwise be identical.
|
|
27
|
+
*/
|
|
28
|
+
key?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Header or query parameter name.
|
|
31
|
+
*
|
|
32
|
+
* @default 'Authorization'
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
scheme?: 'basic' | 'bearer';
|
|
36
|
+
type: 'apiKey' | 'http';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface SerializerOptions<T> {
|
|
40
|
+
/**
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
explode: boolean;
|
|
44
|
+
style: T;
|
|
45
|
+
}
|
|
46
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
47
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
48
|
+
|
|
49
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
50
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
51
|
+
type QuerySerializerOptionsObject = {
|
|
52
|
+
allowReserved?: boolean;
|
|
53
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
54
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
55
|
+
};
|
|
56
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
57
|
+
/**
|
|
58
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
59
|
+
* override the global array/object settings for specific parameter names.
|
|
60
|
+
*/
|
|
61
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
65
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
66
|
+
/**
|
|
67
|
+
* Returns the final request URL.
|
|
68
|
+
*/
|
|
69
|
+
buildUrl: BuildUrlFn;
|
|
70
|
+
getConfig: () => Config;
|
|
71
|
+
request: RequestFn;
|
|
72
|
+
setConfig: (config: Config) => Config;
|
|
73
|
+
} & {
|
|
74
|
+
[K in HttpMethod]: MethodFn;
|
|
75
|
+
} & ([SseFn] extends [never] ? {
|
|
76
|
+
sse?: never;
|
|
77
|
+
} : {
|
|
78
|
+
sse: {
|
|
79
|
+
[K in HttpMethod]: SseFn;
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
interface Config$1 {
|
|
83
|
+
/**
|
|
84
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
85
|
+
* added to the request payload as defined by its `security` array.
|
|
86
|
+
*/
|
|
87
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
88
|
+
/**
|
|
89
|
+
* A function for serializing request body parameter. By default,
|
|
90
|
+
* {@link JSON.stringify()} will be used.
|
|
91
|
+
*/
|
|
92
|
+
bodySerializer?: BodySerializer | null;
|
|
93
|
+
/**
|
|
94
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
95
|
+
* `Headers` object with.
|
|
96
|
+
*
|
|
97
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
98
|
+
*/
|
|
99
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
100
|
+
/**
|
|
101
|
+
* The request method.
|
|
102
|
+
*
|
|
103
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
104
|
+
*/
|
|
105
|
+
method?: Uppercase<HttpMethod>;
|
|
106
|
+
/**
|
|
107
|
+
* A function for serializing request query parameters. By default, arrays
|
|
108
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
109
|
+
* style, and reserved characters are percent-encoded.
|
|
110
|
+
*
|
|
111
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
112
|
+
* API function is used.
|
|
113
|
+
*
|
|
114
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
115
|
+
*/
|
|
116
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
117
|
+
/**
|
|
118
|
+
* A function validating request data. This is useful if you want to ensure
|
|
119
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
120
|
+
* the server.
|
|
121
|
+
*/
|
|
122
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
123
|
+
/**
|
|
124
|
+
* A function transforming response data before it's returned. This is useful
|
|
125
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
126
|
+
*/
|
|
127
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
128
|
+
/**
|
|
129
|
+
* A function validating response data. This is useful if you want to ensure
|
|
130
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
131
|
+
* the transformers and returned to the user.
|
|
132
|
+
*/
|
|
133
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
137
|
+
/**
|
|
138
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
139
|
+
* fetch instance.
|
|
140
|
+
*
|
|
141
|
+
* @default globalThis.fetch
|
|
142
|
+
*/
|
|
143
|
+
fetch?: typeof fetch;
|
|
144
|
+
/**
|
|
145
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
146
|
+
*/
|
|
147
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
148
|
+
/**
|
|
149
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
150
|
+
*
|
|
151
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
152
|
+
*
|
|
153
|
+
* @param error The error that occurred.
|
|
154
|
+
*/
|
|
155
|
+
onSseError?: (error: unknown) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Callback invoked when an event is streamed from the server.
|
|
158
|
+
*
|
|
159
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
160
|
+
*
|
|
161
|
+
* @param event Event streamed from the server.
|
|
162
|
+
* @returns Nothing (void).
|
|
163
|
+
*/
|
|
164
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
165
|
+
serializedBody?: RequestInit['body'];
|
|
166
|
+
/**
|
|
167
|
+
* Default retry delay in milliseconds.
|
|
168
|
+
*
|
|
169
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
170
|
+
*
|
|
171
|
+
* @default 3000
|
|
172
|
+
*/
|
|
173
|
+
sseDefaultRetryDelay?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Maximum number of retry attempts before giving up.
|
|
176
|
+
*/
|
|
177
|
+
sseMaxRetryAttempts?: number;
|
|
178
|
+
/**
|
|
179
|
+
* Maximum retry delay in milliseconds.
|
|
180
|
+
*
|
|
181
|
+
* Applies only when exponential backoff is used.
|
|
182
|
+
*
|
|
183
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
184
|
+
*
|
|
185
|
+
* @default 30000
|
|
186
|
+
*/
|
|
187
|
+
sseMaxRetryDelay?: number;
|
|
188
|
+
/**
|
|
189
|
+
* Optional sleep function for retry backoff.
|
|
190
|
+
*
|
|
191
|
+
* Defaults to using `setTimeout`.
|
|
192
|
+
*/
|
|
193
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
194
|
+
url: string;
|
|
195
|
+
};
|
|
196
|
+
interface StreamEvent<TData = unknown> {
|
|
197
|
+
data: TData;
|
|
198
|
+
event?: string;
|
|
199
|
+
id?: string;
|
|
200
|
+
retry?: number;
|
|
201
|
+
}
|
|
202
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
203
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
207
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
208
|
+
response: Res | undefined,
|
|
209
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
210
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
211
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
212
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
213
|
+
declare class Interceptors<Interceptor> {
|
|
214
|
+
fns: Array<Interceptor | null>;
|
|
215
|
+
clear(): void;
|
|
216
|
+
eject(id: number | Interceptor): void;
|
|
217
|
+
exists(id: number | Interceptor): boolean;
|
|
218
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
219
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
220
|
+
use(fn: Interceptor): number;
|
|
221
|
+
}
|
|
222
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
223
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
224
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
225
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type ResponseStyle = 'data' | 'fields';
|
|
229
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
230
|
+
/**
|
|
231
|
+
* Base URL for all requests made by this client.
|
|
232
|
+
*/
|
|
233
|
+
baseUrl?: T['baseUrl'];
|
|
234
|
+
/**
|
|
235
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
236
|
+
* fetch instance.
|
|
237
|
+
*
|
|
238
|
+
* @default globalThis.fetch
|
|
239
|
+
*/
|
|
240
|
+
fetch?: typeof fetch;
|
|
241
|
+
/**
|
|
242
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
243
|
+
* options won't have any effect.
|
|
244
|
+
*
|
|
245
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
246
|
+
*/
|
|
247
|
+
next?: never;
|
|
248
|
+
/**
|
|
249
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
250
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
251
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
252
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
253
|
+
*
|
|
254
|
+
* @default 'auto'
|
|
255
|
+
*/
|
|
256
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
257
|
+
/**
|
|
258
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
259
|
+
*
|
|
260
|
+
* @default 'fields'
|
|
261
|
+
*/
|
|
262
|
+
responseStyle?: ResponseStyle;
|
|
263
|
+
/**
|
|
264
|
+
* Throw an error instead of returning it in the response?
|
|
265
|
+
*
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
throwOnError?: T['throwOnError'];
|
|
269
|
+
}
|
|
270
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
271
|
+
responseStyle: TResponseStyle;
|
|
272
|
+
throwOnError: ThrowOnError;
|
|
273
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
274
|
+
/**
|
|
275
|
+
* Any body that you want to add to your request.
|
|
276
|
+
*
|
|
277
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
278
|
+
*/
|
|
279
|
+
body?: unknown;
|
|
280
|
+
path?: Record<string, unknown>;
|
|
281
|
+
query?: Record<string, unknown>;
|
|
282
|
+
/**
|
|
283
|
+
* Security mechanism(s) to use for the request.
|
|
284
|
+
*/
|
|
285
|
+
security?: ReadonlyArray<Auth>;
|
|
286
|
+
url: Url;
|
|
287
|
+
}
|
|
288
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
289
|
+
headers: Headers;
|
|
290
|
+
serializedBody?: string;
|
|
291
|
+
}
|
|
292
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
293
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
294
|
+
request: Request;
|
|
295
|
+
response: Response;
|
|
296
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
297
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
298
|
+
error: undefined;
|
|
299
|
+
} | {
|
|
300
|
+
data: undefined;
|
|
301
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
302
|
+
}) & {
|
|
303
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
304
|
+
request?: Request;
|
|
305
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
306
|
+
response?: Response;
|
|
307
|
+
}>;
|
|
308
|
+
interface ClientOptions$1 {
|
|
309
|
+
baseUrl?: string;
|
|
310
|
+
responseStyle?: ResponseStyle;
|
|
311
|
+
throwOnError?: boolean;
|
|
312
|
+
}
|
|
313
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
314
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
315
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
316
|
+
type BuildUrlFn = <TData extends {
|
|
317
|
+
body?: unknown;
|
|
318
|
+
path?: Record<string, unknown>;
|
|
319
|
+
query?: Record<string, unknown>;
|
|
320
|
+
url: string;
|
|
321
|
+
}>(options: TData & Options<TData>) => string;
|
|
322
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
323
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
324
|
+
};
|
|
325
|
+
interface TDataShape {
|
|
326
|
+
body?: unknown;
|
|
327
|
+
headers?: unknown;
|
|
328
|
+
path?: unknown;
|
|
329
|
+
query?: unknown;
|
|
330
|
+
url: string;
|
|
331
|
+
}
|
|
332
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
333
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
334
|
+
|
|
335
|
+
type ClientOptions = {
|
|
336
|
+
baseUrl: 'https://api.stage.tesouro.com' | 'https://api.sandbox.stage.tesouro.com' | 'https://api.stage.business-banking.app' | 'https://api.tesouro.com' | 'https://api.sandbox.tesouro.com' | 'https://api.business-banking.app' | (string & {});
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
type EmbeddedClient = Client;
|
|
340
|
+
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
341
|
+
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
342
|
+
|
|
343
|
+
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
344
|
+
children?: ReactNode;
|
|
345
|
+
};
|
|
346
|
+
type LinkComponent = ComponentType<LinkComponentProps>;
|
|
347
|
+
/**
|
|
348
|
+
* The UI frameworks a widget's UI layer can render with.
|
|
349
|
+
*
|
|
350
|
+
* - `shadcn` — the shadcn/Tailwind implementation. This is the default and the
|
|
351
|
+
* implicit fallback, so existing consumers that select nothing keep rendering
|
|
352
|
+
* shadcn.
|
|
353
|
+
* - `tecton` — the Tecton implementation.
|
|
354
|
+
*
|
|
355
|
+
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
356
|
+
* convention.
|
|
357
|
+
*/
|
|
358
|
+
declare const UIFramework: {
|
|
359
|
+
readonly Shadcn: "shadcn";
|
|
360
|
+
readonly Tecton: "tecton";
|
|
361
|
+
};
|
|
362
|
+
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* The implementation a widget renders with.
|
|
366
|
+
*
|
|
367
|
+
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
368
|
+
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
369
|
+
* - `monite` — the Monite SDK implementation.
|
|
370
|
+
*
|
|
371
|
+
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
372
|
+
* convention.
|
|
373
|
+
*/
|
|
374
|
+
declare const Implementation: {
|
|
375
|
+
readonly Native: "native";
|
|
376
|
+
readonly Monite: "monite";
|
|
377
|
+
};
|
|
378
|
+
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
379
|
+
/**
|
|
380
|
+
* The settable fields of the widget config cascade.
|
|
381
|
+
*
|
|
382
|
+
* This is the type accepted by {@link setGlobalWidgetConfig} and all provider props.
|
|
383
|
+
* It intentionally excludes `initResponse`, which is populated automatically by the
|
|
384
|
+
* provider after a successful fetch and must never be set manually.
|
|
385
|
+
*
|
|
386
|
+
* The `null` vs `undefined` distinction on `widgetToken` and `organizationId` is intentional:
|
|
387
|
+
* - `undefined` — not set at this level; inherit from the nearest ancestor or global store.
|
|
388
|
+
* - `null` — explicitly cleared; downstream sees "no value" even if an ancestor had one
|
|
389
|
+
* (e.g. after logout or deliberate de-scoping).
|
|
390
|
+
*
|
|
391
|
+
* @see {@link WidgetConfig} for the resolved output type (includes `initResponse`)
|
|
392
|
+
* @see {@link RootWidgetProvider}
|
|
393
|
+
* @see {@link WidgetProvider}
|
|
394
|
+
* @see {@link setGlobalWidgetConfig}
|
|
395
|
+
*/
|
|
396
|
+
interface WidgetConfigInput {
|
|
397
|
+
/**
|
|
398
|
+
* Base URL of the Tesouro embedded API (e.g. `"https://api.tesouro.com"`).
|
|
399
|
+
*
|
|
400
|
+
* When omitted the nearest ancestor's `baseUrl` or the global store value is used.
|
|
401
|
+
* Changing this recreates the underlying HTTP client so all subsequent requests
|
|
402
|
+
* go to the new host.
|
|
403
|
+
*/
|
|
404
|
+
baseUrl?: BaseUrl;
|
|
405
|
+
/**
|
|
406
|
+
* Bearer token used to authenticate widget requests.
|
|
407
|
+
*
|
|
408
|
+
* Injected as `Authorization: Bearer <token>` on every outgoing request via an
|
|
409
|
+
* interceptor on the scoped HTTP client. Token updates are picked up immediately
|
|
410
|
+
* without recreating the client.
|
|
411
|
+
*
|
|
412
|
+
* - `string` — send this token on all requests from this level downward.
|
|
413
|
+
* - `null` — explicitly cleared; no auth header is sent and fetching is suppressed.
|
|
414
|
+
* - `undefined` — not set at this level; inherit from the nearest ancestor or global store.
|
|
415
|
+
*/
|
|
416
|
+
widgetToken?: string | null;
|
|
417
|
+
/**
|
|
418
|
+
* Organization ID forwarded as the `x-organization-id` request header.
|
|
419
|
+
*
|
|
420
|
+
* Passed through {@link EmbedApiProvider} context rather than the auth interceptor,
|
|
421
|
+
* so individual data-access hooks can opt in per-request.
|
|
422
|
+
*
|
|
423
|
+
* - `string` — use this organization for downstream data requests.
|
|
424
|
+
* - `null` — explicitly cleared; queries that require an org ID will be disabled.
|
|
425
|
+
* - `undefined` — not set at this level; inherit from the nearest ancestor or global store.
|
|
426
|
+
*
|
|
427
|
+
* When `undefined` across the **whole** cascade (no prop, no ancestor, no global
|
|
428
|
+
* value), the resolved org defaults to the loaded `initResponse.organizationId`
|
|
429
|
+
* (see {@link WidgetConfig.initResponse}) once the widget-init fetch settles. This
|
|
430
|
+
* is the lowest-priority fallback — any explicit `string` or `null` at any cascade
|
|
431
|
+
* level wins, and an explicit `null` is preserved and never falls back.
|
|
432
|
+
*
|
|
433
|
+
* Only an **explicit** ancestor org is inherited. An ancestor's *init-derived*
|
|
434
|
+
* default does not propagate into a descendant that owns its own fetch (its own
|
|
435
|
+
* `baseUrl`/`widgetToken`); such a descendant defaults to its own
|
|
436
|
+
* `initResponse.organizationId` instead, so it never sends an ancestor's org with
|
|
437
|
+
* its own token.
|
|
438
|
+
*/
|
|
439
|
+
organizationId?: string | null;
|
|
440
|
+
/**
|
|
441
|
+
* Optional post-creation hook for the scoped HTTP client.
|
|
442
|
+
*
|
|
443
|
+
* Called once after the provider creates its scoped {@link EmbeddedClient} and
|
|
444
|
+
* applies the built-in `Authorization: Bearer` interceptor. Receives the
|
|
445
|
+
* fully-configured client and must return the client to be used for the lifetime of
|
|
446
|
+
* this provider level — either the same instance (with additional interceptors
|
|
447
|
+
* attached) or a new client entirely.
|
|
448
|
+
*
|
|
449
|
+
* **Order:** The built-in auth interceptor is always applied first. `configClient`
|
|
450
|
+
* is called on top of it, so any interceptors you add here run after auth is set.
|
|
451
|
+
*
|
|
452
|
+
* **Any prop triggers a scoped client.** A {@link WidgetProvider} creates its own
|
|
453
|
+
* scoped client whenever any prop is set — including `configClient` alone, without
|
|
454
|
+
* `baseUrl` or `widgetToken`. Only a fully props-free pass-through provider skips
|
|
455
|
+
* client creation and never calls this function.
|
|
456
|
+
*
|
|
457
|
+
* **Stability:** The function reference is included in the client creation memo's
|
|
458
|
+
* dependency array. Passing an unstable (inline) function recreates the client on
|
|
459
|
+
* every render. Stabilize with `useCallback` or define the function outside the
|
|
460
|
+
* component.
|
|
461
|
+
*
|
|
462
|
+
* **Cascade:** Inherits from the nearest ancestor when `undefined`. A child
|
|
463
|
+
* {@link WidgetProvider} that creates its own scoped client will use the resolved
|
|
464
|
+
* `configClient` from the cascade unless it provides its own override.
|
|
465
|
+
*
|
|
466
|
+
* @example
|
|
467
|
+
* ```tsx
|
|
468
|
+
* const addLogging = useCallback(
|
|
469
|
+
* (client: EmbeddedClient) => {
|
|
470
|
+
* client.interceptors.request.use((req) => {
|
|
471
|
+
* console.log('[widget]', req.method, req.url);
|
|
472
|
+
* return req;
|
|
473
|
+
* });
|
|
474
|
+
* return client;
|
|
475
|
+
* },
|
|
476
|
+
* [],
|
|
477
|
+
* );
|
|
478
|
+
*
|
|
479
|
+
* <RootWidgetProvider
|
|
480
|
+
* baseUrl="https://api.tesouro.com"
|
|
481
|
+
* widgetToken={token}
|
|
482
|
+
* configClient={addLogging}
|
|
483
|
+
* >
|
|
484
|
+
* <App />
|
|
485
|
+
* </RootWidgetProvider>
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
configClient?: (client: EmbeddedClient) => EmbeddedClient;
|
|
489
|
+
/**
|
|
490
|
+
* Component the embedded widgets should render in place of plain `<a>` tags.
|
|
491
|
+
*
|
|
492
|
+
* Pass e.g. Next.js's `Link` to make in-app navigation use the host router.
|
|
493
|
+
* Cascades like other config: provider prop > nearest ancestor > global store.
|
|
494
|
+
* When no value is set anywhere, widgets fall back to a plain `<a>` element.
|
|
495
|
+
*/
|
|
496
|
+
linkComponent?: LinkComponent;
|
|
497
|
+
/**
|
|
498
|
+
* Which UI framework the widget UI layer should render with.
|
|
499
|
+
*
|
|
500
|
+
* Lets a consuming context bind widgets to either the shadcn/Tailwind or the
|
|
501
|
+
* Tecton implementation behind the same outward-facing API. The selection is
|
|
502
|
+
* a presentation concern only — it cascades through the provider tree exactly
|
|
503
|
+
* like {@link linkComponent} and is read by UI libraries via `useUIFramework`;
|
|
504
|
+
* it never appears in any widget's feature-library or component props.
|
|
505
|
+
*
|
|
506
|
+
* - `'shadcn'` — the shadcn/Tailwind implementation.
|
|
507
|
+
* - `'tecton'` — the Tecton implementation.
|
|
508
|
+
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
509
|
+
* ancestor or global store, falling back to `shadcn` when unset everywhere.
|
|
510
|
+
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
511
|
+
*/
|
|
512
|
+
uiFramework?: UIFramework | null;
|
|
513
|
+
/**
|
|
514
|
+
* Which implementation a widget renders with.
|
|
515
|
+
*
|
|
516
|
+
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
517
|
+
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
518
|
+
* through the provider tree exactly like {@link linkComponent} and
|
|
519
|
+
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
520
|
+
* is read via `useImplementation`.
|
|
521
|
+
*
|
|
522
|
+
* - `'native'` — the Tesouro-native implementation.
|
|
523
|
+
* - `'monite'` — the Monite SDK implementation.
|
|
524
|
+
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
525
|
+
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
526
|
+
* `native` is the implicit default, so existing consumers need no changes.
|
|
527
|
+
*/
|
|
528
|
+
implementation?: Implementation | null;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Props shared by every analytics-owner-capable widget provider.
|
|
532
|
+
*
|
|
533
|
+
* Combines the full settable cascade ({@link WidgetConfigInput}) with the
|
|
534
|
+
* analytics opt-out honored by analytics owners. Both {@link RootWidgetProvider}
|
|
535
|
+
* and {@link WidgetProvider} build their public props on top of this; the latter
|
|
536
|
+
* adds error-boundary props of its own.
|
|
537
|
+
*
|
|
538
|
+
* @see {@link WidgetConfigInput} for per-field cascade and `null` vs omitted semantics
|
|
539
|
+
*/
|
|
540
|
+
interface WidgetProviderBaseProps extends WidgetConfigInput {
|
|
541
|
+
/**
|
|
542
|
+
* Opt out of all analytics capture and prevent PostHog from loading. Default `true`.
|
|
543
|
+
*
|
|
544
|
+
* Honored only by an analytics **owner** — a {@link RootWidgetProvider} or a
|
|
545
|
+
* standalone {@link WidgetProvider} with no parent provider. When `false`,
|
|
546
|
+
* owner-bound `track` calls in this subtree become no-ops and the PostHog
|
|
547
|
+
* installer is never dynamically imported for this owner's environment.
|
|
548
|
+
* Setting it on a nested {@link WidgetProvider} is ignored in v1 (a one-time
|
|
549
|
+
* `console.warn` is emitted to make the no-op discoverable).
|
|
550
|
+
*/
|
|
551
|
+
analytics?: boolean;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Props for {@link WidgetProvider}.
|
|
556
|
+
*
|
|
557
|
+
* All fields are optional. When **all** are omitted the provider is a transparent
|
|
558
|
+
* pass-through: no fetch is issued and all resolved values cascade unchanged from
|
|
559
|
+
* the nearest ancestor.
|
|
560
|
+
*/
|
|
561
|
+
interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
562
|
+
/**
|
|
563
|
+
* Fallback rendered when a render-time exception is caught inside this
|
|
564
|
+
* provider's subtree. Pass either a `ReactNode` (rendered directly) or a
|
|
565
|
+
* render-prop receiving `{ error, resetErrorBoundary }` from
|
|
566
|
+
* `react-error-boundary`. Default is a plain `role="alert"` div with
|
|
567
|
+
* generic copy from `DEFAULT_LABELS.errorBoundaryFallback`.
|
|
568
|
+
*/
|
|
569
|
+
errorFallback?: ReactNode | ((props: FallbackProps) => ReactNode);
|
|
570
|
+
/**
|
|
571
|
+
* Called once when the boundary catches an error, before the fallback
|
|
572
|
+
* renders. Use for telemetry / Sentry / partner logging. Exceptions
|
|
573
|
+
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
574
|
+
*/
|
|
575
|
+
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
type InnerProps = AcceptDisclosuresWidgetProps$1;
|
|
579
|
+
type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
580
|
+
/**
|
|
581
|
+
* Self-contained AcceptDisclosures widget scaffold. Wraps the presentational UI
|
|
582
|
+
* in {@link WidgetProvider}; data-access hooks and real disclosures UI land later.
|
|
583
|
+
*/
|
|
584
|
+
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
585
|
+
|
|
586
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, AcceptDisclosuresWidget };
|
|
587
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AcceptDisclosuresWidget as t } from "../libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index2.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as p } from "../libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/index3.js";
|
|
4
|
+
export {
|
|
5
|
+
p as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN,
|
|
6
|
+
t as AcceptDisclosuresWidget
|
|
7
|
+
};
|