@peculiar/certificates-viewer 2.0.0 → 3.0.0

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 (304) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/_commonjsHelpers-cb1f949a.js +23 -0
  3. package/dist/cjs/{download-ccba709e.js → certification_request-96951e7b.js} +2889 -3334
  4. package/dist/cjs/{dom-760f300f.js → dom-f57e260e.js} +4 -1
  5. package/dist/cjs/download-5e7d5455.js +438 -0
  6. package/dist/cjs/{index-2973f90a.js → index-064e95c7.js} +287 -634
  7. package/dist/cjs/index.cjs.js +12 -0
  8. package/dist/cjs/{l10n-e971a5ac.js → l10n-2e7def18.js} +72 -90
  9. package/dist/cjs/loader.cjs.js +12 -3
  10. package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +1426 -1391
  11. package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +66 -62
  12. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +222 -217
  13. package/dist/cjs/peculiar.cjs.js +70 -3
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +220 -205
  16. package/dist/collection/components/attribute-certificate-viewer/holder.js +27 -24
  17. package/dist/collection/components/attribute-certificate-viewer/issuer.js +11 -8
  18. package/dist/collection/components/button/button.css +2 -7
  19. package/dist/collection/components/button/button.js +125 -122
  20. package/dist/collection/components/button-split/button-split.js +103 -100
  21. package/dist/collection/components/certificate-decoder/certificate-decoder.css +1 -3
  22. package/dist/collection/components/certificate-decoder/certificate-decoder.js +158 -155
  23. package/dist/collection/components/certificate-summary/certificate-summary.js +75 -72
  24. package/dist/collection/components/certificate-viewer/attributes/activity_description_attribute.js +11 -8
  25. package/dist/collection/components/certificate-viewer/attributes/as_string_attribute.js +6 -3
  26. package/dist/collection/components/certificate-viewer/attributes/basic_attribute.js +11 -8
  27. package/dist/collection/components/certificate-viewer/attributes/challenge_password_attribute.js +6 -3
  28. package/dist/collection/components/certificate-viewer/attributes/index.js +45 -42
  29. package/dist/collection/components/certificate-viewer/attributes/insurance_value_attribute.js +7 -4
  30. package/dist/collection/components/certificate-viewer/attributes/name_attribute.js +6 -3
  31. package/dist/collection/components/certificate-viewer/attributes/name_part.js +8 -5
  32. package/dist/collection/components/certificate-viewer/attributes/type_relationship_attribute.js +5 -2
  33. package/dist/collection/components/certificate-viewer/attributes/unstructured_name_attribute.js +6 -3
  34. package/dist/collection/components/certificate-viewer/attributes/valuation_ranking_attribute.js +18 -15
  35. package/dist/collection/components/certificate-viewer/attributes/web_gdpr_attribute.js +13 -10
  36. package/dist/collection/components/certificate-viewer/basic_information.js +13 -10
  37. package/dist/collection/components/certificate-viewer/certificate-viewer.js +255 -240
  38. package/dist/collection/components/certificate-viewer/extensions/archive_rev_info_extension.js +6 -3
  39. package/dist/collection/components/certificate-viewer/extensions/as_string_extension.js +6 -3
  40. package/dist/collection/components/certificate-viewer/extensions/attribute_value.js +4 -1
  41. package/dist/collection/components/certificate-viewer/extensions/authority_key_identifier_extension.js +18 -15
  42. package/dist/collection/components/certificate-viewer/extensions/basic_constraints_extension.js +7 -4
  43. package/dist/collection/components/certificate-viewer/extensions/basic_extension.js +12 -9
  44. package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +12 -9
  45. package/dist/collection/components/certificate-viewer/extensions/ca_version_extension.js +8 -5
  46. package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +28 -25
  47. package/dist/collection/components/certificate-viewer/extensions/certificate_template_extension.js +8 -5
  48. package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +13 -10
  49. package/dist/collection/components/certificate-viewer/extensions/crl_distribution_points_extension.js +11 -8
  50. package/dist/collection/components/certificate-viewer/extensions/crl_reason_extension.js +6 -3
  51. package/dist/collection/components/certificate-viewer/extensions/enroll_cert_type_extension.js +6 -3
  52. package/dist/collection/components/certificate-viewer/extensions/entrust_version_info_extension.js +7 -4
  53. package/dist/collection/components/certificate-viewer/extensions/extended_key_usage_extension.js +5 -2
  54. package/dist/collection/components/certificate-viewer/extensions/general_name_part.js +55 -52
  55. package/dist/collection/components/certificate-viewer/extensions/index.js +112 -109
  56. package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +9 -6
  57. package/dist/collection/components/certificate-viewer/extensions/key_usage_extension.js +6 -3
  58. package/dist/collection/components/certificate-viewer/extensions/lei_extension.js +6 -3
  59. package/dist/collection/components/certificate-viewer/extensions/lei_role_extennsion.js +6 -3
  60. package/dist/collection/components/certificate-viewer/extensions/logotype_extension.js +49 -46
  61. package/dist/collection/components/certificate-viewer/extensions/name_constraints_extension.js +8 -5
  62. package/dist/collection/components/certificate-viewer/extensions/netscape_cert_type_extension.js +6 -3
  63. package/dist/collection/components/certificate-viewer/extensions/netscape_comment_extension.js +6 -3
  64. package/dist/collection/components/certificate-viewer/extensions/policy_constraints_extension.js +7 -4
  65. package/dist/collection/components/certificate-viewer/extensions/policy_mappings_extension.js +9 -6
  66. package/dist/collection/components/certificate-viewer/extensions/private_key_usage_period_extension.js +7 -4
  67. package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +9 -6
  68. package/dist/collection/components/certificate-viewer/extensions/subject_alternative_name_extension.js +5 -2
  69. package/dist/collection/components/certificate-viewer/extensions/subject_directory_attributes_extension.js +9 -6
  70. package/dist/collection/components/certificate-viewer/extensions/subject_key_identifier_extension.js +18 -15
  71. package/dist/collection/components/certificate-viewer/extensions/timestamp_extension.js +8 -5
  72. package/dist/collection/components/certificate-viewer/extensions/tn_auth_list_extension.js +10 -7
  73. package/dist/collection/components/certificate-viewer/get_string_by_oid.js +8 -5
  74. package/dist/collection/components/certificate-viewer/issuer_name.js +9 -6
  75. package/dist/collection/components/certificate-viewer/miscellaneous.js +29 -26
  76. package/dist/collection/components/certificate-viewer/public_key.js +31 -28
  77. package/dist/collection/components/certificate-viewer/row.js +35 -32
  78. package/dist/collection/components/certificate-viewer/signature.js +12 -9
  79. package/dist/collection/components/certificate-viewer/subject_name.js +8 -5
  80. package/dist/collection/components/certificate-viewer/thumbprints.js +15 -12
  81. package/dist/collection/components/certificates-viewer/certificates-viewer.css +1 -19
  82. package/dist/collection/components/certificates-viewer/certificates-viewer.js +384 -381
  83. package/dist/collection/components/circular-progress/circular-progress.css +2 -24
  84. package/dist/collection/components/circular-progress/circular-progress.js +73 -70
  85. package/dist/collection/components/csr-viewer/csr-viewer.js +197 -188
  86. package/dist/collection/components/highlight-words/highlight-words.js +56 -53
  87. package/dist/collection/components/link/link.css +1 -3
  88. package/dist/collection/components/link/link.js +60 -57
  89. package/dist/collection/components/text-hider/text-hider.js +75 -72
  90. package/dist/collection/components/typography/typography.css +1 -3
  91. package/dist/collection/components/typography/typography.js +126 -123
  92. package/dist/collection/constants/logs.js +79 -76
  93. package/dist/collection/constants/oids.js +2301 -2298
  94. package/dist/collection/crypto/asn_data.js +33 -32
  95. package/dist/collection/crypto/attribute.js +52 -49
  96. package/dist/collection/crypto/csr.js +64 -61
  97. package/dist/collection/crypto/extension.js +126 -123
  98. package/dist/collection/crypto/index.js +3 -0
  99. package/dist/collection/crypto/name.js +33 -32
  100. package/dist/collection/crypto/provider.js +28 -25
  101. package/dist/collection/crypto/utils.js +24 -21
  102. package/dist/collection/crypto/x509_attribute_certificate.js +61 -58
  103. package/dist/collection/crypto/x509_certificate.js +107 -104
  104. package/dist/collection/index.js +5 -1
  105. package/dist/collection/utils/date_formatter.js +19 -16
  106. package/dist/collection/utils/download.js +18 -15
  107. package/dist/collection/utils/download_from_buffer.js +30 -25
  108. package/dist/collection/utils/history.js +5 -2
  109. package/dist/collection/utils/index.js +3 -0
  110. package/dist/collection/utils/is_link.js +4 -1
  111. package/dist/collection/utils/l10n.js +28 -25
  112. package/dist/collection/utils/parse_hash.js +16 -13
  113. package/dist/collection/utils/query_stringify.js +12 -9
  114. package/dist/collection/utils/read_file.js +43 -40
  115. package/dist/collection/utils/third_party_links.js +3 -0
  116. package/dist/collection/utils/validator.js +15 -12
  117. package/dist/esm/_commonjsHelpers-bfbd2ad8.js +20 -0
  118. package/dist/esm/{download-efafe986.js → certification_request-48e8b956.js} +2907 -3349
  119. package/dist/esm/{dom-91ed8d21.js → dom-f1b08a97.js} +4 -1
  120. package/dist/esm/download-cf68ac2c.js +434 -0
  121. package/dist/esm/{index-5ef692cc.js → index-bbd484d9.js} +278 -624
  122. package/dist/esm/index.js +5 -0
  123. package/dist/esm/{l10n-c8cf6930.js → l10n-ead9928b.js} +71 -86
  124. package/dist/esm/{loader.mjs → loader.js} +11 -2
  125. package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +1425 -1390
  126. package/dist/esm/peculiar-certificate-summary_3.entry.js +66 -62
  127. package/dist/esm/peculiar-certificates-viewer.entry.js +222 -217
  128. package/dist/esm/peculiar.js +73 -0
  129. package/dist/esm/polyfills/css-shim.js +1 -1
  130. package/dist/esm/polyfills/index.js +2 -2
  131. package/dist/esm-es5/_commonjsHelpers-bfbd2ad8.js +4 -0
  132. package/dist/esm-es5/certification_request-48e8b956.js +89 -0
  133. package/dist/esm-es5/dom-f1b08a97.js +24 -0
  134. package/dist/esm-es5/download-cf68ac2c.js +18 -0
  135. package/dist/esm-es5/index-bbd484d9.js +5 -0
  136. package/dist/esm-es5/index.js +4 -0
  137. package/dist/esm-es5/l10n-ead9928b.js +39 -0
  138. package/dist/esm-es5/loader.js +4 -0
  139. package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +198 -1907
  140. package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +4 -83
  141. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +4 -290
  142. package/dist/esm-es5/peculiar.js +4 -0
  143. package/dist/index.cjs.js +1 -0
  144. package/dist/index.js +1 -1
  145. package/dist/peculiar/index.esm.js +4 -0
  146. package/dist/peculiar/p-047b12d9.system.js +89 -0
  147. package/dist/peculiar/p-13e9d17d.system.entry.js +460 -0
  148. package/dist/peculiar/p-29cdd256.system.js +18 -0
  149. package/dist/peculiar/{p-75076c56.system.js → p-3929074b.system.js} +18 -15
  150. package/dist/peculiar/p-452d69af.entry.js +113 -0
  151. package/dist/peculiar/p-4f52a24f.system.js +39 -0
  152. package/dist/peculiar/p-5f7fbf05.system.entry.js +4 -0
  153. package/dist/peculiar/p-82033e2e.system.entry.js +4 -0
  154. package/dist/peculiar/p-886e9c53.js +87 -0
  155. package/dist/peculiar/p-88fbaf05.system.js +4 -0
  156. package/dist/peculiar/p-8df391dc.system.js +4 -0
  157. package/dist/peculiar/p-9837be14.system.js +5 -0
  158. package/dist/peculiar/p-9ae6b1f8.entry.js +4 -0
  159. package/dist/peculiar/{p-3d1015c2.js → p-9f4ee110.js} +5 -2
  160. package/dist/peculiar/p-c774ec0b.js +18 -0
  161. package/dist/peculiar/p-d09b762f.js +33 -0
  162. package/dist/peculiar/p-d0b55fbb.js +4 -0
  163. package/dist/peculiar/p-e5f99586.entry.js +4 -0
  164. package/dist/peculiar/p-ee0e2707.system.js +4 -0
  165. package/dist/peculiar/p-f7683ba5.js +5 -0
  166. package/dist/peculiar/peculiar.esm.js +4 -1
  167. package/dist/peculiar/peculiar.js +1 -3
  168. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +56 -56
  169. package/dist/types/components/attribute-certificate-viewer/holder.d.ts +1 -1
  170. package/dist/types/components/attribute-certificate-viewer/issuer.d.ts +1 -1
  171. package/dist/types/components/button/button.d.ts +17 -17
  172. package/dist/types/components/button-split/button-split.d.ts +10 -10
  173. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +16 -16
  174. package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -4
  175. package/dist/types/components/certificate-viewer/attributes/activity_description_attribute.d.ts +1 -1
  176. package/dist/types/components/certificate-viewer/attributes/as_string_attribute.d.ts +1 -1
  177. package/dist/types/components/certificate-viewer/attributes/basic_attribute.d.ts +1 -1
  178. package/dist/types/components/certificate-viewer/attributes/challenge_password_attribute.d.ts +1 -1
  179. package/dist/types/components/certificate-viewer/attributes/index.d.ts +1 -1
  180. package/dist/types/components/certificate-viewer/attributes/insurance_value_attribute.d.ts +1 -1
  181. package/dist/types/components/certificate-viewer/attributes/name_attribute.d.ts +1 -1
  182. package/dist/types/components/certificate-viewer/attributes/name_part.d.ts +1 -1
  183. package/dist/types/components/certificate-viewer/attributes/type_relationship_attribute.d.ts +1 -1
  184. package/dist/types/components/certificate-viewer/attributes/unstructured_name_attribute.d.ts +1 -1
  185. package/dist/types/components/certificate-viewer/attributes/valuation_ranking_attribute.d.ts +1 -1
  186. package/dist/types/components/certificate-viewer/attributes/web_gdpr_attribute.d.ts +1 -1
  187. package/dist/types/components/certificate-viewer/basic_information.d.ts +6 -6
  188. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +66 -66
  189. package/dist/types/components/certificate-viewer/extensions/archive_rev_info_extension.d.ts +1 -1
  190. package/dist/types/components/certificate-viewer/extensions/as_string_extension.d.ts +1 -1
  191. package/dist/types/components/certificate-viewer/extensions/authority_key_identifier_extension.d.ts +1 -1
  192. package/dist/types/components/certificate-viewer/extensions/basic_constraints_extension.d.ts +1 -1
  193. package/dist/types/components/certificate-viewer/extensions/basic_extension.d.ts +1 -1
  194. package/dist/types/components/certificate-viewer/extensions/biometric_syntax_extension.d.ts +1 -1
  195. package/dist/types/components/certificate-viewer/extensions/ca_version_extension.d.ts +1 -1
  196. package/dist/types/components/certificate-viewer/extensions/certificate_policies_extension.d.ts +1 -1
  197. package/dist/types/components/certificate-viewer/extensions/certificate_template_extension.d.ts +1 -1
  198. package/dist/types/components/certificate-viewer/extensions/certificate_transparency_extension.d.ts +1 -1
  199. package/dist/types/components/certificate-viewer/extensions/crl_distribution_points_extension.d.ts +1 -1
  200. package/dist/types/components/certificate-viewer/extensions/crl_reason_extension.d.ts +1 -1
  201. package/dist/types/components/certificate-viewer/extensions/enroll_cert_type_extension.d.ts +1 -1
  202. package/dist/types/components/certificate-viewer/extensions/entrust_version_info_extension.d.ts +1 -1
  203. package/dist/types/components/certificate-viewer/extensions/extended_key_usage_extension.d.ts +1 -1
  204. package/dist/types/components/certificate-viewer/extensions/general_name_part.d.ts +1 -1
  205. package/dist/types/components/certificate-viewer/extensions/index.d.ts +2 -2
  206. package/dist/types/components/certificate-viewer/extensions/info_access_syntax_extension.d.ts +1 -1
  207. package/dist/types/components/certificate-viewer/extensions/key_usage_extension.d.ts +1 -1
  208. package/dist/types/components/certificate-viewer/extensions/lei_extension.d.ts +1 -1
  209. package/dist/types/components/certificate-viewer/extensions/lei_role_extennsion.d.ts +1 -1
  210. package/dist/types/components/certificate-viewer/extensions/logotype_extension.d.ts +1 -1
  211. package/dist/types/components/certificate-viewer/extensions/name_constraints_extension.d.ts +1 -1
  212. package/dist/types/components/certificate-viewer/extensions/netscape_cert_type_extension.d.ts +1 -1
  213. package/dist/types/components/certificate-viewer/extensions/netscape_comment_extension.d.ts +1 -1
  214. package/dist/types/components/certificate-viewer/extensions/policy_constraints_extension.d.ts +1 -1
  215. package/dist/types/components/certificate-viewer/extensions/policy_mappings_extension.d.ts +1 -1
  216. package/dist/types/components/certificate-viewer/extensions/private_key_usage_period_extension.d.ts +1 -1
  217. package/dist/types/components/certificate-viewer/extensions/qc_statements_extension.d.ts +1 -1
  218. package/dist/types/components/certificate-viewer/extensions/subject_alternative_name_extension.d.ts +1 -1
  219. package/dist/types/components/certificate-viewer/extensions/subject_directory_attributes_extension.d.ts +1 -1
  220. package/dist/types/components/certificate-viewer/extensions/subject_key_identifier_extension.d.ts +1 -1
  221. package/dist/types/components/certificate-viewer/extensions/timestamp_extension.d.ts +1 -1
  222. package/dist/types/components/certificate-viewer/extensions/tn_auth_list_extension.d.ts +1 -1
  223. package/dist/types/components/certificate-viewer/issuer_name.d.ts +2 -2
  224. package/dist/types/components/certificate-viewer/miscellaneous.d.ts +1 -1
  225. package/dist/types/components/certificate-viewer/public_key.d.ts +1 -1
  226. package/dist/types/components/certificate-viewer/row.d.ts +7 -7
  227. package/dist/types/components/certificate-viewer/signature.d.ts +1 -1
  228. package/dist/types/components/certificate-viewer/subject_name.d.ts +1 -1
  229. package/dist/types/components/certificate-viewer/thumbprints.d.ts +1 -1
  230. package/dist/types/components/certificate-viewer/types.d.ts +26 -0
  231. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +64 -64
  232. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  233. package/dist/types/components/csr-viewer/csr-viewer.d.ts +45 -45
  234. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  235. package/dist/types/components/link/link.d.ts +6 -6
  236. package/dist/types/components/text-hider/text-hider.d.ts +4 -4
  237. package/dist/types/components/typography/typography.d.ts +18 -18
  238. package/dist/types/components.d.ts +11 -3
  239. package/dist/types/constants/logs.d.ts +76 -76
  240. package/dist/types/constants/oids.d.ts +2293 -2293
  241. package/dist/types/crypto/asn_data.d.ts +6 -6
  242. package/dist/types/crypto/attribute.d.ts +3 -3
  243. package/dist/types/crypto/csr.d.ts +19 -19
  244. package/dist/types/crypto/extension.d.ts +3 -3
  245. package/dist/types/crypto/name.d.ts +7 -7
  246. package/dist/types/crypto/provider.d.ts +15 -15
  247. package/dist/types/crypto/x509_attribute_certificate.d.ts +22 -22
  248. package/dist/types/crypto/x509_certificate.d.ts +28 -28
  249. package/dist/types/index.d.ts +2 -1
  250. package/dist/types/interface.d.ts +3 -0
  251. package/dist/types/stencil-public-runtime.d.ts +230 -217
  252. package/dist/types/utils/download.d.ts +8 -8
  253. package/dist/types/utils/download_from_buffer.d.ts +3 -3
  254. package/dist/types/utils/l10n.d.ts +43 -43
  255. package/dist/types/utils/read_file.d.ts +7 -7
  256. package/loader/cdn.js +3 -1
  257. package/loader/index.cjs.js +3 -1
  258. package/loader/index.d.ts +0 -1
  259. package/loader/index.es2017.js +5 -0
  260. package/loader/{index.mjs → index.js} +4 -2
  261. package/loader/package.json +4 -5
  262. package/package.json +32 -33
  263. package/dist/cjs/css-shim-1b988199.js +0 -6
  264. package/dist/cjs/patch-15ea31af.js +0 -112
  265. package/dist/cjs/shadow-css-376763e9.js +0 -385
  266. package/dist/esm/css-shim-5ce2b5c4.js +0 -4
  267. package/dist/esm/index.mjs +0 -1
  268. package/dist/esm/patch-f8a17185.js +0 -109
  269. package/dist/esm/peculiar.mjs +0 -6
  270. package/dist/esm/shadow-css-95922619.js +0 -383
  271. package/dist/esm-es5/css-shim-5ce2b5c4.js +0 -122
  272. package/dist/esm-es5/dom-91ed8d21.js +0 -468
  273. package/dist/esm-es5/download-efafe986.js +0 -12704
  274. package/dist/esm-es5/index-5ef692cc.js +0 -1839
  275. package/dist/esm-es5/index.mjs +0 -0
  276. package/dist/esm-es5/l10n-c8cf6930.js +0 -758
  277. package/dist/esm-es5/loader.mjs +0 -10
  278. package/dist/esm-es5/patch-f8a17185.js +0 -106
  279. package/dist/esm-es5/peculiar.mjs +0 -5
  280. package/dist/esm-es5/shadow-css-95922619.js +0 -408
  281. package/dist/index.mjs +0 -1
  282. package/dist/peculiar/p-0ad0b6e8.js +0 -1
  283. package/dist/peculiar/p-198d9121.js +0 -1
  284. package/dist/peculiar/p-294c4ef9.entry.js +0 -1
  285. package/dist/peculiar/p-368352ac.system.js +0 -100
  286. package/dist/peculiar/p-4b7cd42f.js +0 -12
  287. package/dist/peculiar/p-50ea2036.system.js +0 -1
  288. package/dist/peculiar/p-557d912f.system.js +0 -1
  289. package/dist/peculiar/p-60e08389.system.entry.js +0 -1
  290. package/dist/peculiar/p-63588298.js +0 -100
  291. package/dist/peculiar/p-983b5210.system.entry.js +0 -1
  292. package/dist/peculiar/p-9f815f76.system.js +0 -1
  293. package/dist/peculiar/p-aa0a9b36.system.js +0 -1
  294. package/dist/peculiar/p-b8de1700.entry.js +0 -110
  295. package/dist/peculiar/p-bd1f9066.system.js +0 -36
  296. package/dist/peculiar/p-bd949790.js +0 -1
  297. package/dist/peculiar/p-cf1841f8.js +0 -30
  298. package/dist/peculiar/p-e652bcd4.system.entry.js +0 -457
  299. package/dist/peculiar/p-e6d55f8a.entry.js +0 -1
  300. package/dist/peculiar/p-fb53799e.system.js +0 -1
  301. package/dist/peculiar/p-fdad110e.system.js +0 -13
  302. package/dist/peculiar.js +0 -30
  303. package/loader/index.es2017.mjs +0 -3
  304. package/loader/node-main.js +0 -3
