@notabene/javascript-sdk 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +64 -58
  2. package/dist/notabene.cjs +1 -1
  3. package/dist/notabene.js +1 -1
  4. package/docs/README.md +656 -0
  5. package/docs/_media/LICENSE.md +21 -0
  6. package/docs/_media/TransactionOptions.md +93 -0
  7. package/docs/_media/locales.ts +48 -0
  8. package/docs/ivms/types/README.md +46 -0
  9. package/docs/ivms/types/enumerations/PayloadVersionCode.md +33 -0
  10. package/docs/ivms/types/interfaces/PayloadMetadata.md +34 -0
  11. package/docs/ivms/types/type-aliases/Address.md +114 -0
  12. package/docs/ivms/types/type-aliases/AddressTypeCode.md +16 -0
  13. package/docs/ivms/types/type-aliases/Beneficiary.md +30 -0
  14. package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +24 -0
  15. package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +30 -0
  16. package/docs/ivms/types/type-aliases/ISOCountryCode.md +22 -0
  17. package/docs/ivms/types/type-aliases/ISODate.md +23 -0
  18. package/docs/ivms/types/type-aliases/IVMS101.md +41 -0
  19. package/docs/ivms/types/type-aliases/IntermediaryVASP.md +30 -0
  20. package/docs/ivms/types/type-aliases/LegalPerson.md +48 -0
  21. package/docs/ivms/types/type-aliases/LegalPersonName.md +36 -0
  22. package/docs/ivms/types/type-aliases/LegalPersonNameID.md +30 -0
  23. package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +16 -0
  24. package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +30 -0
  25. package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +36 -0
  26. package/docs/ivms/types/type-aliases/NationalIdentification.md +42 -0
  27. package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +16 -0
  28. package/docs/ivms/types/type-aliases/NaturalPerson.md +54 -0
  29. package/docs/ivms/types/type-aliases/NaturalPersonName.md +36 -0
  30. package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +36 -0
  31. package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +16 -0
  32. package/docs/ivms/types/type-aliases/OriginatingVASP.md +24 -0
  33. package/docs/ivms/types/type-aliases/Originator.md +30 -0
  34. package/docs/ivms/types/type-aliases/Person.md +30 -0
  35. package/docs/ivms/types/type-aliases/TransferPath.md +24 -0
  36. package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +16 -0
  37. package/docs/modules.md +11 -0
  38. package/docs/notabene/README.md +368 -0
  39. package/docs/notabene/classes/EmbeddedComponent.md +347 -0
  40. package/docs/notabene/classes/default.md +221 -0
  41. package/docs/notabene/functions/decodeFragmentToObject.md +27 -0
  42. package/docs/notabene/interfaces/NotabeneConfig.md +69 -0
  43. package/docs/notabene/type-aliases/MessageCallback.md +31 -0
  44. package/docs/types/README.md +154 -0
  45. package/docs/types/enumerations/AgentType.md +29 -0
  46. package/docs/types/enumerations/CMType.md +90 -0
  47. package/docs/types/enumerations/HMType.md +35 -0
  48. package/docs/types/enumerations/PersonType.md +55 -0
  49. package/docs/types/enumerations/ProofStatus.md +57 -0
  50. package/docs/types/enumerations/ProofTypes.md +148 -0
  51. package/docs/types/enumerations/Status.md +59 -0
  52. package/docs/types/enumerations/ValidationSections.md +59 -0
  53. package/docs/types/interfaces/Agent.md +74 -0
  54. package/docs/types/interfaces/CallbackOptions.md +29 -0
  55. package/docs/types/interfaces/ComponentRequest.md +50 -0
  56. package/docs/types/interfaces/ComponentResponse.md +71 -0
  57. package/docs/types/interfaces/ConnectionRecord.md +111 -0
  58. package/docs/types/interfaces/ConnectionRequest.md +51 -0
  59. package/docs/types/interfaces/Counterparty.md +135 -0
  60. package/docs/types/interfaces/DeclarationProof.md +89 -0
  61. package/docs/types/interfaces/Deposit.md +147 -0
  62. package/docs/types/interfaces/DepositRequest.md +111 -0
  63. package/docs/types/interfaces/DepositRequestOptions.md +19 -0
  64. package/docs/types/interfaces/LegalPerson.md +202 -0
  65. package/docs/types/interfaces/MicroTransferProof.md +119 -0
  66. package/docs/types/interfaces/NaturalPerson.md +201 -0
  67. package/docs/types/interfaces/OwnershipProof.md +77 -0
  68. package/docs/types/interfaces/ScreenshotProof.md +79 -0
  69. package/docs/types/interfaces/SignatureProof.md +115 -0
  70. package/docs/types/interfaces/ThresholdOptions.md +47 -0
  71. package/docs/types/interfaces/Transaction.md +136 -0
  72. package/docs/types/interfaces/TransactionOptions.md +93 -0
  73. package/docs/types/interfaces/TransactionResponse.md +130 -0
  74. package/docs/types/interfaces/VASP.md +127 -0
  75. package/docs/types/interfaces/Wallet.md +117 -0
  76. package/docs/types/interfaces/Withdrawal.md +147 -0
  77. package/docs/types/type-aliases/BlockchainAddress.md +36 -0
  78. package/docs/types/type-aliases/CAIP10.md +39 -0
  79. package/docs/types/type-aliases/CAIP19.md +40 -0
  80. package/docs/types/type-aliases/CAIP2.md +39 -0
  81. package/docs/types/type-aliases/CAIP220.md +15 -0
  82. package/docs/types/type-aliases/Cancel.md +23 -0
  83. package/docs/types/type-aliases/Completed.md +35 -0
  84. package/docs/types/type-aliases/ComponentMessage.md +41 -0
  85. package/docs/types/type-aliases/ConnectionOptions.md +15 -0
  86. package/docs/types/type-aliases/CryptoCredential.md +15 -0
  87. package/docs/types/type-aliases/DID.md +15 -0
  88. package/docs/types/type-aliases/DTI.md +38 -0
  89. package/docs/types/type-aliases/Destination.md +15 -0
  90. package/docs/types/type-aliases/Error.md +29 -0
  91. package/docs/types/type-aliases/FieldOptions.md +15 -0
  92. package/docs/types/type-aliases/FieldTypes.md +25 -0
  93. package/docs/types/type-aliases/HostMessage.md +37 -0
  94. package/docs/types/type-aliases/ISOCurrency.md +15 -0
  95. package/docs/types/type-aliases/InvalidValue.md +45 -0
  96. package/docs/types/type-aliases/LEI.md +15 -0
  97. package/docs/types/type-aliases/LegalPersonFieldName.md +13 -0
  98. package/docs/types/type-aliases/LegalPersonFields.md +15 -0
  99. package/docs/types/type-aliases/NaturalPersonFieldName.md +15 -0
  100. package/docs/types/type-aliases/NaturalPersonFields.md +15 -0
  101. package/docs/types/type-aliases/NotabeneAsset.md +36 -0
  102. package/docs/types/type-aliases/Ready.md +21 -0
  103. package/docs/types/type-aliases/ResizeRequest.md +27 -0
  104. package/docs/types/type-aliases/Source.md +15 -0
  105. package/docs/types/type-aliases/Theme.md +33 -0
  106. package/docs/types/type-aliases/TransactionAsset.md +15 -0
  107. package/docs/types/type-aliases/TravelAddress.md +37 -0
  108. package/docs/types/type-aliases/URI.md +15 -0
  109. package/docs/types/type-aliases/UUID.md +27 -0
  110. package/docs/types/type-aliases/UpdateValue.md +54 -0
  111. package/docs/types/type-aliases/V1Asset.md +36 -0
  112. package/docs/types/type-aliases/V1Transaction.md +49 -0
  113. package/docs/types/type-aliases/VASPOptions.md +25 -0
  114. package/docs/types/type-aliases/ValidationError.md +25 -0
  115. package/package.json +6 -4
  116. package/src/components/EmbeddedComponent.ts +2 -2
  117. package/src/locales.ts +2 -1
