@instructure/canvas-rce 5.6.3 → 5.6.4

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 (805) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/coverage/canvas-rce-jest.xml +1688 -1620
  3. package/coverage/canvas-rce-junit.xml +409 -409
  4. package/es/enhance-user-content/enhance_user_content.js +7 -2
  5. package/es/enhance-user-content/instructure_helper.js +10 -2
  6. package/es/rce/RCEWrapper.js +7 -4
  7. package/es/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  8. package/es/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  9. package/es/rce/plugins/instructure_wordcount/plugin.js +32 -0
  10. package/es/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  11. package/es/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  12. package/es/rce/tinyRCE.js +1 -0
  13. package/lib/enhance-user-content/enhance_user_content.js +7 -2
  14. package/lib/enhance-user-content/instructure_helper.js +10 -2
  15. package/lib/rce/RCEWrapper.js +7 -4
  16. package/lib/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  17. package/lib/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  18. package/lib/rce/plugins/instructure_wordcount/plugin.js +32 -0
  19. package/lib/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  20. package/lib/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  21. package/lib/rce/tinyRCE.js +1 -0
  22. package/lib/translated/ar/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  23. package/lib/translated/ar/modules/enhance-user-content/enhance_user_content.js +7 -2
  24. package/lib/translated/ar/modules/enhance-user-content/instructure_helper.js +10 -2
  25. package/lib/translated/ar/modules/rce/RCEWrapper.js +7 -4
  26. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  27. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  28. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  29. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  30. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  31. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  32. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  33. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  34. package/lib/translated/ar/modules/rce/tinyRCE.js +1 -0
  35. package/lib/translated/ca/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  36. package/lib/translated/ca/modules/enhance-user-content/enhance_user_content.js +7 -2
  37. package/lib/translated/ca/modules/enhance-user-content/instructure_helper.js +10 -2
  38. package/lib/translated/ca/modules/rce/RCEWrapper.js +7 -4
  39. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  40. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  41. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  42. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  43. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  44. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  45. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  46. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  47. package/lib/translated/ca/modules/rce/tinyRCE.js +1 -0
  48. package/lib/translated/cy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  49. package/lib/translated/cy/modules/enhance-user-content/enhance_user_content.js +7 -2
  50. package/lib/translated/cy/modules/enhance-user-content/instructure_helper.js +10 -2
  51. package/lib/translated/cy/modules/rce/RCEWrapper.js +7 -4
  52. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  53. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  54. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  55. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  56. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  57. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  58. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  59. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  60. package/lib/translated/cy/modules/rce/tinyRCE.js +1 -0
  61. package/lib/translated/da/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  62. package/lib/translated/da/modules/enhance-user-content/enhance_user_content.js +7 -2
  63. package/lib/translated/da/modules/enhance-user-content/instructure_helper.js +10 -2
  64. package/lib/translated/da/modules/rce/RCEWrapper.js +7 -4
  65. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  66. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  67. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  68. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  69. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  70. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  71. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  72. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  73. package/lib/translated/da/modules/rce/tinyRCE.js +1 -0
  74. package/lib/translated/da-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  75. package/lib/translated/da-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
  76. package/lib/translated/da-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
  77. package/lib/translated/da-x-k12/modules/rce/RCEWrapper.js +7 -4
  78. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  79. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  80. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  81. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  82. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  83. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  84. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  85. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  86. package/lib/translated/da-x-k12/modules/rce/tinyRCE.js +1 -0
  87. package/lib/translated/de/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  88. package/lib/translated/de/modules/enhance-user-content/enhance_user_content.js +7 -2
  89. package/lib/translated/de/modules/enhance-user-content/instructure_helper.js +10 -2
  90. package/lib/translated/de/modules/rce/RCEWrapper.js +7 -4
  91. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  92. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  93. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  94. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  95. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  96. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  97. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  98. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  99. package/lib/translated/de/modules/rce/tinyRCE.js +1 -0
  100. package/lib/translated/el/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  101. package/lib/translated/el/modules/enhance-user-content/enhance_user_content.js +7 -2
  102. package/lib/translated/el/modules/enhance-user-content/instructure_helper.js +10 -2
  103. package/lib/translated/el/modules/rce/RCEWrapper.js +7 -4
  104. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  105. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  106. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  107. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  108. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  109. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  110. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  111. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  112. package/lib/translated/el/modules/rce/tinyRCE.js +1 -0
  113. package/lib/translated/en/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  114. package/lib/translated/en/modules/enhance-user-content/enhance_user_content.js +7 -2
  115. package/lib/translated/en/modules/enhance-user-content/instructure_helper.js +10 -2
  116. package/lib/translated/en/modules/rce/RCEWrapper.js +7 -4
  117. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  118. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  119. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  120. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  121. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  122. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  123. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  124. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  125. package/lib/translated/en/modules/rce/tinyRCE.js +1 -0
  126. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  127. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/enhance_user_content.js +7 -2
  128. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/instructure_helper.js +10 -2
  129. package/lib/translated/en-AU-x-unimelb/modules/rce/RCEWrapper.js +7 -4
  130. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  131. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  132. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  133. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  134. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  135. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  136. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  137. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  138. package/lib/translated/en-AU-x-unimelb/modules/rce/tinyRCE.js +1 -0
  139. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  140. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/enhance_user_content.js +7 -2
  141. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/instructure_helper.js +10 -2
  142. package/lib/translated/en-GB-x-ukhe/modules/rce/RCEWrapper.js +7 -4
  143. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  144. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  145. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  146. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  147. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  148. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  149. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  150. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  151. package/lib/translated/en-GB-x-ukhe/modules/rce/tinyRCE.js +1 -0
  152. package/lib/translated/en_AU/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  153. package/lib/translated/en_AU/modules/enhance-user-content/enhance_user_content.js +7 -2
  154. package/lib/translated/en_AU/modules/enhance-user-content/instructure_helper.js +10 -2
  155. package/lib/translated/en_AU/modules/rce/RCEWrapper.js +7 -4
  156. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  157. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  158. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  159. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  160. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  161. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  162. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  163. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  164. package/lib/translated/en_AU/modules/rce/tinyRCE.js +1 -0
  165. package/lib/translated/en_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  166. package/lib/translated/en_CA/modules/enhance-user-content/enhance_user_content.js +7 -2
  167. package/lib/translated/en_CA/modules/enhance-user-content/instructure_helper.js +10 -2
  168. package/lib/translated/en_CA/modules/rce/RCEWrapper.js +7 -4
  169. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  170. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  171. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  172. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  173. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  174. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  175. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  176. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  177. package/lib/translated/en_CA/modules/rce/tinyRCE.js +1 -0
  178. package/lib/translated/en_CY/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  179. package/lib/translated/en_CY/modules/enhance-user-content/enhance_user_content.js +7 -2
  180. package/lib/translated/en_CY/modules/enhance-user-content/instructure_helper.js +10 -2
  181. package/lib/translated/en_CY/modules/rce/RCEWrapper.js +7 -4
  182. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  183. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  184. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  185. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  186. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  187. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  188. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  189. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  190. package/lib/translated/en_CY/modules/rce/tinyRCE.js +1 -0
  191. package/lib/translated/en_GB/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  192. package/lib/translated/en_GB/modules/enhance-user-content/enhance_user_content.js +7 -2
  193. package/lib/translated/en_GB/modules/enhance-user-content/instructure_helper.js +10 -2
  194. package/lib/translated/en_GB/modules/rce/RCEWrapper.js +7 -4
  195. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  196. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  197. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  198. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  199. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  200. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  201. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  202. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  203. package/lib/translated/en_GB/modules/rce/tinyRCE.js +1 -0
  204. package/lib/translated/es/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  205. package/lib/translated/es/modules/enhance-user-content/enhance_user_content.js +7 -2
  206. package/lib/translated/es/modules/enhance-user-content/instructure_helper.js +10 -2
  207. package/lib/translated/es/modules/rce/RCEWrapper.js +7 -4
  208. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  209. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  210. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  211. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  212. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  213. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  214. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  215. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  216. package/lib/translated/es/modules/rce/tinyRCE.js +1 -0
  217. package/lib/translated/es_ES/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  218. package/lib/translated/es_ES/modules/enhance-user-content/enhance_user_content.js +7 -2
  219. package/lib/translated/es_ES/modules/enhance-user-content/instructure_helper.js +10 -2
  220. package/lib/translated/es_ES/modules/rce/RCEWrapper.js +7 -4
  221. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  222. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  223. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  224. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  225. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  226. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  227. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  228. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  229. package/lib/translated/es_ES/modules/rce/tinyRCE.js +1 -0
  230. package/lib/translated/es_GT/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  231. package/lib/translated/es_GT/modules/enhance-user-content/enhance_user_content.js +7 -2
  232. package/lib/translated/es_GT/modules/enhance-user-content/instructure_helper.js +10 -2
  233. package/lib/translated/es_GT/modules/rce/RCEWrapper.js +7 -4
  234. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  235. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  236. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  237. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  238. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  239. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  240. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  241. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  242. package/lib/translated/es_GT/modules/rce/tinyRCE.js +1 -0
  243. package/lib/translated/fa_IR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  244. package/lib/translated/fa_IR/modules/enhance-user-content/enhance_user_content.js +7 -2
  245. package/lib/translated/fa_IR/modules/enhance-user-content/instructure_helper.js +10 -2
  246. package/lib/translated/fa_IR/modules/rce/RCEWrapper.js +7 -4
  247. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  248. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  249. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  250. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  251. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  252. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  253. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  254. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  255. package/lib/translated/fa_IR/modules/rce/tinyRCE.js +1 -0
  256. package/lib/translated/fi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  257. package/lib/translated/fi/modules/enhance-user-content/enhance_user_content.js +7 -2
  258. package/lib/translated/fi/modules/enhance-user-content/instructure_helper.js +10 -2
  259. package/lib/translated/fi/modules/rce/RCEWrapper.js +7 -4
  260. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  261. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  262. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  263. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  264. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  265. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  266. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  267. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  268. package/lib/translated/fi/modules/rce/tinyRCE.js +1 -0
  269. package/lib/translated/fr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  270. package/lib/translated/fr/modules/enhance-user-content/enhance_user_content.js +7 -2
  271. package/lib/translated/fr/modules/enhance-user-content/instructure_helper.js +10 -2
  272. package/lib/translated/fr/modules/rce/RCEWrapper.js +7 -4
  273. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  274. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  275. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  276. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  277. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  278. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  279. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  280. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  281. package/lib/translated/fr/modules/rce/tinyRCE.js +1 -0
  282. package/lib/translated/fr_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  283. package/lib/translated/fr_CA/modules/enhance-user-content/enhance_user_content.js +7 -2
  284. package/lib/translated/fr_CA/modules/enhance-user-content/instructure_helper.js +10 -2
  285. package/lib/translated/fr_CA/modules/rce/RCEWrapper.js +7 -4
  286. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  287. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  288. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  289. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  290. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  291. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  292. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  293. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  294. package/lib/translated/fr_CA/modules/rce/tinyRCE.js +1 -0
  295. package/lib/translated/he/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  296. package/lib/translated/he/modules/enhance-user-content/enhance_user_content.js +7 -2
  297. package/lib/translated/he/modules/enhance-user-content/instructure_helper.js +10 -2
  298. package/lib/translated/he/modules/rce/RCEWrapper.js +7 -4
  299. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  300. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  301. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  302. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  303. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  304. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  305. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  306. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  307. package/lib/translated/he/modules/rce/tinyRCE.js +1 -0
  308. package/lib/translated/ht/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  309. package/lib/translated/ht/modules/enhance-user-content/enhance_user_content.js +7 -2
  310. package/lib/translated/ht/modules/enhance-user-content/instructure_helper.js +10 -2
  311. package/lib/translated/ht/modules/rce/RCEWrapper.js +7 -4
  312. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  313. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  314. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  315. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  316. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  317. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  318. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  319. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  320. package/lib/translated/ht/modules/rce/tinyRCE.js +1 -0
  321. package/lib/translated/hu/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  322. package/lib/translated/hu/modules/enhance-user-content/enhance_user_content.js +7 -2
  323. package/lib/translated/hu/modules/enhance-user-content/instructure_helper.js +10 -2
  324. package/lib/translated/hu/modules/rce/RCEWrapper.js +7 -4
  325. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  326. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  327. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  328. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  329. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  330. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  331. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  332. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  333. package/lib/translated/hu/modules/rce/tinyRCE.js +1 -0
  334. package/lib/translated/hy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  335. package/lib/translated/hy/modules/enhance-user-content/enhance_user_content.js +7 -2
  336. package/lib/translated/hy/modules/enhance-user-content/instructure_helper.js +10 -2
  337. package/lib/translated/hy/modules/rce/RCEWrapper.js +7 -4
  338. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  339. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  340. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  341. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  342. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  343. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  344. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  345. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  346. package/lib/translated/hy/modules/rce/tinyRCE.js +1 -0
  347. package/lib/translated/is/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  348. package/lib/translated/is/modules/enhance-user-content/enhance_user_content.js +7 -2
  349. package/lib/translated/is/modules/enhance-user-content/instructure_helper.js +10 -2
  350. package/lib/translated/is/modules/rce/RCEWrapper.js +7 -4
  351. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  352. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  353. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  354. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  355. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  356. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  357. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  358. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  359. package/lib/translated/is/modules/rce/tinyRCE.js +1 -0
  360. package/lib/translated/it/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  361. package/lib/translated/it/modules/enhance-user-content/enhance_user_content.js +7 -2
  362. package/lib/translated/it/modules/enhance-user-content/instructure_helper.js +10 -2
  363. package/lib/translated/it/modules/rce/RCEWrapper.js +7 -4
  364. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  365. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  366. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  367. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  368. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  369. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  370. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  371. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  372. package/lib/translated/it/modules/rce/tinyRCE.js +1 -0
  373. package/lib/translated/ja/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  374. package/lib/translated/ja/modules/enhance-user-content/enhance_user_content.js +7 -2
  375. package/lib/translated/ja/modules/enhance-user-content/instructure_helper.js +10 -2
  376. package/lib/translated/ja/modules/rce/RCEWrapper.js +7 -4
  377. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  378. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  379. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  380. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  381. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  382. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  383. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  384. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  385. package/lib/translated/ja/modules/rce/tinyRCE.js +1 -0
  386. package/lib/translated/ko/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  387. package/lib/translated/ko/modules/enhance-user-content/enhance_user_content.js +7 -2
  388. package/lib/translated/ko/modules/enhance-user-content/instructure_helper.js +10 -2
  389. package/lib/translated/ko/modules/rce/RCEWrapper.js +7 -4
  390. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  391. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  392. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  393. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  394. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  395. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  396. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  397. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  398. package/lib/translated/ko/modules/rce/tinyRCE.js +1 -0
  399. package/lib/translated/mi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  400. package/lib/translated/mi/modules/enhance-user-content/enhance_user_content.js +7 -2
  401. package/lib/translated/mi/modules/enhance-user-content/instructure_helper.js +10 -2
  402. package/lib/translated/mi/modules/rce/RCEWrapper.js +7 -4
  403. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  404. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  405. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  406. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  407. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  408. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  409. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  410. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  411. package/lib/translated/mi/modules/rce/tinyRCE.js +1 -0
  412. package/lib/translated/nb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  413. package/lib/translated/nb/modules/enhance-user-content/enhance_user_content.js +7 -2
  414. package/lib/translated/nb/modules/enhance-user-content/instructure_helper.js +10 -2
  415. package/lib/translated/nb/modules/rce/RCEWrapper.js +7 -4
  416. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  417. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  418. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  419. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  420. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  421. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  422. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  423. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  424. package/lib/translated/nb/modules/rce/tinyRCE.js +1 -0
  425. package/lib/translated/nb-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  426. package/lib/translated/nb-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
  427. package/lib/translated/nb-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
  428. package/lib/translated/nb-x-k12/modules/rce/RCEWrapper.js +7 -4
  429. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  430. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  431. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  432. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  433. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  434. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  435. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  436. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  437. package/lib/translated/nb-x-k12/modules/rce/tinyRCE.js +1 -0
  438. package/lib/translated/nl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  439. package/lib/translated/nl/modules/enhance-user-content/enhance_user_content.js +7 -2
  440. package/lib/translated/nl/modules/enhance-user-content/instructure_helper.js +10 -2
  441. package/lib/translated/nl/modules/rce/RCEWrapper.js +7 -4
  442. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  443. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  444. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  445. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  446. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  447. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  448. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  449. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  450. package/lib/translated/nl/modules/rce/tinyRCE.js +1 -0
  451. package/lib/translated/nn/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  452. package/lib/translated/nn/modules/enhance-user-content/enhance_user_content.js +7 -2
  453. package/lib/translated/nn/modules/enhance-user-content/instructure_helper.js +10 -2
  454. package/lib/translated/nn/modules/rce/RCEWrapper.js +7 -4
  455. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  456. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  457. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  458. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  459. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  460. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  461. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  462. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  463. package/lib/translated/nn/modules/rce/tinyRCE.js +1 -0
  464. package/lib/translated/pl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  465. package/lib/translated/pl/modules/enhance-user-content/enhance_user_content.js +7 -2
  466. package/lib/translated/pl/modules/enhance-user-content/instructure_helper.js +10 -2
  467. package/lib/translated/pl/modules/rce/RCEWrapper.js +7 -4
  468. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  469. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  470. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  471. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  472. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  473. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  474. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  475. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  476. package/lib/translated/pl/modules/rce/tinyRCE.js +1 -0
  477. package/lib/translated/pt/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  478. package/lib/translated/pt/modules/enhance-user-content/enhance_user_content.js +7 -2
  479. package/lib/translated/pt/modules/enhance-user-content/instructure_helper.js +10 -2
  480. package/lib/translated/pt/modules/rce/RCEWrapper.js +7 -4
  481. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  482. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  483. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  484. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  485. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  486. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  487. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  488. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  489. package/lib/translated/pt/modules/rce/tinyRCE.js +1 -0
  490. package/lib/translated/pt_BR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  491. package/lib/translated/pt_BR/modules/enhance-user-content/enhance_user_content.js +7 -2
  492. package/lib/translated/pt_BR/modules/enhance-user-content/instructure_helper.js +10 -2
  493. package/lib/translated/pt_BR/modules/rce/RCEWrapper.js +7 -4
  494. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  495. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  496. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  497. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  498. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  499. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  500. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  501. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  502. package/lib/translated/pt_BR/modules/rce/tinyRCE.js +1 -0
  503. package/lib/translated/ru/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  504. package/lib/translated/ru/modules/enhance-user-content/enhance_user_content.js +7 -2
  505. package/lib/translated/ru/modules/enhance-user-content/instructure_helper.js +10 -2
  506. package/lib/translated/ru/modules/rce/RCEWrapper.js +7 -4
  507. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  508. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  509. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  510. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  511. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  512. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  513. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  514. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  515. package/lib/translated/ru/modules/rce/tinyRCE.js +1 -0
  516. package/lib/translated/se/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  517. package/lib/translated/se/modules/enhance-user-content/enhance_user_content.js +7 -2
  518. package/lib/translated/se/modules/enhance-user-content/instructure_helper.js +10 -2
  519. package/lib/translated/se/modules/rce/RCEWrapper.js +7 -4
  520. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  521. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  522. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  523. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  524. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  525. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  526. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  527. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  528. package/lib/translated/se/modules/rce/tinyRCE.js +1 -0
  529. package/lib/translated/sl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  530. package/lib/translated/sl/modules/enhance-user-content/enhance_user_content.js +7 -2
  531. package/lib/translated/sl/modules/enhance-user-content/instructure_helper.js +10 -2
  532. package/lib/translated/sl/modules/rce/RCEWrapper.js +7 -4
  533. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  534. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  535. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  536. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  537. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  538. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  539. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  540. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  541. package/lib/translated/sl/modules/rce/tinyRCE.js +1 -0
  542. package/lib/translated/sv/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  543. package/lib/translated/sv/modules/enhance-user-content/enhance_user_content.js +7 -2
  544. package/lib/translated/sv/modules/enhance-user-content/instructure_helper.js +10 -2
  545. package/lib/translated/sv/modules/rce/RCEWrapper.js +7 -4
  546. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  547. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  548. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  549. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  550. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  551. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  552. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  553. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  554. package/lib/translated/sv/modules/rce/tinyRCE.js +1 -0
  555. package/lib/translated/sv-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  556. package/lib/translated/sv-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
  557. package/lib/translated/sv-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
  558. package/lib/translated/sv-x-k12/modules/rce/RCEWrapper.js +7 -4
  559. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  560. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  561. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  562. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  563. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  564. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  565. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  566. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  567. package/lib/translated/sv-x-k12/modules/rce/tinyRCE.js +1 -0
  568. package/lib/translated/sv_SE/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  569. package/lib/translated/sv_SE/modules/enhance-user-content/enhance_user_content.js +7 -2
  570. package/lib/translated/sv_SE/modules/enhance-user-content/instructure_helper.js +10 -2
  571. package/lib/translated/sv_SE/modules/rce/RCEWrapper.js +7 -4
  572. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  573. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  574. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  575. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  576. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  577. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  578. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  579. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  580. package/lib/translated/sv_SE/modules/rce/tinyRCE.js +1 -0
  581. package/lib/translated/tg/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  582. package/lib/translated/tg/modules/enhance-user-content/enhance_user_content.js +7 -2
  583. package/lib/translated/tg/modules/enhance-user-content/instructure_helper.js +10 -2
  584. package/lib/translated/tg/modules/rce/RCEWrapper.js +7 -4
  585. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  586. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  587. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  588. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  589. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  590. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  591. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  592. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  593. package/lib/translated/tg/modules/rce/tinyRCE.js +1 -0
  594. package/lib/translated/th/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  595. package/lib/translated/th/modules/enhance-user-content/enhance_user_content.js +7 -2
  596. package/lib/translated/th/modules/enhance-user-content/instructure_helper.js +10 -2
  597. package/lib/translated/th/modules/rce/RCEWrapper.js +7 -4
  598. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  599. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  600. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  601. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  602. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  603. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  604. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  605. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  606. package/lib/translated/th/modules/rce/tinyRCE.js +1 -0
  607. package/lib/translated/th_TH/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  608. package/lib/translated/th_TH/modules/enhance-user-content/enhance_user_content.js +7 -2
  609. package/lib/translated/th_TH/modules/enhance-user-content/instructure_helper.js +10 -2
  610. package/lib/translated/th_TH/modules/rce/RCEWrapper.js +7 -4
  611. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  612. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  613. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  614. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  615. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  616. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  617. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  618. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  619. package/lib/translated/th_TH/modules/rce/tinyRCE.js +1 -0
  620. package/lib/translated/tr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  621. package/lib/translated/tr/modules/enhance-user-content/enhance_user_content.js +7 -2
  622. package/lib/translated/tr/modules/enhance-user-content/instructure_helper.js +10 -2
  623. package/lib/translated/tr/modules/rce/RCEWrapper.js +7 -4
  624. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  625. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  626. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  627. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  628. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  629. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  630. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  631. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  632. package/lib/translated/tr/modules/rce/tinyRCE.js +1 -0
  633. package/lib/translated/uk_UA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  634. package/lib/translated/uk_UA/modules/enhance-user-content/enhance_user_content.js +7 -2
  635. package/lib/translated/uk_UA/modules/enhance-user-content/instructure_helper.js +10 -2
  636. package/lib/translated/uk_UA/modules/rce/RCEWrapper.js +7 -4
  637. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  638. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  639. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  640. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  641. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  642. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  643. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  644. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  645. package/lib/translated/uk_UA/modules/rce/tinyRCE.js +1 -0
  646. package/lib/translated/vi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  647. package/lib/translated/vi/modules/enhance-user-content/enhance_user_content.js +7 -2
  648. package/lib/translated/vi/modules/enhance-user-content/instructure_helper.js +10 -2
  649. package/lib/translated/vi/modules/rce/RCEWrapper.js +7 -4
  650. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  651. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  652. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  653. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  654. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  655. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  656. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  657. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  658. package/lib/translated/vi/modules/rce/tinyRCE.js +1 -0
  659. package/lib/translated/vi_VN/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  660. package/lib/translated/vi_VN/modules/enhance-user-content/enhance_user_content.js +7 -2
  661. package/lib/translated/vi_VN/modules/enhance-user-content/instructure_helper.js +10 -2
  662. package/lib/translated/vi_VN/modules/rce/RCEWrapper.js +7 -4
  663. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  664. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  665. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  666. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  667. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  668. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  669. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  670. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  671. package/lib/translated/vi_VN/modules/rce/tinyRCE.js +1 -0
  672. package/lib/translated/zh/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  673. package/lib/translated/zh/modules/enhance-user-content/enhance_user_content.js +7 -2
  674. package/lib/translated/zh/modules/enhance-user-content/instructure_helper.js +10 -2
  675. package/lib/translated/zh/modules/rce/RCEWrapper.js +7 -4
  676. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  677. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  678. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  679. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  680. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  681. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  682. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  683. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  684. package/lib/translated/zh/modules/rce/tinyRCE.js +1 -0
  685. package/lib/translated/zh-Hans/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  686. package/lib/translated/zh-Hans/modules/enhance-user-content/enhance_user_content.js +7 -2
  687. package/lib/translated/zh-Hans/modules/enhance-user-content/instructure_helper.js +10 -2
  688. package/lib/translated/zh-Hans/modules/rce/RCEWrapper.js +7 -4
  689. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  690. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  691. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  692. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  693. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  694. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  695. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  696. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  697. package/lib/translated/zh-Hans/modules/rce/tinyRCE.js +1 -0
  698. package/lib/translated/zh-Hant/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  699. package/lib/translated/zh-Hant/modules/enhance-user-content/enhance_user_content.js +7 -2
  700. package/lib/translated/zh-Hant/modules/enhance-user-content/instructure_helper.js +10 -2
  701. package/lib/translated/zh-Hant/modules/rce/RCEWrapper.js +7 -4
  702. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  703. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  704. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  705. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  706. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  707. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  708. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  709. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  710. package/lib/translated/zh-Hant/modules/rce/tinyRCE.js +1 -0
  711. package/lib/translated/zh_HK/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
  712. package/lib/translated/zh_HK/modules/enhance-user-content/enhance_user_content.js +7 -2
  713. package/lib/translated/zh_HK/modules/enhance-user-content/instructure_helper.js +10 -2
  714. package/lib/translated/zh_HK/modules/rce/RCEWrapper.js +7 -4
  715. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
  716. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
  717. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
  718. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
  719. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
  720. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
  721. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
  722. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
  723. package/lib/translated/zh_HK/modules/rce/tinyRCE.js +1 -0
  724. package/package.json +3 -2
  725. package/testcafe/build/100.js +5 -5
  726. package/testcafe/build/101.js +5 -5
  727. package/testcafe/build/102.js +1 -1
  728. package/testcafe/build/103.js +1 -1
  729. package/testcafe/build/22.js +1 -1
  730. package/testcafe/build/23.js +39 -3
  731. package/testcafe/build/27.js +84 -84
  732. package/testcafe/build/28.js +99 -83
  733. package/testcafe/build/29.js +107 -51
  734. package/testcafe/build/30.js +59 -47
  735. package/testcafe/build/31.js +64 -28
  736. package/testcafe/build/32.js +28 -16
  737. package/testcafe/build/33.js +10 -10
  738. package/testcafe/build/34.js +16 -16
  739. package/testcafe/build/35.js +27 -15
  740. package/testcafe/build/36.js +19 -18
  741. package/testcafe/build/37.js +22 -11
  742. package/testcafe/build/38.js +14 -13
  743. package/testcafe/build/39.js +8 -8
  744. package/testcafe/build/40.js +6 -6
  745. package/testcafe/build/41.js +6 -6
  746. package/testcafe/build/42.js +6 -6
  747. package/testcafe/build/43.js +10 -10
  748. package/testcafe/build/44.js +5 -5
  749. package/testcafe/build/45.js +5 -5
  750. package/testcafe/build/46.js +3 -3
  751. package/testcafe/build/47.js +6 -6
  752. package/testcafe/build/48.js +10 -10
  753. package/testcafe/build/49.js +8 -8
  754. package/testcafe/build/5.js +1 -1
  755. package/testcafe/build/50.js +6 -6
  756. package/testcafe/build/51.js +8 -8
  757. package/testcafe/build/52.js +6 -6
  758. package/testcafe/build/53.js +6 -6
  759. package/testcafe/build/54.js +8 -8
  760. package/testcafe/build/55.js +8 -8
  761. package/testcafe/build/56.js +6 -6
  762. package/testcafe/build/57.js +8 -8
  763. package/testcafe/build/58.js +8 -8
  764. package/testcafe/build/59.js +10 -10
  765. package/testcafe/build/60.js +6 -6
  766. package/testcafe/build/61.js +6 -6
  767. package/testcafe/build/62.js +8 -8
  768. package/testcafe/build/63.js +8 -8
  769. package/testcafe/build/64.js +8 -8
  770. package/testcafe/build/65.js +17 -6
  771. package/testcafe/build/66.js +3 -3
  772. package/testcafe/build/67.js +5 -5
  773. package/testcafe/build/68.js +5 -5
  774. package/testcafe/build/69.js +5 -5
  775. package/testcafe/build/70.js +5 -5
  776. package/testcafe/build/71.js +6 -6
  777. package/testcafe/build/72.js +6 -6
  778. package/testcafe/build/73.js +6 -6
  779. package/testcafe/build/74.js +6 -6
  780. package/testcafe/build/75.js +6 -6
  781. package/testcafe/build/76.js +6 -6
  782. package/testcafe/build/77.js +5 -5
  783. package/testcafe/build/78.js +5 -5
  784. package/testcafe/build/79.js +5 -5
  785. package/testcafe/build/80.js +5 -5
  786. package/testcafe/build/81.js +3 -3
  787. package/testcafe/build/82.js +5 -5
  788. package/testcafe/build/83.js +5 -5
  789. package/testcafe/build/84.js +3 -3
  790. package/testcafe/build/85.js +3 -3
  791. package/testcafe/build/86.js +5 -5
  792. package/testcafe/build/87.js +3 -3
  793. package/testcafe/build/88.js +5 -5
  794. package/testcafe/build/89.js +3 -3
  795. package/testcafe/build/90.js +5 -5
  796. package/testcafe/build/91.js +3 -3
  797. package/testcafe/build/92.js +5 -5
  798. package/testcafe/build/93.js +3 -3
  799. package/testcafe/build/94.js +5 -5
  800. package/testcafe/build/95.js +3 -3
  801. package/testcafe/build/96.js +3 -3
  802. package/testcafe/build/97.js +5 -5
  803. package/testcafe/build/98.js +5 -5
  804. package/testcafe/build/99.js +5 -5
  805. package/testcafe/build/testcafe.js +18 -6