@@ -10,31 +10,11 @@
10
10
  width: 100%;
11
11
  }
12
12
 
13
- @-webkit-keyframes circular-rotate {
14
- to {
15
- transform: rotate(1turn);
16
- }
17
- }
18
-
19
13
  @keyframes circular-rotate {
20
14
  to {
21
15
  transform: rotate(1turn);
22
16
  }
23
17
  }
24
- @-webkit-keyframes circular-dash {
25
- 0% {
26
- stroke-dasharray: 1, 200;
27
- stroke-dashoffset: 0;
28
- }
29
- 50% {
30
- stroke-dasharray: 100, 200;
31
- stroke-dashoffset: -15;
32
- }
33
- to {
34
- stroke-dasharray: 100, 200;
35
- stroke-dashoffset: -120;
36
- }
37
- }
38
18
  @keyframes circular-dash {
39
19
  0% {
40
20
  stroke-dasharray: 1, 200;
@@ -54,14 +34,12 @@
54
34
  }
55
35
 
56
36
  .circle_progress_svg {
57
- -webkit-animation: circular-rotate 1.4s linear infinite;
58
- animation: circular-rotate 1.4s linear infinite;
37
+ animation: circular-rotate 1.4s linear infinite;
59
38
  }
60
39
 
61
40
  .circle_progress_circle {
62
41
  stroke-linecap: round;
63
- -webkit-animation: circular-dash 1.4s ease-in-out infinite;
64
- animation: circular-dash 1.4s ease-in-out infinite;
42
+ animation: circular-dash 1.4s ease-in-out infinite;
65
43
  stroke-dasharray: 80, 200;
66
44
  stroke-dashoffset: 0;
67
45
  stroke: #3584f7;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
1
4
  /**
2
5
  * @license
3
6
  * Copyright (c) Peculiar Ventures, LLC.
@@ -7,75 +10,75 @@
7
10
  */
8
11
  import { Component, Host, h, Prop, } from '@stencil/core';
9
12
  export class CircularProgress {
10
- constructor() {
11
- /**
12
- * Width/height of progress circle.
13
- */
14
- this.size = 24;
15
- /**
16
- * Stroke width of progress bar circle.
17
- */
18
- this.width = 4;
19
- this.box = 50;
20
- }
21
- render() {
22
- return (h(Host, null,
23
- h("div", { class: "circle_progress", style: {
24
- width: `${this.size}px`,
25
- height: `${this.size}px`,
26
- } },
27
- h("svg", { class: "circle_progress_svg", viewBox: `0 0 ${this.box} ${this.box}` },
28
- h("circle", { class: "circle_progress_backdrop", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
29
- strokeWidth: `${this.width}px`,
30
- } }),
31
- h("circle", { class: "circle_progress_circle", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
32
- strokeWidth: `${this.width}px`,
33
- } })))));
13
+ constructor() {
14
+ /**
15
+ * Width/height of progress circle.
16
+ */
17
+ this.size = 24;
18
+ /**
19
+ * Stroke width of progress bar circle.
20
+ */
21
+ this.width = 4;
22
+ this.box = 50;
23
+ }
24
+ render() {
25
+ return (h(Host, null,
26
+ h("div", { class: "circle_progress", style: {
27
+ width: `${this.size}px`,
28
+ height: `${this.size}px`,
29
+ } },
30
+ h("svg", { class: "circle_progress_svg", viewBox: `0 0 ${this.box} ${this.box}` },
31
+ h("circle", { class: "circle_progress_backdrop", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
32
+ strokeWidth: `${this.width}px`,
33
+ } }),
34
+ h("circle", { class: "circle_progress_circle", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
35
+ strokeWidth: `${this.width}px`,
36
+ } })))));
37
+ }
38
+ static get is() { return "peculiar-circular-progress"; }
39
+ static get encapsulation() { return "shadow"; }
40
+ static get originalStyleUrls() { return {
41
+ "$": ["circular-progress.scss"]
42
+ }; }
43
+ static get styleUrls() { return {
44
+ "$": ["circular-progress.css"]
45
+ }; }
46
+ static get properties() { return {
47
+ "size": {
48
+ "type": "number",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "number",
52
+ "resolved": "number",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "Width/height of progress circle."
60
+ },
61
+ "attribute": "size",
62
+ "reflect": false,
63
+ "defaultValue": "24"
64
+ },
65
+ "width": {
66
+ "type": "number",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "number",
70
+ "resolved": "number",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Stroke width of progress bar circle."
78
+ },
79
+ "attribute": "width",
80
+ "reflect": false,
81
+ "defaultValue": "4"
34
82
  }
