@internetarchive/elements 1.4.1-webdev-9540.1 → 1.5.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 (270) hide show
  1. package/dist/src/elements/ia-book-actions/assets/data/archive-logo.d.ts +2 -0
  2. package/dist/src/elements/ia-book-actions/assets/data/archive-logo.d.ts.map +1 -0
  3. package/dist/src/elements/ia-book-actions/assets/data/archive-logo.js +32 -0
  4. package/dist/src/elements/ia-book-actions/assets/data/archive-logo.js.map +1 -0
  5. package/dist/src/elements/ia-book-actions/assets/data/dropdown-arrow.d.ts +3 -0
  6. package/dist/src/elements/ia-book-actions/assets/data/dropdown-arrow.d.ts.map +1 -0
  7. package/dist/src/elements/ia-book-actions/assets/data/dropdown-arrow.js +24 -0
  8. package/dist/src/elements/ia-book-actions/assets/data/dropdown-arrow.js.map +1 -0
  9. package/dist/src/elements/ia-book-actions/assets/data/info-icon.d.ts +2 -0
  10. package/dist/src/elements/ia-book-actions/assets/data/info-icon.d.ts.map +1 -0
  11. package/dist/src/elements/ia-book-actions/assets/data/info-icon.js +17 -0
  12. package/dist/src/elements/ia-book-actions/assets/data/info-icon.js.map +1 -0
  13. package/dist/src/elements/ia-book-actions/assets/data/purchase.d.ts +2 -0
  14. package/dist/src/elements/ia-book-actions/assets/data/purchase.d.ts.map +1 -0
  15. package/dist/src/elements/ia-book-actions/assets/data/purchase.js +23 -0
  16. package/dist/src/elements/ia-book-actions/assets/data/purchase.js.map +1 -0
  17. package/dist/src/elements/ia-book-actions/assets/styles/collapsible-action-group.d.ts +3 -0
  18. package/dist/src/elements/ia-book-actions/assets/styles/collapsible-action-group.d.ts.map +1 -0
  19. package/dist/src/elements/ia-book-actions/assets/styles/collapsible-action-group.js +167 -0
  20. package/dist/src/elements/ia-book-actions/assets/styles/collapsible-action-group.js.map +1 -0
  21. package/dist/src/elements/ia-book-actions/assets/styles/ia-button.d.ts +3 -0
  22. package/dist/src/elements/ia-book-actions/assets/styles/ia-button.d.ts.map +1 -0
  23. package/dist/src/elements/ia-book-actions/assets/styles/ia-button.js +102 -0
  24. package/dist/src/elements/ia-book-actions/assets/styles/ia-button.js.map +1 -0
  25. package/dist/src/elements/ia-book-actions/core/config/analytics-event-and-category.d.ts +33 -0
  26. package/dist/src/elements/ia-book-actions/core/config/analytics-event-and-category.d.ts.map +1 -0
  27. package/dist/src/elements/ia-book-actions/core/config/analytics-event-and-category.js +33 -0
  28. package/dist/src/elements/ia-book-actions/core/config/analytics-event-and-category.js.map +1 -0
  29. package/dist/src/elements/ia-book-actions/core/config/constants.d.ts +9 -0
  30. package/dist/src/elements/ia-book-actions/core/config/constants.d.ts.map +1 -0
  31. package/dist/src/elements/ia-book-actions/core/config/constants.js +9 -0
  32. package/dist/src/elements/ia-book-actions/core/config/constants.js.map +1 -0
  33. package/dist/src/elements/ia-book-actions/core/config/ia-lending-intervals.d.ts +2 -0
  34. package/dist/src/elements/ia-book-actions/core/config/ia-lending-intervals.d.ts.map +1 -0
  35. package/dist/src/elements/ia-book-actions/core/config/ia-lending-intervals.js +54 -0
  36. package/dist/src/elements/ia-book-actions/core/config/ia-lending-intervals.js.map +1 -0
  37. package/dist/src/elements/ia-book-actions/core/config/sentry-events.d.ts +17 -0
  38. package/dist/src/elements/ia-book-actions/core/config/sentry-events.d.ts.map +1 -0
  39. package/dist/src/elements/ia-book-actions/core/config/sentry-events.js +17 -0
  40. package/dist/src/elements/ia-book-actions/core/config/sentry-events.js.map +1 -0
  41. package/dist/src/elements/ia-book-actions/core/config/url-helper.d.ts +31 -0
  42. package/dist/src/elements/ia-book-actions/core/config/url-helper.d.ts.map +1 -0
  43. package/dist/src/elements/ia-book-actions/core/config/url-helper.js +79 -0
  44. package/dist/src/elements/ia-book-actions/core/config/url-helper.js.map +1 -0
  45. package/dist/src/elements/ia-book-actions/core/services/actions-config.d.ts +65 -0
  46. package/dist/src/elements/ia-book-actions/core/services/actions-config.d.ts.map +1 -0
  47. package/dist/src/elements/ia-book-actions/core/services/actions-config.js +231 -0
  48. package/dist/src/elements/ia-book-actions/core/services/actions-config.js.map +1 -0
  49. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler-service.d.ts +35 -0
  50. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler-service.d.ts.map +1 -0
  51. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler-service.js +140 -0
  52. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler-service.js.map +1 -0
  53. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler.d.ts +78 -0
  54. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler.d.ts.map +1 -0
  55. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler.js +372 -0
  56. package/dist/src/elements/ia-book-actions/core/services/actions-handler/actions-handler.js.map +1 -0
  57. package/dist/src/elements/ia-book-actions/core/services/doc-cookies.d.ts +42 -0
  58. package/dist/src/elements/ia-book-actions/core/services/doc-cookies.d.ts.map +1 -0
  59. package/dist/src/elements/ia-book-actions/core/services/doc-cookies.js +75 -0
  60. package/dist/src/elements/ia-book-actions/core/services/doc-cookies.js.map +1 -0
  61. package/dist/src/elements/ia-book-actions/core/services/get-lending-actions.d.ts +72 -0
  62. package/dist/src/elements/ia-book-actions/core/services/get-lending-actions.d.ts.map +1 -0
  63. package/dist/src/elements/ia-book-actions/core/services/get-lending-actions.js +392 -0
  64. package/dist/src/elements/ia-book-actions/core/services/get-lending-actions.js.map +1 -0
  65. package/dist/src/elements/ia-book-actions/core/services/loan-analytics.d.ts +59 -0
  66. package/dist/src/elements/ia-book-actions/core/services/loan-analytics.d.ts.map +1 -0
  67. package/dist/src/elements/ia-book-actions/core/services/loan-analytics.js +134 -0
  68. package/dist/src/elements/ia-book-actions/core/services/loan-analytics.js.map +1 -0
  69. package/dist/src/elements/ia-book-actions/core/services/loan-renew-helper.d.ts +58 -0
  70. package/dist/src/elements/ia-book-actions/core/services/loan-renew-helper.d.ts.map +1 -0
  71. package/dist/src/elements/ia-book-actions/core/services/loan-renew-helper.js +135 -0
  72. package/dist/src/elements/ia-book-actions/core/services/loan-renew-helper.js.map +1 -0
  73. package/dist/src/elements/ia-book-actions/core/services/loan-token-poller.d.ts +73 -0
  74. package/dist/src/elements/ia-book-actions/core/services/loan-token-poller.d.ts.map +1 -0
  75. package/dist/src/elements/ia-book-actions/core/services/loan-token-poller.js +143 -0
  76. package/dist/src/elements/ia-book-actions/core/services/loan-token-poller.js.map +1 -0
  77. package/dist/src/elements/ia-book-actions/core/services/logger.d.ts +18 -0
  78. package/dist/src/elements/ia-book-actions/core/services/logger.d.ts.map +1 -0
  79. package/dist/src/elements/ia-book-actions/core/services/logger.js +26 -0
  80. package/dist/src/elements/ia-book-actions/core/services/logger.js.map +1 -0
  81. package/dist/src/elements/ia-book-actions/core/services/sentry-report.d.ts +19 -0
  82. package/dist/src/elements/ia-book-actions/core/services/sentry-report.d.ts.map +1 -0
  83. package/dist/src/elements/ia-book-actions/core/services/sentry-report.js +25 -0
  84. package/dist/src/elements/ia-book-actions/core/services/sentry-report.js.map +1 -0
  85. package/dist/src/elements/ia-book-actions/globals.d.ts +38 -0
  86. package/dist/src/elements/ia-book-actions/globals.d.ts.map +1 -0
  87. package/dist/src/elements/ia-book-actions/globals.js +6 -0
  88. package/dist/src/elements/ia-book-actions/globals.js.map +1 -0
  89. package/dist/src/elements/ia-book-actions/ia-book-actions-collapsible-action-group.d.ts +97 -0
  90. package/dist/src/elements/ia-book-actions/ia-book-actions-collapsible-action-group.d.ts.map +1 -0
  91. package/dist/src/elements/ia-book-actions/ia-book-actions-collapsible-action-group.js +308 -0
  92. package/dist/src/elements/ia-book-actions/ia-book-actions-collapsible-action-group.js.map +1 -0
  93. package/dist/src/elements/ia-book-actions/ia-book-actions-info-icon.d.ts +14 -0
  94. package/dist/src/elements/ia-book-actions/ia-book-actions-info-icon.d.ts.map +1 -0
  95. package/dist/src/elements/ia-book-actions/ia-book-actions-info-icon.js +58 -0
  96. package/dist/src/elements/ia-book-actions/ia-book-actions-info-icon.js.map +1 -0
  97. package/dist/src/elements/ia-book-actions/ia-book-actions-text-group.d.ts +13 -0
  98. package/dist/src/elements/ia-book-actions/ia-book-actions-text-group.d.ts.map +1 -0
  99. package/dist/src/elements/ia-book-actions/ia-book-actions-text-group.js +45 -0
  100. package/dist/src/elements/ia-book-actions/ia-book-actions-text-group.js.map +1 -0
  101. package/dist/src/elements/ia-book-actions/ia-book-actions-timer-countdown.d.ts +20 -0
  102. package/dist/src/elements/ia-book-actions/ia-book-actions-timer-countdown.d.ts.map +1 -0
  103. package/dist/src/elements/ia-book-actions/ia-book-actions-timer-countdown.js +92 -0
  104. package/dist/src/elements/ia-book-actions/ia-book-actions-timer-countdown.js.map +1 -0
  105. package/dist/src/elements/ia-book-actions/ia-book-actions-title-bar.d.ts +41 -0
  106. package/dist/src/elements/ia-book-actions/ia-book-actions-title-bar.d.ts.map +1 -0
  107. package/dist/src/elements/ia-book-actions/ia-book-actions-title-bar.js +86 -0
  108. package/dist/src/elements/ia-book-actions/ia-book-actions-title-bar.js.map +1 -0
  109. package/dist/src/elements/ia-book-actions/ia-book-actions.d.ts +270 -0
  110. package/dist/src/elements/ia-book-actions/ia-book-actions.d.ts.map +1 -0
  111. package/dist/src/elements/ia-book-actions/ia-book-actions.js +1156 -0
  112. package/dist/src/elements/ia-book-actions/ia-book-actions.js.map +1 -0
  113. package/dist/src/elements/ia-book-actions/models.d.ts +206 -0
  114. package/dist/src/elements/ia-book-actions/models.d.ts.map +1 -0
  115. package/dist/src/elements/ia-book-actions/models.js +2 -0
  116. package/dist/src/elements/ia-book-actions/models.js.map +1 -0
  117. package/dist/src/elements/ia-donation-form/analytics.d.ts +12 -0
  118. package/dist/src/elements/ia-donation-form/analytics.d.ts.map +1 -0
  119. package/dist/src/elements/ia-donation-form/analytics.js +2 -0
  120. package/dist/src/elements/ia-donation-form/analytics.js.map +1 -0
  121. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.d.ts.map +1 -1
  122. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.js +4 -3
  123. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.js.map +1 -1
  124. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.d.ts +118 -0
  125. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.d.ts.map +1 -0
  126. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.js +194 -0
  127. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.js.map +1 -0
  128. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.d.ts +24 -0
  129. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.d.ts.map +1 -0
  130. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.js +78 -0
  131. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.js.map +1 -0
  132. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.d.ts +44 -0
  133. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.d.ts.map +1 -0
  134. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.js +116 -0
  135. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.js.map +1 -0
  136. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.d.ts +24 -0
  137. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.d.ts.map +1 -0
  138. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.js +74 -0
  139. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.js.map +1 -0
  140. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.d.ts +47 -0
  141. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.d.ts.map +1 -0
  142. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.js +212 -0
  143. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.js.map +1 -0
  144. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.d.ts +30 -0
  145. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.d.ts.map +1 -0
  146. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.js +77 -0
  147. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.js.map +1 -0
  148. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.d.ts +80 -0
  149. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.d.ts.map +1 -0
  150. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.js +72 -0
  151. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.js.map +1 -0
  152. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.d.ts +2 -0
  153. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.d.ts.map +1 -0
  154. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.js +2 -0
  155. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.js.map +1 -0
  156. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.d.ts +3 -0
  157. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.d.ts.map +1 -0
  158. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.js +254 -0
  159. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.js.map +1 -0
  160. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.d.ts +68 -0
  161. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.d.ts.map +1 -0
  162. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.js +489 -0
  163. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.js.map +1 -0
  164. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.d.ts +26 -0
  165. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.d.ts.map +1 -0
  166. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.js +165 -0
  167. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.js.map +1 -0
  168. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.d.ts +39 -0
  169. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.d.ts.map +1 -0
  170. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.js +212 -0
  171. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.js.map +1 -0
  172. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.d.ts +31 -0
  173. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.d.ts.map +1 -0
  174. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.js +93 -0
  175. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.js.map +1 -0
  176. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.d.ts +33 -0
  177. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.d.ts.map +1 -0
  178. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.js +379 -0
  179. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.js.map +1 -0
  180. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.d.ts +11 -0
  181. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.d.ts.map +1 -0
  182. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.js +59 -0
  183. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.js.map +1 -0
  184. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.d.ts +10 -0
  185. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.d.ts.map +1 -0
  186. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.js +75 -0
  187. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.js.map +1 -0
  188. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.d.ts +111 -0
  189. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.d.ts.map +1 -0
  190. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.js +522 -0
  191. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.js.map +1 -0
  192. package/dist/src/elements/ia-donation-form/ia-donation-form.d.ts +95 -0
  193. package/dist/src/elements/ia-donation-form/ia-donation-form.d.ts.map +1 -0
  194. package/dist/src/elements/ia-donation-form/ia-donation-form.js +523 -0
  195. package/dist/src/elements/ia-donation-form/ia-donation-form.js.map +1 -0
  196. package/dist/src/elements/ia-donation-form/icons.d.ts +13 -0
  197. package/dist/src/elements/ia-donation-form/icons.d.ts.map +1 -0
  198. package/dist/src/elements/ia-donation-form/icons.js +21 -0
  199. package/dist/src/elements/ia-donation-form/icons.js.map +1 -0
  200. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.d.ts +27 -0
  201. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.d.ts.map +1 -0
  202. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.js +195 -0
  203. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.js.map +1 -0
  204. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.d.ts +7 -0
  205. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.d.ts.map +1 -0
  206. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.js +63 -0
  207. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.js.map +1 -0
  208. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.d.ts +28 -0
  209. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.d.ts.map +1 -0
  210. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.js +313 -0
  211. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.js.map +1 -0
  212. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-down.d.ts +2 -0
  213. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-down.d.ts.map +1 -0
  214. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-down.js +8 -0
  215. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-down.js.map +1 -0
  216. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-up.d.ts +2 -0
  217. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-up.d.ts.map +1 -0
  218. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-up.js +4 -0
  219. package/dist/src/elements/ia-feature-feedback/assets/img/thumb-up.js.map +1 -0
  220. package/dist/src/elements/ia-feature-feedback/feature-feedback-service.d.ts +54 -0
  221. package/dist/src/elements/ia-feature-feedback/feature-feedback-service.d.ts.map +1 -0
  222. package/dist/src/elements/ia-feature-feedback/feature-feedback-service.js +79 -0
  223. package/dist/src/elements/ia-feature-feedback/feature-feedback-service.js.map +1 -0
  224. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-comment.d.ts +99 -0
  225. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-comment.d.ts.map +1 -0
  226. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-comment.js +224 -0
  227. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-comment.js.map +1 -0
  228. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-extra.d.ts +41 -0
  229. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-extra.d.ts.map +1 -0
  230. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-extra.js +61 -0
  231. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-extra.js.map +1 -0
  232. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-vote.d.ts +141 -0
  233. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-vote.d.ts.map +1 -0
  234. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-vote.js +447 -0
  235. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey-vote.js.map +1 -0
  236. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey.d.ts +273 -0
  237. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey.d.ts.map +1 -0
  238. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey.js +879 -0
  239. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback-survey.js.map +1 -0
  240. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback.d.ts +100 -0
  241. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback.d.ts.map +1 -0
  242. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback.js +779 -0
  243. package/dist/src/elements/ia-feature-feedback/ia-feature-feedback.js.map +1 -0
  244. package/dist/src/elements/ia-feature-feedback/mocks/mock-feature-feedback-service.d.ts +34 -0
  245. package/dist/src/elements/ia-feature-feedback/mocks/mock-feature-feedback-service.d.ts.map +1 -0
  246. package/dist/src/elements/ia-feature-feedback/mocks/mock-feature-feedback-service.js +21 -0
  247. package/dist/src/elements/ia-feature-feedback/mocks/mock-feature-feedback-service.js.map +1 -0
  248. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-manager.d.ts +11 -0
  249. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-manager.d.ts.map +1 -0
  250. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-manager.js +11 -0
  251. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-manager.js.map +1 -0
  252. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-widget.d.ts +5 -0
  253. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-widget.d.ts.map +1 -0
  254. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-widget.js +6 -0
  255. package/dist/src/elements/ia-feature-feedback/mocks/mock-recaptcha-widget.js.map +1 -0
  256. package/dist/src/elements/ia-feature-feedback/models.d.ts +109 -0
  257. package/dist/src/elements/ia-feature-feedback/models.d.ts.map +1 -0
  258. package/dist/src/elements/ia-feature-feedback/models.js +31 -0
  259. package/dist/src/elements/ia-feature-feedback/models.js.map +1 -0
  260. package/dist/src/elements/ia-feature-feedback/utils/timed-promise.d.ts +29 -0
  261. package/dist/src/elements/ia-feature-feedback/utils/timed-promise.d.ts.map +1 -0
  262. package/dist/src/elements/ia-feature-feedback/utils/timed-promise.js +32 -0
  263. package/dist/src/elements/ia-feature-feedback/utils/timed-promise.js.map +1 -0
  264. package/dist/src/elements/ia-topnav/dropdown-menu.d.ts +1 -1
  265. package/dist/src/elements/ia-topnav/ia-topnav-media-menu.d.ts +1 -1
  266. package/dist/src/locales/es.d.ts +31 -0
  267. package/dist/src/locales/es.d.ts.map +1 -1
  268. package/dist/src/locales/es.js +31 -0
  269. package/dist/src/locales/es.js.map +1 -1
  270. package/package.json +5 -1
