@instructure/canvas-rce 5.13.2 → 5.13.6

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 (130) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/es/bridge/Bridge.js +0 -4
  3. package/es/defaultTinymceConfig.js +3 -3
  4. package/es/enhance-user-content/enhance_user_content.js +31 -3
  5. package/es/index.js +2 -0
  6. package/es/rce/RCE.js +3 -1
  7. package/es/rce/RCEVariants.js +121 -0
  8. package/es/rce/RCEWrapper.js +96 -47
  9. package/es/rce/RCEWrapperProps.js +5 -2
  10. package/es/rce/StatusBar.js +67 -17
  11. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Footer.js +1 -0
  12. package/es/rce/plugins/instructure_icon_maker/components/IconMakerTray.js +6 -1
  13. package/es/rce/plugins/instructure_rce_external_tools/RceToolWrapper.js +9 -9
  14. package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialog.js +25 -3
  15. package/es/rce/plugins/instructure_rce_external_tools/plugin.js +4 -1
  16. package/es/rce/plugins/shared/CanvasContentTray.js +6 -158
  17. package/es/rce/plugins/shared/ContentSelection.js +1 -1
  18. package/es/rce/plugins/shared/Filter.js +0 -17
  19. package/es/rce/plugins/shared/FixedContentTray.js +7 -4
  20. package/es/rce/plugins/shared/ImageOptionsForm.js +3 -2
  21. package/es/rce/plugins/shared/Upload/CanvasContentPanel.js +160 -0
  22. package/es/rce/plugins/shared/Upload/ComputerPanel.js +1 -0
  23. package/es/rce/plugins/shared/Upload/PanelFilter.js +144 -0
  24. package/es/rce/plugins/shared/Upload/UploadFile.js +10 -2
  25. package/es/rce/plugins/shared/Upload/UploadFileModal.js +47 -11
  26. package/es/rce/plugins/shared/Upload/UsageRightsSelectBox.js +20 -20
  27. package/es/rce/plugins/shared/Upload/index.js +19 -0
  28. package/es/rce/plugins/shared/ai_tools/AIResponseModal.js +70 -0
  29. package/es/rce/plugins/shared/ai_tools/AIToolsTray.js +510 -0
  30. package/es/rce/plugins/shared/ai_tools/aiicons.js +59 -0
  31. package/es/rce/plugins/shared/ai_tools/index.js +20 -0
  32. package/es/rce/plugins/shared/canvasContentUtils.js +190 -0
  33. package/es/rce/plugins/shared/do-fetch-api-effect/defaultFetchOptions.js +31 -0
  34. package/es/rce/plugins/shared/do-fetch-api-effect/doFetchApi.js +85 -0
  35. package/es/rce/plugins/shared/do-fetch-api-effect/get-cookie.js +29 -0
  36. package/es/rce/plugins/shared/do-fetch-api-effect/index.js +22 -0
  37. package/es/rce/plugins/shared/do-fetch-api-effect/parse-link-header.js +116 -0
  38. package/es/rce/plugins/shared/do-fetch-api-effect/query-string-encoding.js +51 -0
  39. package/es/rce/plugins/shared/useFilterSettings.js +35 -0
  40. package/es/sidebar/actions/upload.js +5 -2
  41. package/es/translations/locales/ar.js +64 -1
  42. package/es/translations/locales/ca.js +65 -2
  43. package/es/translations/locales/cy.js +64 -1
  44. package/es/translations/locales/da-x-k12.js +65 -2
  45. package/es/translations/locales/da.js +65 -2
  46. package/es/translations/locales/de.js +65 -2
  47. package/es/translations/locales/el.js +9 -0
  48. package/es/translations/locales/en-AU-x-unimelb.js +65 -2
  49. package/es/translations/locales/en-GB-x-ukhe.js +65 -2
  50. package/es/translations/locales/en.js +65 -2
  51. package/es/translations/locales/en_AU.js +65 -2
  52. package/es/translations/locales/en_CA.js +65 -2
  53. package/es/translations/locales/en_CY.js +65 -2
  54. package/es/translations/locales/en_GB.js +65 -2
  55. package/es/translations/locales/es.js +64 -1
  56. package/es/translations/locales/es_ES.js +64 -1
  57. package/es/translations/locales/fa_IR.js +9 -0
  58. package/es/translations/locales/fi.js +64 -1
  59. package/es/translations/locales/fr.js +65 -2
  60. package/es/translations/locales/fr_CA.js +65 -2
  61. package/es/translations/locales/ga.js +62 -2
  62. package/es/translations/locales/he.js +9 -0
  63. package/es/translations/locales/hi.js +119 -2
  64. package/es/translations/locales/ht.js +65 -2
  65. package/es/translations/locales/hu.js +15 -3
  66. package/es/translations/locales/hy.js +9 -0
  67. package/es/translations/locales/id.js +65 -2
  68. package/es/translations/locales/is.js +65 -2
  69. package/es/translations/locales/it.js +65 -2
  70. package/es/translations/locales/ja.js +65 -2
  71. package/es/translations/locales/ko.js +3 -0
  72. package/es/translations/locales/mi.js +65 -2
  73. package/es/translations/locales/ms.js +64 -1
  74. package/es/translations/locales/nb-x-k12.js +65 -2
  75. package/es/translations/locales/nb.js +65 -2
  76. package/es/translations/locales/nl.js +65 -2
  77. package/es/translations/locales/nn.js +15 -3
  78. package/es/translations/locales/pl.js +64 -1
  79. package/es/translations/locales/pt.js +64 -1
  80. package/es/translations/locales/pt_BR.js +65 -2
  81. package/es/translations/locales/ru.js +64 -1
  82. package/es/translations/locales/sl.js +65 -2
  83. package/es/translations/locales/sv-x-k12.js +65 -2
  84. package/es/translations/locales/sv.js +65 -2
  85. package/es/translations/locales/th.js +64 -1
  86. package/es/translations/locales/tr.js +9 -0
  87. package/es/translations/locales/uk_UA.js +9 -0
  88. package/es/translations/locales/vi.js +64 -1
  89. package/es/translations/locales/zh-Hans.js +64 -1
  90. package/es/translations/locales/zh-Hant.js +65 -2
  91. package/es/translations/locales/zh.js +64 -1
  92. package/es/translations/locales/zh_HK.js +65 -2
  93. package/es/translations/tinymce/ar_SA.js +4 -0
  94. package/es/translations/tinymce/bg_BG.js +4 -0
  95. package/es/translations/tinymce/ca.js +4 -0
  96. package/es/translations/tinymce/cs.js +4 -0
  97. package/es/translations/tinymce/cy.js +4 -0
  98. package/es/translations/tinymce/da.js +4 -0
  99. package/es/translations/tinymce/de.js +4 -0
  100. package/es/translations/tinymce/el.js +4 -0
  101. package/es/translations/tinymce/es.js +4 -0
  102. package/es/translations/tinymce/fa_IR.js +4 -0
  103. package/es/translations/tinymce/fr_FR.js +4 -0
  104. package/es/translations/tinymce/ga.js +4 -0
  105. package/es/translations/tinymce/he_IL.js +4 -0
  106. package/es/translations/tinymce/hu_HU.js +4 -0
  107. package/es/translations/tinymce/hy.js +4 -0
  108. package/es/translations/tinymce/id.js +4 -0
  109. package/es/translations/tinymce/it.js +4 -0
  110. package/es/translations/tinymce/ja.js +4 -0
  111. package/es/translations/tinymce/ko_KR.js +4 -0
  112. package/es/translations/tinymce/nb_NO.js +4 -0
  113. package/es/translations/tinymce/nl.js +4 -0
  114. package/es/translations/tinymce/pl.js +4 -0
  115. package/es/translations/tinymce/pt_BR.js +4 -0
  116. package/es/translations/tinymce/pt_PT.js +4 -0
  117. package/es/translations/tinymce/ro.js +4 -0
  118. package/es/translations/tinymce/ru.js +4 -0
  119. package/es/translations/tinymce/ru_RU.js +5 -1
  120. package/es/translations/tinymce/sl.js +4 -0
  121. package/es/translations/tinymce/sr.js +4 -0
  122. package/es/translations/tinymce/sv_SE.js +4 -0
  123. package/es/translations/tinymce/th.js +5 -1
  124. package/es/translations/tinymce/tr_TR.js +4 -0
  125. package/es/translations/tinymce/uk_UA.js +4 -0
  126. package/es/translations/tinymce/vi_VN.js +4 -0
  127. package/es/translations/tinymce/zh_CN.js +4 -0
  128. package/es/translations/tinymce/zh_TW.js +4 -0
  129. package/jest/jest-setup.js +1 -0
  130. package/package.json +1 -1