35
- static get is() { return "peculiar-circular-progress"; }
36
- static get encapsulation() { return "shadow"; }
37
- static get originalStyleUrls() { return {
38
- "$": ["circular-progress.scss"]
39
- }; }
40
- static get styleUrls() { return {
41
- "$": ["circular-progress.css"]
42
- }; }
43
- static get properties() { return {
44
- "size": {
45
- "type": "number",
46
- "mutable": false,
47
- "complexType": {
48
- "original": "number",
49
- "resolved": "number",
50
- "references": {}
51
- },
52
- "required": false,
53
- "optional": false,
54
- "docs": {
55
- "tags": [],
56
- "text": "Width/height of progress circle."
57
- },
58
- "attribute": "size",
59
- "reflect": false,
60
- "defaultValue": "24"
61
- },
62
- "width": {
63
- "type": "number",
64
- "mutable": false,
65
- "complexType": {
66
- "original": "number",
67
- "resolved": "number",
68
- "references": {}
69
- },
70
- "required": false,
71
- "optional": false,
72
- "docs": {
73
- "tags": [],
74
- "text": "Stroke width of progress bar circle."
75
- },
76
- "attribute": "width",
77
- "reflect": false,
78
- "defaultValue": "4"
79
- }
80
- }; }
83
+ }; }
81
84
  }
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
1
4
  /**
2
5
  * @license
3
6
  * Copyright (c) Peculiar Ventures, LLC.
@@ -17,201 +20,207 @@ import { Extensions } from '../certificate-viewer/extensions';
17
20
  import { Miscellaneous } from '../certificate-viewer/miscellaneous';
18
21
  import { BasicInformation } from '../certificate-viewer/basic_information';
19
22
  export class CsrViewer {
20
- constructor() {
21
- this.isDecodeInProcess = true;
22
- this.getAuthKeyIdParentLink = (value) => value;
23
- this.getAuthKeyIdSiblingsLink = (value) => value;
24
- this.getSubjectKeyIdChildrenLink = (value) => { var _a; return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value); };
25
- this.getSubjectKeyIdSiblingsLink = (value) => { var _a; return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value); };
23
+ constructor() {
24
+ this.isDecodeInProcess = true;
25
+ this.getAuthKeyIdParentLink = (value) => value;
26
+ this.getAuthKeyIdSiblingsLink = (value) => value;
27
+ this.getSubjectKeyIdChildrenLink = (value) => {
28
+ var _a;
29
+ return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
30
+ };
31
+ this.getSubjectKeyIdSiblingsLink = (value) => {
32
+ var _a;
33
+ return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
34
+ };
35
+ }
36
+ componentWillLoad() {
37
+ this.decodeCertificate(this.certificate);
38
+ }
39
+ async decodeCertificate(certificate) {
40
+ this.isDecodeInProcess = true;
41
+ try {
42
+ if (certificate instanceof CSR) {
43
+ this.certificateDecoded = certificate;
44
+ }
45
+ else if (typeof certificate === 'string') {
46
+ this.certificateDecoded = new CSR(certificate);
47
+ }
48
+ else {
49
+ return;
50
+ }
51
+ this.certificateDecoded.parseAttributes();
52
+ await this.certificateDecoded.getThumbprint('SHA-1');
53
+ await this.certificateDecoded.getThumbprint('SHA-256');
26
54
  }
27
- componentWillLoad() {
28
- this.decodeCertificate(this.certificate);
55
+ catch (error) {
56
+ this.certificateDecodeError = error;
57
+ console.error('Error certificate parse:', error);
29
58
  }
30
- async decodeCertificate(certificate) {
31
- this.isDecodeInProcess = true;
32
- try {
33
- if (certificate instanceof CSR) {
34
- this.certificateDecoded = certificate;
35
- }
36
- else if (typeof certificate === 'string') {
37
- this.certificateDecoded = new CSR(certificate);
38
- }
39
- else {
40
- return;
41
- }
42
- this.certificateDecoded.parseAttributes();
43
- await this.certificateDecoded.getThumbprint('SHA-1');
44
- await this.certificateDecoded.getThumbprint('SHA-256');
45
- }
46
- catch (error) {
47
- this.certificateDecodeError = error;
48
- console.error('Error certificate parse:', error);
49
- }
50
- this.isDecodeInProcess = false;
59
+ this.isDecodeInProcess = false;
60
+ }
61
+ /**
62
+ * Rerun decodeCertificate if previuos value not equal current value
63
+ */
64
+ watchCertificateAndDecode(newValue, oldValue) {
65
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
66
+ if (newValue !== oldValue) {
67
+ this.decodeCertificate(newValue);
68
+ }
69
+ return;
51
70
  }