@@ -0,0 +1,143 @@
1
+ import ActionsHandlerService from './actions-handler/actions-handler-service.js';
2
+ import LoanAnanlytics from './loan-analytics.js';
3
+ import { sentryLogs } from '../config/sentry-events.js';
4
+ import { createLogger } from './logger.js';
5
+ import { sentryCaptureMessage } from './sentry-report.js';
6
+ import '../../globals.js';
7
+ const log = createLogger('poller');
8
+ /**
9
+ * This class is used to create loan token for borrowed books
10
+ *
11
+ * ActionsHandlerService is a function being used to execute
12
+ */
13
+ export class LoanTokenPoller {
14
+ constructor(options) {
15
+ /**
16
+ * create_token failures in a row since the last success, passed to
17
+ * errorCallback so the consumer can tell a one-off blip from a run of
18
+ * them. See IABookActions.handleLendingActionError.
19
+ */
20
+ this.consecutiveFailures = 0;
21
+ /**
22
+ * loan analytics instance
23
+ * @see loan-analytics.ts
24
+ */
25
+ this.loanAnalytics = new LoanAnanlytics();
26
+ const { identifier, borrowType, successCallback, errorCallback, pollerDelay, skipInitialCall = false, fetchHandler, } = options;
27
+ this.identifier = identifier;
28
+ this.borrowType = borrowType;
29
+ this.successCallback = successCallback;
30
+ this.errorCallback = errorCallback;
31
+ this.pollerDelay = pollerDelay;
32
+ this.skipInitialCall = skipInitialCall === true;
33
+ this.fetchHandler = fetchHandler;
34
+ this.bookAccessed();
35
+ }
36
+ disconnectedCallback() {
37
+ window?.IALendingIntervals?.clearTokenPoller();
38
+ }
39
+ async bookAccessed() {
40
+ if (this.borrowType) {
41
+ if (this.skipInitialCall) {
42
+ log.debug('skipping initial create_token — already minted by the renewal response', {
43
+ identifier: this.identifier,
44
+ });
45
+ }
46
+ else {
47
+ // Do an initial token, then set an interval
48
+ this.handleLoanTokenPoller(true);
49
+ }
50
+ // if this.borrowType = adminBorrowed,
51
+ // - we don't want to fetch token on interval
52
+ // - the initial token is enough to set cookies for reading book and readaloud features
53
+ if (this.borrowType !== 'adminBorrowed') {
54
+ /**
55
+ * set interval in window object
56
+ * @see ia-lending-intervals.ts
57
+ */
58
+ window.IALendingIntervals.tokenPoller = setInterval(() => {
59
+ this.handleLoanTokenPoller();
60
+ }, this.pollerDelay * 1000);
61
+ }
62
+ }
63
+ else {
64
+ sentryCaptureMessage(`${sentryLogs.bookAccessed} - not borrowed`, {
65
+ identifier: this.identifier,
66
+ action: 'create_token',
67
+ });
68
+ // if book is not browsed, just clear token polling interval
69
+ this.disconnectedCallback();
70
+ }
71
+ }
72
+ /**
73
+ * @param isInitial the first create_token call right after
74
+ * bookAccessed()/a renewal, as opposed to a routine interval tick.
75
+ */
76
+ async handleLoanTokenPoller(isInitial = false) {
77
+ const action = 'create_token';
78
+ log.debug('create_token requested', {
79
+ identifier: this.identifier,
80
+ isInitial,
81
+ });
82
+ ActionsHandlerService({
83
+ identifier: this.identifier,
84
+ action,
85
+ fetchHandler: this.fetchHandler,
86
+ error: (data) => this.handleTokenError(data, isInitial),
87
+ success: () => {
88
+ log.debug('create_token succeeded', {
89
+ identifier: this.identifier,
90
+ isInitial,
91
+ });
92
+ this.consecutiveFailures = 0;
93
+ if (isInitial)
94
+ this.successCallback();
95
+ },
96
+ });
97
+ }
98
+ /**
99
+ * Reports every create_token failure via errorCallback. The poller never
100
+ * retries, and the consumer decides whether a failure is terminal (see
101
+ * IABookActions.handleLendingActionError). Split out from
102
+ * handleLoanTokenPoller so it's directly testable without needing to
103
+ * mock the network call.
104
+ *
105
+ * @param data the error payload from ActionsHandlerService.
106
+ * @param isInitial
107
+ */
108
+ handleTokenError(data, isInitial) {
109
+ const action = 'create_token';
110
+ this.consecutiveFailures += 1;
111
+ const { consecutiveFailures } = this;
112
+ log.warn('create_token failed', {
113
+ identifier: this.identifier,
114
+ isInitial,
115
+ consecutiveFailures,
116
+ error: data?.error,
117
+ });
118
+ // isInitial and consecutiveFailures ride along so the consumer can
119
+ // distinguish "the book won't open at all" from "a mid-read refresh
120
+ // blipped", and a one-off blip from a run of them. See
121
+ // IABookActions.handleLendingActionError.
122
+ this.errorCallback({
123
+ detail: { action, data, isInitial, consecutiveFailures },
124
+ });
125
+ // send error to Sentry
126
+ sentryCaptureMessage(`${sentryLogs.handleLoanTokenPoller} - create_token failed`, {
127
+ identifier: this.identifier,
128
+ action,
129
+ extra: {
130
+ borrowType: this.borrowType,
131
+ isInitial,
132
+ consecutiveFailures,
133
+ error: data?.error,
134
+ status: data?.status,
135
+ nonJsonResponse: data?.nonJsonResponse === true,
136
+ response: JSON.stringify(data),
137
+ },
138
+ });
139
+ // send LendingServiceError to GA
140
+ this.loanAnalytics?.sendEvent('LendingServiceLoanError', action, this.identifier);
141
+ }
142
+ }
143
+ //# sourceMappingURL=loan-token-poller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loan-token-poller.js","sourceRoot":"","sources":["../../../../../../src/elements/ia-book-actions/core/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J,CAAC;CACF","sourcesContent":["import type { FetchHandlerInterface } from '@src/services/fetch-handler/fetch-handler-interface';\nimport ActionsHandlerService from './actions-handler/actions-handler-service';\nimport LoanAnanlytics from './loan-analytics';\nimport { sentryLogs } from '../config/sentry-events';\nimport { createLogger } from './logger';\nimport { sentryCaptureMessage } from './sentry-report';\nimport type {\n BorrowType,\n LendingActionErrorEventLike,\n LoanServiceResponse,\n} from '../../models';\nimport '../../globals';\n\nconst log = createLogger('poller');\n\nexport interface LoanTokenPollerOptions {\n identifier: string;\n borrowType: BorrowType | null;\n /** called after the initial loan token is created. */\n successCallback: () => void;\n /**\n * called on any create_token failure (initial or a routine interval tick).\n */\n errorCallback: (event: LendingActionErrorEventLike) => void;\n /** interval between routine create_token checks, in seconds. */\n pollerDelay: number;\n /**\n * skip the immediate create_token call, only start the recurring\n * interval. Used after a loan-expiry recovery renewal, where\n * BookLoanService::attempt_to_renew_loan() already minted a valid access\n * token as part of the renew_loan response itself, so an immediate\n * confirming create_token call is redundant.\n */\n skipInitialCall?: boolean;\n /** makes the `create_token` requests. */\n fetchHandler?: FetchHandlerInterface;\n}\n\n/**\n * This class is used to create loan token for borrowed books\n *\n * ActionsHandlerService is a function being used to execute\n */\nexport class LoanTokenPoller {\n identifier: string;\n\n borrowType: BorrowType | null;\n\n successCallback: () => void;\n\n errorCallback: (event: LendingActionErrorEventLike) => void;\n\n /** value in seconds */\n pollerDelay: number;\n\n skipInitialCall: boolean;\n\n fetchHandler?: FetchHandlerInterface;\n\n /**\n * create_token failures in a row since the last success, passed to\n * errorCallback so the consumer can tell a one-off blip from a run of\n * them. See IABookActions.handleLendingActionError.\n */\n consecutiveFailures = 0;\n\n loanTokenInterval?: ReturnType<typeof setInterval>;\n\n /**\n * loan analytics instance\n * @see loan-analytics.ts\n */\n loanAnalytics = new LoanAnanlytics();\n\n constructor(options: LoanTokenPollerOptions) {\n const {\n identifier,\n borrowType,\n successCallback,\n errorCallback,\n pollerDelay,\n skipInitialCall = false,\n fetchHandler,\n } = options;\n\n this.identifier = identifier;\n this.borrowType = borrowType;\n this.successCallback = successCallback;\n this.errorCallback = errorCallback;\n this.pollerDelay = pollerDelay;\n this.skipInitialCall = skipInitialCall === true;\n this.fetchHandler = fetchHandler;\n\n this.bookAccessed();\n }\n\n disconnectedCallback(): void {\n window?.IALendingIntervals?.clearTokenPoller();\n }\n\n async bookAccessed(): Promise<void> {\n if (this.borrowType) {\n if (this.skipInitialCall) {\n log.debug(\n 'skipping initial create_token — already minted by the renewal response',\n {\n identifier: this.identifier,\n },\n );\n } else {\n // Do an initial token, then set an interval\n this.handleLoanTokenPoller(true);\n }\n\n // if this.borrowType = adminBorrowed,\n // - we don't want to fetch token on interval\n // - the initial token is enough to set cookies for reading book and readaloud features\n if (this.borrowType !== 'adminBorrowed') {\n /**\n * set interval in window object\n * @see ia-lending-intervals.ts\n */\n window.IALendingIntervals.tokenPoller = setInterval(() => {\n this.handleLoanTokenPoller();\n }, this.pollerDelay * 1000);\n }\n } else {\n sentryCaptureMessage(`${sentryLogs.bookAccessed} - not borrowed`, {\n identifier: this.identifier,\n action: 'create_token',\n });\n\n // if book is not browsed, just clear token polling interval\n this.disconnectedCallback();\n }\n }\n\n /**\n * @param isInitial the first create_token call right after\n * bookAccessed()/a renewal, as opposed to a routine interval tick.\n */\n async handleLoanTokenPoller(isInitial = false): Promise<void> {\n const action = 'create_token';\n log.debug('create_token requested', {\n identifier: this.identifier,\n isInitial,\n });\n ActionsHandlerService({\n identifier: this.identifier,\n action,\n fetchHandler: this.fetchHandler,\n error: (data) => this.handleTokenError(data, isInitial),\n success: () => {\n log.debug('create_token succeeded', {\n identifier: this.identifier,\n isInitial,\n });\n this.consecutiveFailures = 0;\n if (isInitial) this.successCallback();\n },\n });\n }\n\n /**\n * Reports every create_token failure via errorCallback. The poller never\n * retries, and the consumer decides whether a failure is terminal (see\n * IABookActions.handleLendingActionError). Split out from\n * handleLoanTokenPoller so it's directly testable without needing to\n * mock the network call.\n *\n * @param data the error payload from ActionsHandlerService.\n * @param isInitial\n */\n handleTokenError(data: LoanServiceResponse, isInitial: boolean): void {\n const action = 'create_token';\n this.consecutiveFailures += 1;\n const { consecutiveFailures } = this;\n\n log.warn('create_token failed', {\n identifier: this.identifier,\n isInitial,\n consecutiveFailures,\n error: data?.error,\n });\n\n // isInitial and consecutiveFailures ride along so the consumer can\n // distinguish \"the book won't open at all\" from \"a mid-read refresh\n // blipped\", and a one-off blip from a run of them. See\n // IABookActions.handleLendingActionError.\n this.errorCallback({\n detail: { action, data, isInitial, consecutiveFailures },\n });\n\n // send error to Sentry\n sentryCaptureMessage(\n `${sentryLogs.handleLoanTokenPoller} - create_token failed`,\n {\n identifier: this.identifier,\n action,\n extra: {\n borrowType: this.borrowType,\n isInitial,\n consecutiveFailures,\n error: data?.error,\n status: data?.status,\n nonJsonResponse: data?.nonJsonResponse === true,\n response: JSON.stringify(data),\n },\n },\n );\n\n // send LendingServiceError to GA\n this.loanAnalytics?.sendEvent(\n 'LendingServiceLoanError',\n action,\n this.identifier,\n );\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Console logging for the lending bar. Every line carries a fixed
3
+ * `[ia-book-actions:<scope>]` prefix so one flow can be followed across
4
+ * modules in DevTools. Output only happens on development and review hosts.
5
+ */
6
+ export interface Logger {
7
+ /** Routine progress. */
8
+ debug: (...args: unknown[]) => void;
9
+ /** Something failed but the bar carries on. */
10
+ warn: (...args: unknown[]) => void;
11
+ /** Something failed that the patron or a developer needs to know about. */
12
+ error: (...args: unknown[]) => void;
13
+ }
14
+ /**
15
+ * @param scope the module the lines come from, like `bar` or `service`
16
+ */
17
+ export declare function createLogger(scope: string): Logger;
18
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/ia-book-actions/core/services/logger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB,wBAAwB;IACxB,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpC,+CAA+C;IAC/C,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACnC,2EAA2E;IAC3E,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACrC;AAgBD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYlD"}
@@ -0,0 +1,26 @@
1
+ const PREFIX = 'ia-book-actions';
2
+ function isLoggingHost() {
3
+ const { hostname, host } = window.location;
4
+ return (hostname === 'localhost' ||
5
+ /^(www|cat)-[a-z0-9]+\.archive\.org$/.test(host) ||
6
+ /\.code\.archive\.org$/.test(host) ||
7
+ /\.dev\.archive\.org$/.test(host) ||
8
+ /^ia-petabox-/.test(host) ||
9
+ /^internetarchive/.test(host));
10
+ }
11
+ /**
12
+ * @param scope the module the lines come from, like `bar` or `service`
13
+ */
14
+ export function createLogger(scope) {
15
+ const prefix = `[${PREFIX}:${scope}]`;
16
+ const emit = (method) => (...args) => {
17
+ if (isLoggingHost())
18
+ console[method](prefix, ...args);
19
+ };
20
+ return {
21
+ debug: emit('log'),
22
+ warn: emit('warn'),
23
+ error: emit('error'),
24
+ };
25
+ }
26
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../../../src/elements/ia-book-actions/core/services/logger.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,GAAG,iBAAiB,CAAC;AAEjC,SAAS,aAAa;IACpB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC3C,OAAO,CACL,QAAQ,KAAK,WAAW;QACxB,qCAAqC,CAAC,IAAI,CAAC,IAAI,CAAC;QAChD,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC;QAClC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC;QACjC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,MAAM,MAAM,GAAG,IAAI,MAAM,IAAI,KAAK,GAAG,CAAC;IACtC,MAAM,IAAI,GACR,CAAC,MAAgC,EAAE,EAAE,CACrC,CAAC,GAAG,IAAe,EAAQ,EAAE;QAC3B,IAAI,aAAa,EAAE;YAAE,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IACxD,CAAC,CAAC;IACJ,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Console logging for the lending bar. Every line carries a fixed\n * `[ia-book-actions:<scope>]` prefix so one flow can be followed across\n * modules in DevTools. Output only happens on development and review hosts.\n */\nexport interface Logger {\n /** Routine progress. */\n debug: (...args: unknown[]) => void;\n /** Something failed but the bar carries on. */\n warn: (...args: unknown[]) => void;\n /** Something failed that the patron or a developer needs to know about. */\n error: (...args: unknown[]) => void;\n}\n\nconst PREFIX = 'ia-book-actions';\n\nfunction isLoggingHost(): boolean {\n const { hostname, host } = window.location;\n return (\n hostname === 'localhost' ||\n /^(www|cat)-[a-z0-9]+\\.archive\\.org$/.test(host) ||\n /\\.code\\.archive\\.org$/.test(host) ||\n /\\.dev\\.archive\\.org$/.test(host) ||\n /^ia-petabox-/.test(host) ||\n /^internetarchive/.test(host)\n );\n}\n\n/**\n * @param scope the module the lines come from, like `bar` or `service`\n */\nexport function createLogger(scope: string): Logger {\n const prefix = `[${PREFIX}:${scope}]`;\n const emit =\n (method: 'log' | 'warn' | 'error') =>\n (...args: unknown[]): void => {\n if (isLoggingHost()) console[method](prefix, ...args);\n };\n return {\n debug: emit('log'),\n warn: emit('warn'),\n error: emit('error'),\n };\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import type { SentryContext } from '../../globals.js';
2
+ import '../../globals.js';
3
+ export interface SentryReportContext {
4
+ identifier?: string;
5
+ /** the lending action involved, like `create_token` or `renew_loan` */
6
+ action?: string | null;
7
+ /** any other details worth keeping */
8
+ extra?: Record<string, unknown>;
9
+ }
10
+ /**
11
+ * Builds Sentry's captureContext with the book identifier and lending action
12
+ * attached as tags, so events can be filtered per book or per action (e.g.
13
+ * `action:create_token identifier:foo`) without the identifier going into
14
+ * the message text, which would split one issue into one per book.
15
+ */
16
+ export declare function buildSentryContext({ identifier, action, extra, }?: SentryReportContext): SentryContext;
17
+ export declare function sentryCaptureMessage(message: string, context?: SentryReportContext): void;
18
+ export declare function sentryCaptureException(error: unknown, context?: SentryReportContext): void;
19
+ //# sourceMappingURL=sentry-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry-report.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/ia-book-actions/core/services/sentry-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,MAAM,EACN,KAAU,GACX,GAAE,mBAAwB,GAAG,aAAa,CAS1C;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI,CAEN;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI,CAEN"}
@@ -0,0 +1,25 @@
1
+ import '../../globals.js';
2
+ /**
3
+ * Builds Sentry's captureContext with the book identifier and lending action
4
+ * attached as tags, so events can be filtered per book or per action (e.g.
5
+ * `action:create_token identifier:foo`) without the identifier going into
6
+ * the message text, which would split one issue into one per book.
7
+ */
8
+ export function buildSentryContext({ identifier, action, extra = {}, } = {}) {
9
+ const tags = {};
10
+ if (identifier)
11
+ tags.identifier = identifier;
12
+ if (action)
13
+ tags.action = action;
14
+ return {
15
+ tags,
16
+ extra: { identifier, action, ...extra },
17
+ };
18
+ }
19
+ export function sentryCaptureMessage(message, context) {
20
+ window?.Sentry?.captureMessage?.(message, buildSentryContext(context));
21
+ }
22
+ export function sentryCaptureException(error, context) {
23
+ window?.Sentry?.captureException?.(error, buildSentryContext(context));
24
+ }
25
+ //# sourceMappingURL=sentry-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry-report.js","sourceRoot":"","sources":["../../../../../../src/elements/ia-book-actions/core/services/sentry-report.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,CAAC;AAUvB;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,UAAU,EACV,MAAM,EACN,KAAK,GAAG,EAAE,MACa,EAAE;IACzB,MAAM,IAAI,GAA2B,EAAE,CAAC;IACxC,IAAI,UAAU;QAAE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC7C,IAAI,MAAM;QAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IAEjC,OAAO;QACL,IAAI;QACJ,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE;KACxC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,OAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,KAAc,EACd,OAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AACzE,CAAC","sourcesContent":["import type { SentryContext } from '../../globals';\nimport '../../globals';\n\nexport interface SentryReportContext {\n identifier?: string;\n /** the lending action involved, like `create_token` or `renew_loan` */\n action?: string | null;\n /** any other details worth keeping */\n extra?: Record<string, unknown>;\n}\n\n/**\n * Builds Sentry's captureContext with the book identifier and lending action\n * attached as tags, so events can be filtered per book or per action (e.g.\n * `action:create_token identifier:foo`) without the identifier going into\n * the message text, which would split one issue into one per book.\n */\nexport function buildSentryContext({\n identifier,\n action,\n extra = {},\n}: SentryReportContext = {}): SentryContext {\n const tags: Record<string, string> = {};\n if (identifier) tags.identifier = identifier;\n if (action) tags.action = action;\n\n return {\n tags,\n extra: { identifier, action, ...extra },\n };\n}\n\nexport function sentryCaptureMessage(\n message: string,\n context?: SentryReportContext,\n): void {\n window?.Sentry?.captureMessage?.(message, buildSentryContext(context));\n}\n\nexport function sentryCaptureException(\n error: unknown,\n context?: SentryReportContext,\n): void {\n window?.Sentry?.captureException?.(error, buildSentryContext(context));\n}\n"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Window properties that archive.org's page scripts (Sentry, analytics) and
3
+ * this element's own `ia-lending-intervals` module put on `window`.
4
+ */
5
+ export interface IALendingIntervalsInterface {
6
+ /** loan token poller interval */
7
+ tokenPoller: ReturnType<typeof setInterval> | 0;
8
+ /** renewal check interval */
9
+ timerCountdown: ReturnType<typeof setInterval> | 0;
10
+ /** expiration timer */
11
+ browseExpireTimeout: ReturnType<typeof setTimeout> | 0;
12
+ clearTokenPoller: () => void;
13
+ clearTimerCountdown: () => void;
14
+ clearBrowseExpireTimeout: () => void;
15
+ clearAll: () => void;
16
+ }
17
+ /** The capture context this element hands to Sentry. */
18
+ export interface SentryContext {
19
+ tags: Record<string, string>;
20
+ extra: Record<string, unknown>;
21
+ }
22
+ /** The part of the Sentry browser SDK global that is used here. */
23
+ export interface SentryGlobal {
24
+ captureMessage: (message: string, context?: SentryContext) => unknown;
25
+ captureException: (exception: unknown, context?: SentryContext) => unknown;
26
+ }
27
+ /** The part of archive.org's analytics global that is used here. */
28
+ export interface ArchiveAnalyticsGlobal {
29
+ send_event_no_sampling: (category: string, action: unknown, label?: string, extraParams?: unknown) => void;
30
+ }
31
+ declare global {
32
+ interface Window {
33
+ IALendingIntervals: IALendingIntervalsInterface;
34
+ Sentry?: SentryGlobal;
35
+ archive_analytics?: ArchiveAnalyticsGlobal;
36
+ }
37
+ }
38
+ //# sourceMappingURL=globals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/elements/ia-book-actions/globals.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,WAAW,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;IAChD,6BAA6B;IAC7B,cAAc,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;IACnD,uBAAuB;IACvB,mBAAmB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;IACvD,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,mEAAmE;AACnE,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC;IACtE,gBAAgB,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC;CAC5E;AAED,oEAAoE;AACpE,MAAM,WAAW,sBAAsB;IACrC,sBAAsB,EAAE,CACtB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,EACf,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,OAAO,KAClB,IAAI,CAAC;CACX;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,kBAAkB,EAAE,2BAA2B,CAAC;QAChD,MAAM,CAAC,EAAE,YAAY,CAAC;QACtB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Window properties that archive.org's page scripts (Sentry, analytics) and
3
+ * this element's own `ia-lending-intervals` module put on `window`.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=globals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../../src/elements/ia-book-actions/globals.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Window properties that archive.org's page scripts (Sentry, analytics) and\n * this element's own `ia-lending-intervals` module put on `window`.\n */\n\nexport interface IALendingIntervalsInterface {\n /** loan token poller interval */\n tokenPoller: ReturnType<typeof setInterval> | 0;\n /** renewal check interval */\n timerCountdown: ReturnType<typeof setInterval> | 0;\n /** expiration timer */\n browseExpireTimeout: ReturnType<typeof setTimeout> | 0;\n clearTokenPoller: () => void;\n clearTimerCountdown: () => void;\n clearBrowseExpireTimeout: () => void;\n clearAll: () => void;\n}\n\n/** The capture context this element hands to Sentry. */\nexport interface SentryContext {\n tags: Record<string, string>;\n extra: Record<string, unknown>;\n}\n\n/** The part of the Sentry browser SDK global that is used here. */\nexport interface SentryGlobal {\n captureMessage: (message: string, context?: SentryContext) => unknown;\n captureException: (exception: unknown, context?: SentryContext) => unknown;\n}\n\n/** The part of archive.org's analytics global that is used here. */\nexport interface ArchiveAnalyticsGlobal {\n send_event_no_sampling: (\n category: string,\n action: unknown,\n label?: string,\n extraParams?: unknown,\n ) => void;\n}\n\ndeclare global {\n interface Window {\n IALendingIntervals: IALendingIntervalsInterface;\n Sentry?: SentryGlobal;\n archive_analytics?: ArchiveAnalyticsGlobal;\n }\n}\n"]}
@@ -0,0 +1,97 @@
1
+ import { nothing, type CSSResultGroup, type PropertyValues, type TemplateResult } from 'lit';
2
+ import ActionsHandler from './core/services/actions-handler/actions-handler.js';
3
+ import type { ActionConfig, AnalyticsEvent, BorrowType } from './models.js';
4
+ export declare class IABookActionsCollapsibleActionGroup extends ActionsHandler {
5
+ userid: string;
6
+ identifier: string;
7
+ primaryActions: ActionConfig[];
8
+ secondaryActions: ActionConfig[];
9
+ primaryColor: string;
10
+ dropdownState: 'open' | 'close';
11
+ width: number;
12
+ hasAdminAccess: boolean;
13
+ dropdownArrow: TemplateResult;
14
+ disabled: boolean;
15
+ returnUrl: string;
16
+ autoRenew: boolean;
17
+ loanRenewType: string;
18
+ autoReturn: boolean;
19
+ returnNow: boolean;
20
+ /** The image shown while an action is in progress. */
21
+ loaderIcon: string;
22
+ /** Set by the parent element. */
23
+ borrowType?: BorrowType | null;
24
+ initialButton: boolean;
25
+ updated(changed: PropertyValues<this>): void;
26
+ /**
27
+ * dispatch event when book is auto auto-renewed / auto-returned / returned
28
+ * listen these events in actions-handler.ts to execute ajax call on petabox.
29
+ * @see ActionsHandler
30
+ *
31
+ * @param event - autoRenew|autoReturn|returnNow
32
+ */
33
+ dispatchLoanEvent(event: 'autoRenew' | 'autoReturn' | 'returnNow', detail?: {
34
+ renewType?: string;
35
+ borrowType?: string;
36
+ }): void;
37
+ /**
38
+ * merge primaryActions and secondaryActions into dropdown
39
+ */
40
+ resetActions(): void;
41
+ /**
42
+ * re-sort primaryActions action list to show dropdown-only/mobile mode
43
+ */
44
+ sortActionButtonOrder(): void;
45
+ render(): TemplateResult<1>;
46
+ get renderPrimaryActions(): TemplateResult<1> | typeof nothing;
47
+ get renderSecondaryActions(): typeof nothing | TemplateResult<1>[];
48
+ /**
49
+ * Render action as a link for secondary actions like admin, printdisability links.
50
+ * @param action
51
+ * @param initialButton
52
+ */
53
+ renderActionLink(action: ActionConfig, initialButton?: boolean): TemplateResult<1>;
54
+ /**
55
+ * Render action as a button for primary actions like browse, borrow, join waitlist etc...
56
+ * @param action
57
+ * @param initialButton
58
+ */
59
+ renderActionButton(action: ActionConfig, initialButton?: boolean): TemplateResult<1>;
60
+ /**
61
+ * Dispatches click events when patron clicks on action buttons
62
+ * @param eventName actions like 'browseBook', 'borrowBook' etc...
63
+ * @param gaEvent contains analytics event action and category
64
+ * @param borrowType browse|borrow
65
+ * @fires CollapsibleActionGroup#{eventName} - (will be browseBook, borrowBook etc...)
66
+ */
67
+ clickHandler(eventName: string, gaEvent?: AnalyticsEvent, borrowType?: string): void;
68
+ /**
69
+ * get first primary action to render just before dropdown button
70
+ */
71
+ get initialActionTemplate(): TemplateResult<1>;
72
+ get getPrimaryItems(): TemplateResult<1>[];
73
+ /**
74
+ * get loader icon when task is in-progress
75
+ */
76
+ get getLoaderIcon(): TemplateResult<1>;
77
+ /**
78
+ * check if device is below tablet
79
+ */
80
+ get isBelowTabletContainer(): boolean;
81
+ /**
82
+ * get device type as per container width
83
+ * @returns mobile | desktop
84
+ */
85
+ get getDeviceType(): 'mobile' | 'desktop';
86
+ /**
87
+ * toggle dropdown and its icon state
88
+ */
89
+ toggleDropdown(): void;
90
+ static get styles(): CSSResultGroup;
91
+ }
92
+ declare global {
93
+ interface HTMLElementTagNameMap {
94
+ 'ia-book-actions-collapsible-action-group': IABookActionsCollapsibleActionGroup;
95
+ }
96
+ }
97
+ //# sourceMappingURL=ia-book-actions-collapsible-action-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ia-book-actions-collapsible-action-group.d.ts","sourceRoot":"","sources":["../../../../src/elements/ia-book-actions/ia-book-actions-collapsible-action-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAQ7E,OAAO,KAAK,EAEV,YAAY,EACZ,cAAc,EACd,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,qBACa,mCAAoC,SAAQ,cAAc;IACzC,MAAM,SAAM;IAEZ,UAAU,SAAM;IAEjB,cAAc,EAAE,YAAY,EAAE,CAAM;IAEpC,gBAAgB,EAAE,YAAY,EAAE,CAAM;IAErC,YAAY,SAAM;IAElB,aAAa,EAAE,MAAM,GAAG,OAAO,CAAW;IAE1C,KAAK,SAAK;IAET,cAAc,UAAS;IAEpB,aAAa,EAAE,cAAc,CAC5C;IAEY,QAAQ,UAAS;IAElB,SAAS,SAAM;IAEd,SAAS,UAAS;IAEnB,aAAa,SAAM;IAElB,UAAU,UAAS;IAEnB,SAAS,UAAS;IAE/C,sDAAsD;IAC1B,UAAU,SACiB;IAEvD,iCAAiC;IACjC,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAE/B,aAAa,UAAS;IAEtB,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAsB5C;;;;;;OAMG;IACH,iBAAiB,CACf,KAAK,EAAE,WAAW,GAAG,YAAY,GAAG,WAAW,EAC/C,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GACnD,IAAI;IAIP;;OAEG;IACH,YAAY,IAAI,IAAI;IAgBpB;;OAEG;IACH,q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