@@ -102,11 +102,11 @@ export default class EmbeddedComponent<V, O> {
102
102
  this.removeEmbed();
103
103
  this.iframe = document.createElement('iframe');
104
104
  this.iframe.src = this.url + (!modal ? '&embedded=true' : '');
105
- this.iframe.allow = 'web-share';
105
+ this.iframe.allow = 'web-share; clipboard-write';
106
106
  this.iframe.style.width = '100%';
107
- this.iframe.style.height = '100px';
108
107
  this.iframe.style.border = 'none';
109
108
  this.iframe.style.overflow = 'hidden';
109
+ this.iframe.scrolling = 'no';
110
110
  // this.iframe.setAttribute('allowtransparency', 'true');
111
111
  // this.iframe.style.backgroundColor = 'transparent';
112
112
  parent.appendChild(this.iframe);
package/src/locales.ts CHANGED
@@ -43,5 +43,6 @@ export const languages = {
43
43
  tr: 'Türkçe (Turkish)',
44
44
  uk: 'Українська (Ukrainian)',
45
45
  vi: 'Tiếng Việt (Vietnamese)',
46
- zh: '中文 (Chinese)',
46
+ 'zh-CN': '中文 (Chinese)',
47
+ 'zh-TW': '中文 (Chinese)',
47
48
  };