@@ -212,6 +212,10 @@ tinymce.addI18n('pl', {
212
212
  'Insert column before': 'Wstaw kolumn\u0119 przed',
213
213
  'Insert column after': 'Wstaw kolumn\u0119 po',
214
214
  'Delete column': 'Usu\u0144 kolumn\u0119',
215
+ 'Cut column': 'Wytnij kolumn\u0119',
216
+ 'Copy column': 'Kopiuj kolumn\u0119',
217
+ 'Paste column before': 'Wklej kolumn\u0119 przed',
218
+ 'Paste column after': 'Wklej kolumn\u0119 po',
215
219
  Cols: 'Kol.',
216
220
  Rows: 'Wiersz.',
217
221
  Width: 'Szeroko\u015b\u0107',
@@ -212,6 +212,10 @@ tinymce.addI18n('pt_BR', {
212
212
  'Insert column before': 'Inserir coluna antes',
213
213
  'Insert column after': 'Inserir coluna depois',
214
214
  'Delete column': 'Excluir coluna',
215
+ 'Cut column': 'Cortar coluna',
216
+ 'Copy column': 'Copiar coluna',
217
+ 'Paste column before': 'Colar coluna antes',
218
+ 'Paste column after': 'Colar coluna depois',
215
219
  Cols: 'Colunas',
216
220
  Rows: 'Linhas',
217
221
  Width: 'Largura',
@@ -212,6 +212,10 @@ tinymce.addI18n('pt_PT', {
212
212
  'Insert column before': 'Inserir coluna antes',
213
213
  'Insert column after': 'Inserir coluna depois',
214
214
  'Delete column': 'Eliminar coluna',
215
+ 'Cut column': 'Cortar coluna',
216
+ 'Copy column': 'Copiar coluna',
217
+ 'Paste column before': 'Colar coluna antes',
218
+ 'Paste column after': 'Colar coluna depois',
215
219
  Cols: 'Colunas',
216
220
  Rows: 'Linhas',
217
221
  Width: 'Largura',
@@ -212,6 +212,10 @@ tinymce.addI18n('ro', {
212
212
  'Insert column before': 'Insereaza \u00eenainte de coloan\u0103',
213
213
  'Insert column after': 'Insereaza dup\u0103 coloan\u0103',
214
214
  'Delete column': '\u0218terge coloana',
215
+ 'Cut column': 'Taie coloan\u0103',
216
+ 'Copy column': 'Copiaz\u0103 coloan\u0103',
217
+ 'Paste column before': 'Lipe\u0219te coloana \u00eenainte',
218
+ 'Paste column after': 'Lipe\u0219te coloana dup\u0103',
215
219
  Cols: 'Coloane',
216
220
  Rows: 'Linii',
217
221
  Width: 'L\u0103\u0163ime',
@@ -229,6 +229,10 @@ tinymce.addI18n('ru', {
229
229
  "Insert column before": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430",
230
230
  "Insert column after": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430",
231
231
  "Delete column": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",
232
+ "Cut column": "\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",
233
+ "Copy column": "\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",
234
+ "Paste column before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0434\u043e",
235
+ "Paste column after": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043f\u043e\u0441\u043b\u0435",
232
236
  "Cols": "\u0421\u0442\u043e\u043b\u0431\u0446\u044b",
233
237
  "Rows": "\u0421\u0442\u0440\u043e\u043a\u0438",
234
238
  "Width": "\u0428\u0438\u0440\u0438\u043d\u0430",
@@ -67,5 +67,9 @@ tinymce.addI18n('ru_RU', {
67
67
  Inline: 'Inline',
68
68
  Copy: '\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c',
69
69
  'Align left': '\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430',
70
- 'Visual aids': '\u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b'
70
+ 'Visual aids': '\u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b',
71
+ 'Cut column': '\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446',
72
+ 'Copy column': '\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446',
73
+ 'Paste column before': '\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0434\u043e',
74
+ 'Paste column after': '\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043f\u043e\u0441\u043b\u0435'
71
75
  });
@@ -237,6 +237,10 @@ tinymce.addI18n('sl', {
237
237
  "Insert column before": "Vstavi stolpec pred",
238
238
  "Insert column after": "Vstavi stolpec za",
239
239
  "Delete column": "Izbri\u0161i stolpec",
240
+ "Cut column": "Izre\u017ei stolpec",
241
+ "Copy column": "Kopiraj stolpec",
242
+ "Paste column before": "Prilepi stolpec pred",
243
+ "Paste column after": "Prilepi stolpec po",
240
244
  "Cols": "Stolpci",
241
245
  "Rows": "Vrstice",
242
246
  "Width": "\u0160irina",
@@ -227,6 +227,10 @@ tinymce.addI18n('sr', {
227
227
  'Insert column before': 'Ubaci kolonu pre',
228
228
  'Insert column after': 'Ubaci kolonu posle',
229
229
  'Delete column': 'Obri\u0161i kolonu',
230
+ 'Cut column': 'Iseci kolonu',
231
+ 'Copy column': 'Kopiraj kolonu',
232
+ 'Paste column before': 'Nalepi kolonu pre',
233
+ 'Paste column after': 'Nalepi kolonu posle',
230
234
  Cols: 'Kolone',
231
235
  Rows: 'Redovi',
232
236
  Width: '\u0160irina',
@@ -212,6 +212,10 @@ tinymce.addI18n('sv_SE', {
212
212
  'Insert column before': 'Infoga kolumn f\u00f6re',
213
213
  'Insert column after': 'Infoga kolumn efter',
214
214
  'Delete column': 'Radera kolumn',
215
+ 'Cut column': 'Klipp ut kolumn',
216
+ 'Copy column': 'Kopiera kolumn',
217
+ 'Paste column before': 'Klistra in kolumn före',
218
+ 'Paste column after': 'Klistra in kolumn efter',
215
219
  Cols: 'Kolumner',
216
220
  Rows: 'Rader',
217
221
  Width: 'Bredd',
@@ -475,5 +475,9 @@ tinymce.addI18n('th', {
475
475
  "Prev": "\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",
476
476
  "Find and replace": "\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e41\u0e25\u0e30\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48",
477
477
  "Whole words": "\u0e17\u0e31\u0e49\u0e07\u0e04\u0e33",
478
- "Insert template": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e21\u0e48\u0e41\u0e1a\u0e1a"
478
+ "Insert template": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e21\u0e48\u0e41\u0e1a\u0e1a",
479
+ "Cut column": "\u0e15\u0e31\u0e14\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c",
480
+ "Copy column": "\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c",
481
+ "Paste column before": "\u0e27\u0e32\u0e07\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",
482
+ "Paste column after": "\u0e27\u0e32\u0e07\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"
479
483
  });
@@ -212,6 +212,10 @@ tinymce.addI18n('tr_TR', {
212
212
  'Insert column before': '\u00d6ncesine yeni s\u00fctun ekle',
213
213
  'Insert column after': 'Sonras\u0131na yeni s\u00fctun ekle',
214
214
  'Delete column': 'S\u00fctunu sil',
215
+ 'Cut column': 'S\u00fctunu kes',
216
+ 'Copy column': 'S\u00fctunu kopyala',
217
+ 'Paste column before': 'S\u00fctunu \u00f6ncesine yap\u0131\u015ft\u0131r',
218
+ 'Paste column after': 'S\u00fctunu sonras\u0131na yap\u0131\u015ft\u0131r',
215
219
  Cols: 'S\u00fctunlar',
216
220
  Rows: 'Sat\u0131rlar',
217
221
  Width: 'Geni\u015flik',
@@ -210,6 +210,10 @@ tinymce.addI18n('uk_UA', {
210
210
  'Insert table': '\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e',
211
211
  'Table properties': '\u0412\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u0456 \u0442\u0430\u0431\u043b\u0438\u0446\u0456',
212
212
  'Delete table': '\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e',
213
+ 'Cut column': '\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c',
214
+ 'Copy column': '\u0421\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c',
215
+ 'Paste column before': '\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u0434\u043e',
216
+ 'Paste column after': '\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043f\u0456\u0441\u043b\u044f',
213
217
  Cell: '\u041a\u043e\u043c\u0456\u0440\u043a\u0430',
214
218
  Row: '\u0420\u044f\u0434\u043e\u043a',
215
219
  Column: '\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c',
@@ -226,6 +226,10 @@ tinymce.addI18n('vi_VN', {
226
226
  'Insert column before': 'Th\u00eam c\u1ed9t b\u00ean tr\u00e1i',
227
227
  'Insert column after': 'Th\u00eam c\u1ed9t b\u00ean ph\u1ea3i',
228
228
  'Delete column': 'Xo\u00e1 c\u1ed9t',
229
+ 'Cut column': 'C\u1eaft c\u1ed9t',
230
+ 'Copy column': 'Sao ch\u00e9p c\u1ed9t',
231
+ 'Paste column before': 'D\u00e1n c\u1ed9t tr\u01b0\u1edbc',
232
+ 'Paste column after': 'D\u00e1n c\u1ed9t sau',
229
233
  Cols: 'C\u1ed9t',
230
234
  Rows: 'D\u00f2ng',
231
235
  Width: 'R\u1ed9ng',
@@ -212,6 +212,10 @@ tinymce.addI18n('zh_CN', {
212
212
  'Insert column before': '\u5728\u5de6\u4fa7\u63d2\u5165',
213
213
  'Insert column after': '\u5728\u53f3\u4fa7\u63d2\u5165',
214
214
  'Delete column': '\u5220\u9664\u5217',
215
+ 'Cut column': '\u526a\u5207\u680f',
216
+ 'Copy column': '\u590d\u5236\u680f',
217
+ 'Paste column before': '\u7c98\u8d34\u680f\u4e4b\u524d',
218
+ 'Paste column after': '\u7c98\u8d34\u680f\u4e4b\u540e',
215
219
  Cols: '\u5217',
216
220
  Rows: '\u884c',
217
221
  Width: '\u5bbd',
@@ -212,6 +212,10 @@ tinymce.addI18n('zh_TW', {
212
212
  'Insert column before': '\u63d2\u5165\u6b04\u4f4d\u5728...\u4e4b\u524d',
213
213
  'Insert column after': '\u63d2\u5165\u6b04\u4f4d\u5728...\u4e4b\u5f8c',
214
214
  'Delete column': '\u522a\u9664\u884c',
215
+ 'Cut column': '\u526a\u5207\u6b04',
216
+ 'Copy column': '\u8907\u88fd\u6b04',
217
+ 'Paste column before': '\u8cbc\u4e0a\u6b04\u4e4b\u524d',
218
+ 'Paste column after': '\u8cbc\u4e0a\u6b04\u4e4b\u5f8c',
215
219
  Cols: '\u6b04\u4f4d\u6bb5',
216
220
  Rows: '\u5217',
217
221
  Width: '\u5bec\u5ea6',
@@ -44,6 +44,7 @@ const ignoredErrors = [
44
44
  /failed updating video captions/,
45
45
  /You seem to have overlapping act\(\) calls/,
46
46
  /A theme registry has already been initialized/,
47
+ /Warning: Failed prop type: Invalid prop `color` of value `secondary` supplied to `CondensedButton`, expected one of \["primary","primary-inverse"\]./,
47
48
  ]
48
49
  const globalWarn = global.console.warn
49
50
  const ignoredWarnings = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/canvas-rce",
3
- "version": "5.13.2",
3
+ "version": "5.13.6",
4
4
  "description": "A component wrapping Canvas's usage of Tinymce",
5
5
  "main": "es/index.js",
6
6
  "owner": "LF",