@@ -3313,6 +3313,7 @@ table {
3313
3313
  'mce-nbsp': 'tinymce__oxide--mce-nbsp',
3314
3314
  'mce-shy': 'tinymce__oxide--mce-shy'
3315
3315
  };
3316
+ import { countShouldIgnore } from './plugins/instructure_wordcount/utils/countContent';
3316
3317
  const RestoreAutoSaveModal = /*#__PURE__*/React.lazy(() => import('./RestoreAutoSaveModal'));
3317
3318
  const RceHtmlEditor = /*#__PURE__*/React.lazy(() => import('./RceHtmlEditor'));
3318
3319
  const ASYNC_FOCUS_TIMEOUT = 250;
@@ -3854,10 +3855,12 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
3854
3855
  };
3855
3856
 
3856
3857
  this.onWordCountUpdate = e => {
3858
+ const shouldIgnore = countShouldIgnore(this.editor, 'body', 'words');
3859
+ const updatedCount = e.wordCount.words - shouldIgnore;
3857
3860
  this.setState(state => {
3858
- if (e.wordCount.words !== state.wordCount) {
3861
+ if (updatedCount !== state.wordCount) {
3859
3862
  return {
3860
- wordCount: e.wordCount.words
3863
+ wordCount: updatedCount
3861
3864
  };
3862
3865
  } else return null;
3863
3866
  });
@@ -4700,7 +4703,7 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
4700
4703
  const rcsExists = !!((_this$props$trayProps2 = this.props.trayProps) !== null && _this$props$trayProps2 !== void 0 && _this$props$trayProps2.host && (_this$props$trayProps3 = this.props.trayProps) !== null && _this$props$trayProps3 !== void 0 && _this$props$trayProps3.jwt);
4701
4704
  const userLocale = editorLanguage(this.language);
4702
4705
  const setupCallback = options.setup;
4703
- const canvasPlugins = rcsExists ? ['instructure_links', 'instructure_image', 'instructure_documents', 'instructure_equation', 'instructure_external_tools'] : ['instructure_links'];
4706
+ const canvasPlugins = rcsExists ? ['instructure_links', 'instructure_image', 'instructure_documents', 'instructure_equation', 'instructure_external_tools', 'instructure_wordcount'] : ['instructure_links'];
4704
4707
 
4705
4708
  if (rcsExists && !this.props.instRecordDisabled) {
4706
4709
  canvasPlugins.splice(2, 0, 'instructure_record');
@@ -4759,7 +4762,7 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
4759
4762
  },
4760
4763
  tools: {
4761
4764
  title: "V\xE6rkt\xF8jer",
4762
- items: 'wordcount lti_tools_menuitem'
4765
+ items: 'instructure_wordcount lti_tools_menuitem'
4763
4766
  },
4764
4767
  view: {
4765
4768
  title: "Vis",
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import ReactDOM from 'react-dom';
20
+ import { generateRows, HEADERS } from './utils/tableContent';
21
+ const MODAL_ID = 'canvas-rce-wordcount-container';
22
+ export default function (ed, document) {
23
+ return import('./components/WordCountModal').then(_ref => {
24
+ let {
25
+ WordCountModal
26
+ } = _ref;
27
+ let container = document.querySelector(`#${MODAL_ID}`);
28
+
29
+ if (!container) {
30
+ container = document.createElement('div');
31
+ container.id = MODAL_ID;
32
+ document.body.appendChild(container);
33
+ }
34
+
35
+ const handleDismiss = () => {
36
+ ReactDOM.unmountComponentAtNode(container);
37
+ ed.focus(false);
38
+ };
39
+
40
+ ReactDOM.render( /*#__PURE__*/React.createElement(WordCountModal, {
41
+ headers: HEADERS,
42
+ rows: generateRows(ed),
43
+ onDismiss: handleDismiss
44
+ }), container);
45
+ });
46
+ }
@@ -0,0 +1,92 @@
1
+ import _pt from "prop-types";
2
+
3
+ /*
4
+ * Copyright (C) 2022 - present Instructure, Inc.
5
+ *
6
+ * This file is part of Canvas.
7
+ *
8
+ * Canvas is free software: you can redistribute it and/or modify it under
9
+ * the terms of the GNU Affero General Public License as published by the Free
10
+ * Software Foundation, version 3 of the License.
11
+ *
12
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
13
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
15
+ * details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License along
18
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import React from 'react';
21
+ import { Modal } from '@instructure/ui-modal';
22
+ import { BaseButton, CloseButton } from '@instructure/ui-buttons';
23
+ import { Heading } from '@instructure/ui-heading';
24
+ import { Table } from '@instructure/ui-table';
25
+ import formatMessage from '../../../../format-message';
26
+ // Doing this to avoid TS2339 errors -- TODO: remove once we're on InstUI 8
27
+ const {
28
+ Head,
29
+ Row,
30
+ ColHeader,
31
+ Body,
32
+ Cell
33
+ } = Table;
34
+
35
+ const renderBody = (headers, rows) => {
36
+ return /*#__PURE__*/React.createElement(Table, {
37
+ caption: "Word Count"
38
+ }, /*#__PURE__*/React.createElement(Head, null, /*#__PURE__*/React.createElement(Row, null, headers.map(_ref => {
39
+ let {
40
+ id,
41
+ label
42
+ } = _ref;
43
+ return /*#__PURE__*/React.createElement(ColHeader, {
44
+ key: id,
45
+ id: id
46
+ }, label);
47
+ }))), /*#__PURE__*/React.createElement(Body, null, rows.map(_ref2 => {
48
+ let {
49
+ label,
50
+ documentCount,
51
+ selectionCount
52
+ } = _ref2;
53
+ return /*#__PURE__*/React.createElement(Row, {
54
+ key: label
55
+ }, /*#__PURE__*/React.createElement(Cell, {
56
+ key: "label"
57
+ }, label), /*#__PURE__*/React.createElement(Cell, {
58
+ key: "document"
59
+ }, documentCount), /*#__PURE__*/React.createElement(Cell, {
60
+ key: "selection"
61
+ }, selectionCount));
62
+ })));
63
+ };
64
+
65
+ export const WordCountModal = _ref3 => {
66
+ let {
67
+ headers,
68
+ rows,
69
+ onDismiss
70
+ } = _ref3;
71
+ return /*#__PURE__*/React.createElement(Modal, {
72
+ label: "Word Count",
73
+ open: true
74
+ }, /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(CloseButton, {
75
+ placement: "end",
76
+ offset: "medium",
77
+ color: "primary",
78
+ onClick: onDismiss,
79
+ screenReaderLabel: "Luk"
80
+ }), /*#__PURE__*/React.createElement(Heading, null, "Word Count")), /*#__PURE__*/React.createElement(Modal.Body, {
81
+ padding: "x-large"
82
+ }, renderBody(headers, rows)), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(BaseButton, {
83
+ onClick: onDismiss,
84
+ "data-testid": "footer-close-button",
85
+ color: "primary"
86
+ }, "Luk")));
87
+ };
88
+ WordCountModal.propTypes = {
89
+ headers: _pt.array.isRequired,
90
+ rows: _pt.array.isRequired,
91
+ onDismiss: _pt.func.isRequired
92
+ };
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { fireEvent, render } from '@testing-library/react';
20
+ import { WordCountModal } from '../WordCountModal';
21
+ import { HEADERS } from '../../utils/tableContent';
22
+ const defaultProps = {
23
+ headers: HEADERS,
24
+ rows: [{
25
+ label: 'Words',
26
+ documentCount: 0,
27
+ selectionCount: 1
28
+ }, {
29
+ label: 'Characters (no spaces)',
30
+ documentCount: 2,
31
+ selectionCount: 3
32
+ }, {
33
+ label: 'Characters',
34
+ documentCount: 4,
35
+ selectionCount: 5
36
+ }],
37
+ onDismiss: jest.fn()
38
+ };
39
+
40
+ const renderModal = function () {
41
+ let overrideProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
42
+ return render( /*#__PURE__*/React.createElement(WordCountModal, Object.assign({}, defaultProps, overrideProps)));
43
+ };
44
+
45
+ describe('WordCountModal', () => {
46
+ describe('onDismiss', () => {
47
+ it('is called when the header close button is clicked', () => {
48
+ const {
49
+ getAllByText
50
+ } = renderModal();
51
+ fireEvent.click(getAllByText(/close/i)[0]);
52
+ expect(defaultProps.onDismiss).toHaveBeenCalled();
53
+ });
54
+ it('is called when the footer close button is clicked', () => {
55
+ const {
56
+ getByTestId
57
+ } = renderModal();
58
+ fireEvent.click(getByTestId('footer-close-button'));
59
+ expect(defaultProps.onDismiss).toHaveBeenCalled();
60
+ });
61
+ });
62
+ describe('headers', () => {
63
+ it('are rendered', () => {
64
+ const {
65
+ getByRole
66
+ } = renderModal();
67
+ defaultProps.headers.forEach(header => {
68
+ expect(getByRole('columnheader', {
69
+ name: header.label
70
+ })).toBeInTheDocument();
71
+ });
72
+ });
73
+ });
74
+ describe('rows', () => {
75
+ it('are rendered', () => {
76
+ const {
77
+ getByRole
78
+ } = renderModal();
79
+ defaultProps.rows.forEach(_ref => {
80
+ let {
81
+ label,
82
+ documentCount,
83
+ selectionCount
84
+ } = _ref;
85
+ expect(getByRole('row', {
86
+ name: `${label} ${documentCount} ${selectionCount}`
87
+ })).toBeInTheDocument();
88
+ });
89
+ });
90
+ });
91
+ });
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import tinymce from 'tinymce';
19
+ import formatMessage from '../../../format-message';
20
+ import clickCallback from './clickCallback';
21
+ tinymce.create('tinymce.plugins.InstructureWordcount', {
22
+ init(ed) {
23
+ ed.addCommand('instructureWordcount', clickCallback.bind(this, ed, document));
24
+ ed.ui.registry.addMenuItem('instructure_wordcount', {
25
+ text: "Word Count",
26
+ icon: 'character-count',
27
+ onAction: () => ed.execCommand('instructureWordcount')
28
+ });
29
+ }
30
+
31
+ });
32
+ tinymce.PluginManager.add('instructure_wordcount', tinymce.plugins.InstructureWordcount);
@@ -0,0 +1,164 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { countWords, countCharsNoSpaces, countChars, callbackForCategory, countShouldIgnore, getTinymceCount, countContent, IGNORE_WORDCOUNT_ATTRIBUTE } from '../countContent';
19
+ const editor = {
20
+ getBody: () => ({
21
+ querySelectorAll: () => [createNode('hello world'), createNode('hi again')]
22
+ }),
23
+ plugins: {
24
+ wordcount: {
25
+ body: {
26
+ getWordCount: () => 50,
27
+ getCharacterCountWithoutSpaces: () => 51,
28
+ getCharacterCount: () => 52
29
+ },
30
+ selection: {
31
+ getWordCount: () => 53,
32
+ getCharacterCountWithoutSpaces: () => 54,
33
+ getCharacterCount: () => 55
34
+ }
35
+ }
36
+ }
37
+ };
38
+
39
+ const createNode = function (content) {
40
+ let charsOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
41
+ const node = document.createElement('p');
42
+ node.setAttribute(IGNORE_WORDCOUNT_ATTRIBUTE, charsOnly ? 'chars-only' : '');
43
+ node.innerText = content;
44
+ return node;
45
+ };
46
+
47
+ describe('countWords', () => {
48
+ it('returns 0 if the ignore attribute is "chars-only"', () => {
49
+ const node = createNode('abc', true);
50
+ expect(countWords(node)).toEqual(0);
51
+ });
52
+ it('returns 0 if the text content is the empty string', () => {
53
+ const node = createNode('');
54
+ expect(countWords(node)).toEqual(0);
55
+ });
56
+ it('returns 0 if the text content is only whitespace', () => {
57
+ const node = createNode(' ');
58
+ expect(countWords(node)).toEqual(0);
59
+ });
60
+ it('returns the number of words (whitespace delimited)', () => {
61
+ const node = createNode('a b c d');
62
+ expect(countWords(node)).toEqual(4);
63
+ });
64
+ });
65
+ describe('countChars', () => {
66
+ it('returns 0 if the text content is the empty string', () => {
67
+ const node = createNode('');
68
+ expect(countChars(node)).toEqual(0);
69
+ });
70
+ it('handles invisible and nonstandard length characters', () => {
71
+ // first one is invisible char U+2062
72
+ ;
73
+ ['⁢', '👉', '𝟈'].forEach(char => {
74
+ const node = createNode(char);
75
+ expect(countChars(node)).toEqual(1);
76
+ });
77
+ });
78
+ it('otherwise handles normal strings of characters', () => {
79
+ ;
80
+ ['abc', 'a b c', 'somethingsomething'].forEach(str => {
81
+ const node = createNode(str);
82
+ expect(countChars(node)).toEqual(str.length);
83
+ });
84
+ });
85
+ });
86
+ describe('countCharsNoSpaces', () => {
87
+ it('returns 0 if the text content is the empty string', () => {
88
+ const node = createNode('');
89
+ expect(countCharsNoSpaces(node)).toEqual(0);
90
+ });
91
+ it('returns 0 if the text content is only spaces', () => {
92
+ const node = createNode(' ');
93
+ expect(countCharsNoSpaces(node)).toEqual(0);
94
+ });
95
+ it('returns the character count minus the number of spaces', () => {
96
+ const node = createNode('123 '); // 7 spaces
97
+
98
+ expect(countCharsNoSpaces(node)).toEqual(3);
99
+ });
100
+ it('returns the character count if there are no spaces spaces', () => {
101
+ const node = createNode('123');
102
+ expect(countCharsNoSpaces(node)).toEqual(3);
103
+ });
104
+ });
105
+ describe('callbackForCategory', () => {
106
+ it('returns countWords for "words"', () => {
107
+ expect(callbackForCategory('words')).toEqual(countWords);
108
+ });
109
+ it('returns countCharsNoSpaces for "chars-no-spaces"', () => {
110
+ expect(callbackForCategory('chars-no-spaces')).toEqual(countCharsNoSpaces);
111
+ });
112
+ it('returns countChars for "chars"', () => {
113
+ expect(callbackForCategory('chars')).toEqual(countChars);
114
+ });
115
+ });
116
+ describe('countShouldIgnore', () => {
117
+ it('returns 0 if scope is selection', () => {
118
+ expect(countShouldIgnore(editor, 'selection', 'words')).toEqual(0);
119
+ });
120
+ it('counts correctly using the callback for "words"', () => {
121
+ expect(countShouldIgnore(editor, 'body', 'words')).toEqual(4);
122
+ });
123
+ it('counts correctly using the callback for "chars-no-spaces"', () => {
124
+ expect(countShouldIgnore(editor, 'body', 'chars-no-spaces')).toEqual(17);
125
+ });
126
+ it('counts correctly using the callback for "chars"', () => {
127
+ expect(countShouldIgnore(editor, 'body', 'chars')).toEqual(19);
128
+ });
129
+ });
130
+ describe('getTinymceCount', () => {
131
+ it('returns the appropriate value for each input combination', () => {
132
+ const scopes = ['body', 'selection'];
133
+ const categories = ['words', 'chars-no-spaces', 'chars'];
134
+ let expectedValue = 50;
135
+ scopes.forEach(scope => {
136
+ categories.forEach(category => {
137
+ expect(getTinymceCount(editor, scope, category)).toEqual(expectedValue);
138
+ expectedValue++;
139
+ });
140
+ });
141
+ });
142
+ });
143
+ describe('countContent', () => {
144
+ describe('returns getTinymceCount less countShouldIgnore', () => {
145
+ it('for "body" + "words"', () => {
146
+ expect(countContent(editor, 'body', 'words')).toEqual(50 - 4);
147
+ });
148
+ it('for "body" + "chars-no-spaces"', () => {
149
+ expect(countContent(editor, 'body', 'chars-no-spaces')).toEqual(51 - 17);
150
+ });
151
+ it('for "body" + "chars"', () => {
152
+ expect(countContent(editor, 'body', 'chars')).toEqual(52 - 19);
153
+ });
154
+ it('for "selection" + "words"', () => {
155
+ expect(countContent(editor, 'selection', 'words')).toEqual(53 - 0);
156
+ });
157
+ it('for "selection" + "chars-no-spaces"', () => {
158
+ expect(countContent(editor, 'selection', 'chars-no-spaces')).toEqual(54 - 0);
159
+ });
160
+ it('for "selection" + "chars"', () => {
161
+ expect(countContent(editor, 'selection', 'chars')).toEqual(55 - 0);
162
+ });
163
+ });
164
+ });
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { generateRows } from '../tableContent';
19
+ jest.mock('../countContent', () => {
20
+ return {
21
+ countContent: () => 0
22
+ };
23
+ });
24
+ const editor = {};
25
+ describe('generateRows', () => {
26
+ it('creates the expected row structure', () => {
27
+ expect(generateRows(editor)).toEqual([{
28
+ label: 'Words',
29
+ documentCount: 0,
30
+ selectionCount: 0
31
+ }, {
32
+ label: 'Characters (no spaces)',
33
+ documentCount: 0,
34
+ selectionCount: 0
35
+ }, {
36
+ label: 'Characters',
37
+ documentCount: 0,
38
+ selectionCount: 0
39
+ }]);
40
+ });
41
+ });
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export const IGNORE_WORDCOUNT_ATTRIBUTE = 'data-ignore-wordcount';
19
+ export const countWords = node => {
20
+ if (node.getAttribute(IGNORE_WORDCOUNT_ATTRIBUTE) === 'chars-only') return 0;
21
+ const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
22
+ const trimmedTextContent = textContent.trim();
23
+ if (trimmedTextContent.length === 0) return 0;
24
+ return trimmedTextContent.split(/\s+/).length;
25
+ };
26
+ export const countCharsNoSpaces = node => {
27
+ const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
28
+ const matches = textContent.match(/ /g); // a single space
29
+
30
+ const spaces = matches ? matches.length : 0;
31
+ return countChars(node) - spaces;
32
+ };
33
+ export const countChars = node => {
34
+ const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
35
+ const iterator = textContent[Symbol.iterator]();
36
+ let count = 0;
37
+
38
+ while (!iterator.next().done) {
39
+ count++;
40
+ }
41
+
42
+ return count;
43
+ };
44
+ export const callbackForCategory = category => {
45
+ switch (category) {
46
+ case 'words':
47
+ return countWords;
48
+
49
+ case 'chars-no-spaces':
50
+ return countCharsNoSpaces;
51
+
52
+ case 'chars':
53
+ return countChars;
54
+ }
55
+ };
56
+ export const countShouldIgnore = (ed, scope, category) => {
57
+ if (scope === 'selection') return 0;
58
+ const nodesToCount = Array.from(ed.getBody().querySelectorAll(`[${IGNORE_WORDCOUNT_ATTRIBUTE}]`));
59
+ const callback = callbackForCategory(category);
60
+ return nodesToCount.reduce((total, node) => total + callback(node), 0);
61
+ };
62
+ export const getTinymceCount = (ed, scope, category) => {
63
+ const wc = ed.plugins.wordcount[scope];
64
+
65
+ switch (category) {
66
+ case 'words':
67
+ return wc.getWordCount();
68
+
69
+ case 'chars-no-spaces':
70
+ return wc.getCharacterCountWithoutSpaces();
71
+
72
+ case 'chars':
73
+ return wc.getCharacterCount();
74
+ }
75
+ };
76
+ export const countContent = (ed, scope, category) => {
77
+ return getTinymceCount(ed, scope, category) - countShouldIgnore(ed, scope, category);
78
+ };
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (C) 2022 - present Instructure, Inc.
3
+ *
4
+ * This file is part of Canvas.
5
+ *
6
+ * Canvas is free software: you can redistribute it and/or modify it under
7
+ * the terms of the GNU Affero General Public License as published by the Free
8
+ * Software Foundation, version 3 of the License.
9
+ *
10
+ * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ * details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License along
16
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { countContent } from './countContent';
19
+ import formatMessage from '../../../../format-message';
20
+ export const HEADERS = [{
21
+ id: 'count',
22
+ label: "Count"
23
+ }, {
24
+ id: 'document',
25
+ label: "Dokument"
26
+ }, {
27
+ id: 'selection',
28
+ label: "Selection"
29
+ }];
30
+ const ROW_LABELS = [['words', "Words"], ['chars-no-spaces', "Characters (no spaces)"], ['chars', "Characters"]];
31
+ export const generateRows = ed => {
32
+ return ROW_LABELS.map(_ref => {
33
+ let [category, label] = _ref;
34
+ return {
35
+ label,
36
+ documentCount: countContent(ed, 'body', category),
37
+ selectionCount: countContent(ed, 'selection', category)
38
+ };
39
+ });
40
+ };
@@ -48,6 +48,7 @@ import './plugins/instructure_documents/plugin';
48
48
  import './plugins/instructure_html_view/plugin';