52
- /**
53
- * Rerun decodeCertificate if previuos value not equal current value
54
- */
55
- watchCertificateAndDecode(newValue, oldValue) {
56
- if (typeof newValue === 'string' && typeof oldValue === 'string') {
57
- if (newValue !== oldValue) {
58
- this.decodeCertificate(newValue);
59
- }
60
- return;
61
- }
62
- if (newValue instanceof CSR
63
- && oldValue instanceof CSR) {
64
- if (newValue.commonName !== oldValue.commonName) {
65
- this.decodeCertificate(newValue);
66
- }
67
- }
71
+ if (newValue instanceof CSR
72
+ && oldValue instanceof CSR) {
73
+ if (newValue.commonName !== oldValue.commonName) {
74
+ this.decodeCertificate(newValue);
75
+ }
68
76
  }
69
- // eslint-disable-next-line class-methods-use-this
70
- renderErrorState() {
71
- return (h("div", { class: "status_wrapper" },
72
- h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There was an error decoding this certificate request.")));
77
+ }
78
+ // eslint-disable-next-line class-methods-use-this
79
+ renderErrorState() {
80
+ return (h("div", { class: "status_wrapper" },
81
+ h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There was an error decoding this certificate request.")));
82
+ }
83
+ // eslint-disable-next-line class-methods-use-this
84
+ renderEmptyState() {
85
+ return (h("div", { class: "status_wrapper" },
86
+ h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There is no certificate request available.")));
87
+ }
88
+ getExtensionRequestAttribute() {
89
+ if (!this.certificateDecoded) {
90
+ return undefined;
73
91
  }
74
- // eslint-disable-next-line class-methods-use-this
75
- renderEmptyState() {
76
- return (h("div", { class: "status_wrapper" },
77
- h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There is no certificate request available.")));
92
+ return this.certificateDecoded.attributes
93
+ .find((attribute) => attribute.asn.type === '1.2.840.113549.1.9.14');
94
+ }
95
+ render() {
96
+ if (this.certificateDecodeError) {
97
+ return this.renderErrorState();
78
98
  }
79
- getExtensionRequestAttribute() {
80
- if (!this.certificateDecoded) {
81
- return undefined;
82
- }
83
- return this.certificateDecoded.attributes
84
- .find((attribute) => attribute.asn.type === '1.2.840.113549.1.9.14');
99
+ if (!this.certificateDecoded) {
100
+ return this.renderEmptyState();
85
101
  }
86
- render() {
87
- if (this.certificateDecodeError) {
88
- return this.renderErrorState();
102
+ const extensionRequestAttribute = this.getExtensionRequestAttribute();
103
+ return (h(Host, { "data-view": this.view },
104
+ h("table", null,
105
+ h(BasicInformation, Object.assign({}, this.certificateDecoded)),
106
+ h(SubjectName, { name: this.certificateDecoded.subject }),
107
+ h(PublicKey, { publicKey: this.certificateDecoded.publicKey }),
108
+ h(Signature, { signature: this.certificateDecoded.signature }),
109
+ h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }),
110
+ h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }),
111
+ h(Extensions, { extensions: extensionRequestAttribute === null || extensionRequestAttribute === void 0 ? void 0 : extensionRequestAttribute.value, title: "Extension Request", getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }),
112
+ this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
113
+ }
114
+ static get is() { return "peculiar-csr-viewer"; }
115
+ static get encapsulation() { return "shadow"; }
116
+ static get originalStyleUrls() { return {
117
+ "$": ["../certificate-viewer/certificate-viewer.scss"]
118
+ }; }
119
+ static get styleUrls() { return {
120
+ "$": ["../certificate-viewer/certificate-viewer.css"]
121
+ }; }
122
+ static get properties() { return {
123
+ "certificate": {
124
+ "type": "string",
125
+ "mutable": false,
126
+ "complexType": {
127
+ "original": "CsrProp",
128
+ "resolved": "CSR | string",
129
+ "references": {
130
+ "CsrProp": {
131
+ "location": "local"
132
+ }
89
133
  }
90
- if (!this.certificateDecoded) {
91
- return this.renderEmptyState();
92
- }
93
- const extensionRequestAttribute = this.getExtensionRequestAttribute();
94
- return (h(Host, { "data-view": this.view },
95
- h("table", null,
96
- h(BasicInformation, Object.assign({}, this.certificateDecoded)),
97
- h(SubjectName, { name: this.certificateDecoded.subject }),
98
- h(PublicKey, { publicKey: this.certificateDecoded.publicKey }),
99
- h(Signature, { signature: this.certificateDecoded.signature }),
100
- h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }),
101
- h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }),
102
- h(Extensions, { extensions: extensionRequestAttribute === null || extensionRequestAttribute === void 0 ? void 0 : extensionRequestAttribute.value, title: "Extension Request", getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }),
103
- this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": "The certificate value for decode and show details. Use PEM or DER."
140
+ },
141
+ "attribute": "certificate",
142
+ "reflect": true
143
+ },
144
+ "download": {
145
+ "type": "boolean",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "boolean",
149
+ "resolved": "boolean",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "If `true` - component will show split-button to download certificate as PEM or DER."
157
+ },
158
+ "attribute": "download",
159
+ "reflect": false
160
+ },
161
+ "subjectKeyIdChildrenLink": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": true,
171
+ "docs": {
172
+ "tags": [{
173
+ "name": "example",
174
+ "text": " https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}}"
175
+ }],
176
+ "text": "Subject Key Identifier extension children link.\n<br />\n**NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension."
177
+ },
178
+ "attribute": "subject-key-id-children-link",
179
+ "reflect": true
180
+ },
181
+ "subjectKeyIdSiblingsLink": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": true,
191
+ "docs": {
192
+ "tags": [{
193
+ "name": "example",
194
+ "text": " https://some.com/{{subjectKeyId}}"
195
+ }],
196
+ "text": "Subject Key Identifier extension siblings link.\n<br />\n**NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension."
197
+ },
198
+ "attribute": "subject-key-id-siblings-link",
199
+ "reflect": true
200
+ },
201
+ "view": {
202
+ "type": "string",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "'mobile'",
206
+ "resolved": "\"mobile\"",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": true,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "Choose view type instead @media."
214
+ },
215
+ "attribute": "view",
216
+ "reflect": true
104
217
  }
105
- static get is() { return "peculiar-csr-viewer"; }
106
- static get encapsulation() { return "shadow"; }
107
- static get originalStyleUrls() { return {
108
- "$": ["../certificate-viewer/certificate-viewer.scss"]
109
- }; }
110
- static get styleUrls() { return {
111
- "$": ["../certificate-viewer/certificate-viewer.css"]
112
- }; }
113
- static get properties() { return {
114
- "certificate": {
115
- "type": "string",
116
- "mutable": false,
117
- "complexType": {
118
- "original": "CsrProp",
119
- "resolved": "CSR | string",
120
- "references": {
121
- "CsrProp": {
122
- "location": "local"
123
- }
124
- }
125
- },
126
- "required": false,
127
- "optional": false,
128
- "docs": {
129
- "tags": [],
130
- "text": "The certificate value for decode and show details. Use PEM or DER."
131
- },
132
- "attribute": "certificate",
133
- "reflect": true
134
- },
135
- "download": {
136
- "type": "boolean",
137
- "mutable": false,
138
- "complexType": {
139
- "original": "boolean",
140
- "resolved": "boolean",
141
- "references": {}
142
- },
143
- "required": false,
144
- "optional": true,
145
- "docs": {
146
- "tags": [],
147
- "text": "If `true` - component will show split-button to download certificate as PEM or DER."
148
- },
149
- "attribute": "download",
150
- "reflect": false
151
- },
152
- "subjectKeyIdChildrenLink": {
153
- "type": "string",
154
- "mutable": false,
155
- "complexType": {
156
- "original": "string",
157
- "resolved": "string",
158
- "references": {}
159
- },
160
- "required": false,
161
- "optional": true,
162
- "docs": {
163
- "tags": [{
164
- "text": " https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}}",
165
- "name": "example"
166
- }],
167
- "text": "Subject Key Identifier extension children link.\n<br />\n**NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension."
168
- },
169
- "attribute": "subject-key-id-children-link",
170
- "reflect": true
171
- },
172
- "subjectKeyIdSiblingsLink": {
173
- "type": "string",
174
- "mutable": false,
175
- "complexType": {
176
- "original": "string",
177
- "resolved": "string",
178
- "references": {}
179
- },
180
- "required": false,
181
- "optional": true,
182
- "docs": {
183
- "tags": [{
184
- "text": " https://some.com/{{subjectKeyId}}",
185
- "name": "example"
186
- }],
187
- "text": "Subject Key Identifier extension siblings link.\n<br />\n**NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension."
188
- },
189
- "attribute": "subject-key-id-siblings-link",
190
- "reflect": true
191
- },
192
- "view": {
193
- "type": "string",
194
- "mutable": false,
195
- "complexType": {
196
- "original": "'mobile'",
197
- "resolved": "\"mobile\"",
198
- "references": {}
199
- },
200
- "required": false,
201
- "optional": true,
202
- "docs": {
203
- "tags": [],
204
- "text": "Choose view type instead @media."
205
- },
206
- "attribute": "view",
207
- "reflect": true
208
- }
209
- }; }
210
- static get states() { return {
211
- "isDecodeInProcess": {}
212
- }; }
213
- static get watchers() { return [{
214
- "propName": "certificate",
215
- "methodName": "watchCertificateAndDecode"
216
- }]; }
218
+ }; }
219
+ static get states() { return {
220
+ "isDecodeInProcess": {}
221
+ }; }
222
+ static get watchers() { return [{
223
+ "propName": "certificate",
224
+ "methodName": "watchCertificateAndDecode"
225
+ }]; }
217
226
  }