49
49
  import './plugins/instructure_media_embed/plugin';
50
50
  import './plugins/instructure_icon_maker/plugin';
51
+ import './plugins/instructure_wordcount/plugin';
51
52
  import 'tinymce-a11y-checker'; // prevent tinymce from loading language scripts with explicit
52
53
  // language_url of 'none'
53
54
 
@@ -128,7 +128,7 @@ describe('enhanceUserContent()', () => {
128
128
  });
129
129
  describe('when the link has neither inline_disabled class or no_preview class', () => {
130
130
  it('has the file_preview_link class and the target attribute', () => {
131
- subject('<a class="instructure_file_link instructure_scribd_file" href="/courses/1/files/1" target="_blank">file</a>');
131
+ subject('<a id="alink" class="instructure_file_link instructure_scribd_file" href="/courses/1/files/1" target="_blank">file</a>');
132
132
  enhanceUserContent();
133
133
  const aTag = document.querySelector('a');
134
134
  expect(aTag.classList.contains('file_preview_link')).toBeTruthy();
@@ -136,6 +136,21 @@ describe('enhanceUserContent()', () => {
136
136
  });
137
137
  });
138
138
  });
139
+ describe('internal links target attribute', () => {
140
+ it('is set to the provided options', () => {
141
+ // which is the case for img file links
142
+ subject(`<a id="blank_target" title="Link" href="/courses/1/files/79?wrap=1" target="_blank">some file</a>
143
+ <a id="no_target" title="Link" href="/courses/1/files/79?wrap=1">a file</a>
144
+ <a id="a_target" title="Link" href="/courses/1/files/79?wrap=1" target="a_target">another file</a>`);
145
+ enhanceUserContent(document, {
146
+ canvasOrigin: 'https://canvas.here',
147
+ canvasLinksTarget: 'open_here'
148
+ });
149
+ expect(document.getElementById('blank_target').getAttribute('target')).toEqual('open_here');
150
+ expect(document.getElementById('no_target').getAttribute('target')).toEqual('open_here');
151
+ expect(document.getElementById('a_target').getAttribute('target')).toEqual('a_target');
152
+ });
153
+ });
139
154
  describe('external links', () => {
140
155
  it('adds the exernal link icon', () => {
141
156
  subject('<a href="https://instructure.com/">external link</a>');