@atlaskit/editor-presets 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +11 -0
  3. package/README.md +101 -0
  4. package/dist/cjs/confluence-full-page-base/index.js +320 -0
  5. package/dist/cjs/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +12 -0
  6. package/dist/cjs/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +31 -0
  7. package/dist/cjs/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +19 -0
  8. package/dist/cjs/confluence-full-page-base/pluginOptions/basePluginOptions.js +19 -0
  9. package/dist/cjs/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +28 -0
  10. package/dist/cjs/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +19 -0
  11. package/dist/cjs/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +13 -0
  12. package/dist/cjs/confluence-full-page-base/pluginOptions/cardPluginOptions.js +48 -0
  13. package/dist/cjs/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +12 -0
  14. package/dist/cjs/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +15 -0
  15. package/dist/cjs/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +16 -0
  16. package/dist/cjs/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +27 -0
  17. package/dist/cjs/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +13 -0
  18. package/dist/cjs/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +12 -0
  19. package/dist/cjs/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +22 -0
  20. package/dist/cjs/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +12 -0
  21. package/dist/cjs/confluence-full-page-base/pluginOptions/datePluginOptions.js +14 -0
  22. package/dist/cjs/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +12 -0
  23. package/dist/cjs/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +12 -0
  24. package/dist/cjs/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +13 -0
  25. package/dist/cjs/confluence-full-page-base/pluginOptions/expandPluginOptions.js +16 -0
  26. package/dist/cjs/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +18 -0
  27. package/dist/cjs/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +47 -0
  28. package/dist/cjs/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +16 -0
  29. package/dist/cjs/confluence-full-page-base/pluginOptions/gridPluginOptions.js +14 -0
  30. package/dist/cjs/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +16 -0
  31. package/dist/cjs/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +18 -0
  32. package/dist/cjs/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +20 -0
  33. package/dist/cjs/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +16 -0
  34. package/dist/cjs/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +14 -0
  35. package/dist/cjs/confluence-full-page-base/pluginOptions/loomPluginOptions.js +16 -0
  36. package/dist/cjs/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +18 -0
  37. package/dist/cjs/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +62 -0
  38. package/dist/cjs/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +19 -0
  39. package/dist/cjs/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +10 -0
  40. package/dist/cjs/confluence-full-page-base/pluginOptions/panelPluginOptions.js +16 -0
  41. package/dist/cjs/confluence-full-page-base/pluginOptions/pastePluginOptions.js +30 -0
  42. package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +66 -0
  43. package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +75 -0
  44. package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +12 -0
  45. package/dist/cjs/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +12 -0
  46. package/dist/cjs/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +21 -0
  47. package/dist/cjs/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +10 -0
  48. package/dist/cjs/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +15 -0
  49. package/dist/cjs/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +14 -0
  50. package/dist/cjs/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +16 -0
  51. package/dist/cjs/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +17 -0
  52. package/dist/cjs/confluence-full-page-base/pluginOptions/statusPluginOptions.js +15 -0
  53. package/dist/cjs/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +12 -0
  54. package/dist/cjs/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +40 -0
  55. package/dist/cjs/confluence-full-page-base/pluginOptions/tablePluginOptions.js +52 -0
  56. package/dist/cjs/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +20 -0
  57. package/dist/cjs/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +12 -0
  58. package/dist/cjs/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +14 -0
  59. package/dist/cjs/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +15 -0
  60. package/dist/cjs/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +12 -0
  61. package/dist/cjs/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +14 -0
  62. package/dist/cjs/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +14 -0
  63. package/dist/cjs/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +17 -0
  64. package/dist/cjs/confluence-full-page-base/types.js +5 -0
  65. package/dist/cjs/index.js +2 -0
  66. package/dist/es2019/confluence-full-page-base/index.js +316 -0
  67. package/dist/es2019/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +3 -0
  68. package/dist/es2019/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +26 -0
  69. package/dist/es2019/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +14 -0
  70. package/dist/es2019/confluence-full-page-base/pluginOptions/basePluginOptions.js +12 -0
  71. package/dist/es2019/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +23 -0
  72. package/dist/es2019/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +10 -0
  73. package/dist/es2019/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +8 -0
  74. package/dist/es2019/confluence-full-page-base/pluginOptions/cardPluginOptions.js +43 -0
  75. package/dist/es2019/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +7 -0
  76. package/dist/es2019/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +6 -0
  77. package/dist/es2019/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +7 -0
  78. package/dist/es2019/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +22 -0
  79. package/dist/es2019/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +8 -0
  80. package/dist/es2019/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +7 -0
  81. package/dist/es2019/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +17 -0
  82. package/dist/es2019/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +7 -0
  83. package/dist/es2019/confluence-full-page-base/pluginOptions/datePluginOptions.js +5 -0
  84. package/dist/es2019/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +7 -0
  85. package/dist/es2019/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +7 -0
  86. package/dist/es2019/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +8 -0
  87. package/dist/es2019/confluence-full-page-base/pluginOptions/expandPluginOptions.js +11 -0
  88. package/dist/es2019/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +13 -0
  89. package/dist/es2019/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +38 -0
  90. package/dist/es2019/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +7 -0
  91. package/dist/es2019/confluence-full-page-base/pluginOptions/gridPluginOptions.js +5 -0
  92. package/dist/es2019/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +12 -0
  93. package/dist/es2019/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +13 -0
  94. package/dist/es2019/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +15 -0
  95. package/dist/es2019/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +11 -0
  96. package/dist/es2019/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +9 -0
  97. package/dist/es2019/confluence-full-page-base/pluginOptions/loomPluginOptions.js +11 -0
  98. package/dist/es2019/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +11 -0
  99. package/dist/es2019/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +57 -0
  100. package/dist/es2019/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +14 -0
  101. package/dist/es2019/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +5 -0
  102. package/dist/es2019/confluence-full-page-base/pluginOptions/panelPluginOptions.js +7 -0
  103. package/dist/es2019/confluence-full-page-base/pluginOptions/pastePluginOptions.js +25 -0
  104. package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +59 -0
  105. package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +67 -0
  106. package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +3 -0
  107. package/dist/es2019/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +7 -0
  108. package/dist/es2019/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +14 -0
  109. package/dist/es2019/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +5 -0
  110. package/dist/es2019/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +10 -0
  111. package/dist/es2019/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +9 -0
  112. package/dist/es2019/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +11 -0
  113. package/dist/es2019/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +12 -0
  114. package/dist/es2019/confluence-full-page-base/pluginOptions/statusPluginOptions.js +6 -0
  115. package/dist/es2019/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +3 -0
  116. package/dist/es2019/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +37 -0
  117. package/dist/es2019/confluence-full-page-base/pluginOptions/tablePluginOptions.js +45 -0
  118. package/dist/es2019/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +15 -0
  119. package/dist/es2019/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +3 -0
  120. package/dist/es2019/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +5 -0
  121. package/dist/es2019/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +6 -0
  122. package/dist/es2019/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +7 -0
  123. package/dist/es2019/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +9 -0
  124. package/dist/es2019/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +5 -0
  125. package/dist/es2019/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +12 -0
  126. package/dist/es2019/confluence-full-page-base/types.js +1 -0
  127. package/dist/es2019/index.js +1 -0
  128. package/dist/esm/confluence-full-page-base/index.js +314 -0
  129. package/dist/esm/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +5 -0
  130. package/dist/esm/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +25 -0
  131. package/dist/esm/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +13 -0
  132. package/dist/esm/confluence-full-page-base/pluginOptions/basePluginOptions.js +13 -0
  133. package/dist/esm/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +22 -0
  134. package/dist/esm/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +12 -0
  135. package/dist/esm/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +7 -0
  136. package/dist/esm/confluence-full-page-base/pluginOptions/cardPluginOptions.js +42 -0
  137. package/dist/esm/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +6 -0
  138. package/dist/esm/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +8 -0
  139. package/dist/esm/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +9 -0
  140. package/dist/esm/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +21 -0
  141. package/dist/esm/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +7 -0
  142. package/dist/esm/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +6 -0
  143. package/dist/esm/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +16 -0
  144. package/dist/esm/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +6 -0
  145. package/dist/esm/confluence-full-page-base/pluginOptions/datePluginOptions.js +7 -0
  146. package/dist/esm/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +6 -0
  147. package/dist/esm/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +6 -0
  148. package/dist/esm/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +7 -0
  149. package/dist/esm/confluence-full-page-base/pluginOptions/expandPluginOptions.js +10 -0
  150. package/dist/esm/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +12 -0
  151. package/dist/esm/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +40 -0
  152. package/dist/esm/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +9 -0
  153. package/dist/esm/confluence-full-page-base/pluginOptions/gridPluginOptions.js +7 -0
  154. package/dist/esm/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +11 -0
  155. package/dist/esm/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +12 -0
  156. package/dist/esm/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +14 -0
  157. package/dist/esm/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +10 -0
  158. package/dist/esm/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +8 -0
  159. package/dist/esm/confluence-full-page-base/pluginOptions/loomPluginOptions.js +10 -0
  160. package/dist/esm/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +11 -0
  161. package/dist/esm/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +56 -0
  162. package/dist/esm/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +13 -0
  163. package/dist/esm/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +4 -0
  164. package/dist/esm/confluence-full-page-base/pluginOptions/panelPluginOptions.js +9 -0
  165. package/dist/esm/confluence-full-page-base/pluginOptions/pastePluginOptions.js +24 -0
  166. package/dist/esm/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +59 -0
  167. package/dist/esm/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +69 -0
  168. package/dist/esm/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +5 -0
  169. package/dist/esm/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +6 -0
  170. package/dist/esm/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +14 -0
  171. package/dist/esm/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +4 -0
  172. package/dist/esm/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +9 -0
  173. package/dist/esm/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +8 -0
  174. package/dist/esm/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +10 -0
  175. package/dist/esm/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +11 -0
  176. package/dist/esm/confluence-full-page-base/pluginOptions/statusPluginOptions.js +8 -0
  177. package/dist/esm/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +5 -0
  178. package/dist/esm/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +34 -0
  179. package/dist/esm/confluence-full-page-base/pluginOptions/tablePluginOptions.js +46 -0
  180. package/dist/esm/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +14 -0
  181. package/dist/esm/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +5 -0
  182. package/dist/esm/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +7 -0
  183. package/dist/esm/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +8 -0
  184. package/dist/esm/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +6 -0
  185. package/dist/esm/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +8 -0
  186. package/dist/esm/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +7 -0
  187. package/dist/esm/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +11 -0
  188. package/dist/esm/confluence-full-page-base/types.js +1 -0
  189. package/dist/esm/index.js +1 -0
  190. package/dist/types/confluence-full-page-base/index.d.ts +16 -0
  191. package/dist/types/confluence-full-page-base/pluginOptions/analyticsPluginOptions.d.ts +6 -0
  192. package/dist/types/confluence-full-page-base/pluginOptions/annotationPluginOptions.d.ts +23 -0
  193. package/dist/types/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.d.ts +9 -0
  194. package/dist/types/confluence-full-page-base/pluginOptions/basePluginOptions.d.ts +8 -0
  195. package/dist/types/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.d.ts +24 -0
  196. package/dist/types/confluence-full-page-base/pluginOptions/blockTypePluginOptions.d.ts +6 -0
  197. package/dist/types/confluence-full-page-base/pluginOptions/breakoutPluginOptions.d.ts +9 -0
  198. package/dist/types/confluence-full-page-base/pluginOptions/cardPluginOptions.d.ts +34 -0
  199. package/dist/types/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.d.ts +9 -0
  200. package/dist/types/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.d.ts +6 -0
  201. package/dist/types/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.d.ts +6 -0
  202. package/dist/types/confluence-full-page-base/pluginOptions/collabEditPluginOptions.d.ts +13 -0
  203. package/dist/types/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.d.ts +9 -0
  204. package/dist/types/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.d.ts +10 -0
  205. package/dist/types/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.d.ts +8 -0
  206. package/dist/types/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.d.ts +10 -0
  207. package/dist/types/confluence-full-page-base/pluginOptions/datePluginOptions.d.ts +6 -0
  208. package/dist/types/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.d.ts +8 -0
  209. package/dist/types/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.d.ts +8 -0
  210. package/dist/types/confluence-full-page-base/pluginOptions/emojiPluginOptions.d.ts +11 -0
  211. package/dist/types/confluence-full-page-base/pluginOptions/expandPluginOptions.d.ts +10 -0
  212. package/dist/types/confluence-full-page-base/pluginOptions/extensionPluginOptions.d.ts +15 -0
  213. package/dist/types/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.d.ts +6 -0
  214. package/dist/types/confluence-full-page-base/pluginOptions/findReplacePluginOptions.d.ts +6 -0
  215. package/dist/types/confluence-full-page-base/pluginOptions/gridPluginOptions.d.ts +6 -0
  216. package/dist/types/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.d.ts +9 -0
  217. package/dist/types/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.d.ts +13 -0
  218. package/dist/types/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.d.ts +10 -0
  219. package/dist/types/confluence-full-page-base/pluginOptions/layoutPluginOptions.d.ts +9 -0
  220. package/dist/types/confluence-full-page-base/pluginOptions/limitedModePluginOptions.d.ts +15 -0
  221. package/dist/types/confluence-full-page-base/pluginOptions/loomPluginOptions.d.ts +8 -0
  222. package/dist/types/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.d.ts +7 -0
  223. package/dist/types/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.d.ts +19 -0
  224. package/dist/types/confluence-full-page-base/pluginOptions/mentionsPluginOptions.d.ts +15 -0
  225. package/dist/types/confluence-full-page-base/pluginOptions/metricsPluginOptions.d.ts +6 -0
  226. package/dist/types/confluence-full-page-base/pluginOptions/panelPluginOptions.d.ts +6 -0
  227. package/dist/types/confluence-full-page-base/pluginOptions/pastePluginOptions.d.ts +10 -0
  228. package/dist/types/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.d.ts +57 -0
  229. package/dist/types/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.d.ts +15 -0
  230. package/dist/types/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.d.ts +6 -0
  231. package/dist/types/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.d.ts +8 -0
  232. package/dist/types/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.d.ts +10 -0
  233. package/dist/types/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.d.ts +6 -0
  234. package/dist/types/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.d.ts +8 -0
  235. package/dist/types/confluence-full-page-base/pluginOptions/selectionPluginOptions.d.ts +8 -0
  236. package/dist/types/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.d.ts +13 -0
  237. package/dist/types/confluence-full-page-base/pluginOptions/showDiffPluginOptions.d.ts +6 -0
  238. package/dist/types/confluence-full-page-base/pluginOptions/statusPluginOptions.d.ts +6 -0
  239. package/dist/types/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.d.ts +6 -0
  240. package/dist/types/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.d.ts +44 -0
  241. package/dist/types/confluence-full-page-base/pluginOptions/tablePluginOptions.d.ts +10 -0
  242. package/dist/types/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.d.ts +14 -0
  243. package/dist/types/confluence-full-page-base/pluginOptions/textColorPluginOptions.d.ts +6 -0
  244. package/dist/types/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.d.ts +6 -0
  245. package/dist/types/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.d.ts +6 -0
  246. package/dist/types/confluence-full-page-base/pluginOptions/toolbarPluginOptions.d.ts +9 -0
  247. package/dist/types/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.d.ts +6 -0
  248. package/dist/types/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.d.ts +6 -0
  249. package/dist/types/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.d.ts +12 -0
  250. package/dist/types/confluence-full-page-base/types.d.ts +447 -0
  251. package/dist/types/index.d.ts +0 -0
  252. package/dist/types-ts4.5/confluence-full-page-base/index.d.ts +16 -0
  253. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/analyticsPluginOptions.d.ts +6 -0
  254. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/annotationPluginOptions.d.ts +23 -0
  255. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.d.ts +9 -0
  256. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/basePluginOptions.d.ts +8 -0
  257. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.d.ts +24 -0
  258. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/blockTypePluginOptions.d.ts +6 -0
  259. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/breakoutPluginOptions.d.ts +9 -0
  260. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/cardPluginOptions.d.ts +34 -0
  261. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.d.ts +9 -0
  262. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.d.ts +6 -0
  263. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.d.ts +6 -0
  264. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/collabEditPluginOptions.d.ts +13 -0
  265. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.d.ts +9 -0
  266. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.d.ts +10 -0
  267. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.d.ts +8 -0
  268. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.d.ts +10 -0
  269. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/datePluginOptions.d.ts +6 -0
  270. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.d.ts +8 -0
  271. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.d.ts +8 -0
  272. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/emojiPluginOptions.d.ts +11 -0
  273. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/expandPluginOptions.d.ts +10 -0
  274. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/extensionPluginOptions.d.ts +15 -0
  275. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.d.ts +6 -0
  276. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/findReplacePluginOptions.d.ts +6 -0
  277. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/gridPluginOptions.d.ts +6 -0
  278. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.d.ts +9 -0
  279. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.d.ts +13 -0
  280. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.d.ts +10 -0
  281. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/layoutPluginOptions.d.ts +9 -0
  282. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/limitedModePluginOptions.d.ts +15 -0
  283. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/loomPluginOptions.d.ts +8 -0
  284. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.d.ts +7 -0
  285. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.d.ts +19 -0
  286. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mentionsPluginOptions.d.ts +15 -0
  287. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/metricsPluginOptions.d.ts +6 -0
  288. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/panelPluginOptions.d.ts +6 -0
  289. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/pastePluginOptions.d.ts +10 -0
  290. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.d.ts +57 -0
  291. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.d.ts +15 -0
  292. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.d.ts +6 -0
  293. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.d.ts +8 -0
  294. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.d.ts +10 -0
  295. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.d.ts +6 -0
  296. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.d.ts +8 -0
  297. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionPluginOptions.d.ts +8 -0
  298. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.d.ts +13 -0
  299. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/showDiffPluginOptions.d.ts +6 -0
  300. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/statusPluginOptions.d.ts +6 -0
  301. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.d.ts +6 -0
  302. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.d.ts +44 -0
  303. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/tablePluginOptions.d.ts +10 -0
  304. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.d.ts +14 -0
  305. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/textColorPluginOptions.d.ts +6 -0
  306. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.d.ts +6 -0
  307. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.d.ts +6 -0
  308. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/toolbarPluginOptions.d.ts +9 -0
  309. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.d.ts +6 -0
  310. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.d.ts +6 -0
  311. package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.d.ts +12 -0
  312. package/dist/types-ts4.5/confluence-full-page-base/types.d.ts +453 -0
  313. package/dist/types-ts4.5/index.d.ts +0 -0
  314. package/full-page/package.json +15 -0
  315. package/full-page/types/package.json +15 -0
  316. package/package.json +199 -0
  317. package/tsconfig.json +8 -0
@@ -0,0 +1,38 @@
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
+ export function featureFlagsPluginOptions({}) {
3
+ /**
4
+ * @private
5
+ * @deprecated Don't add any new feature flags here!
6
+ * If you need a new feature flag, use:
7
+ * - {@link editorExperiment} for new experiments.
8
+ * - {@link fg} for new feature gates.
9
+ */
10
+ return {
11
+ // SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
12
+ /**
13
+ * This feature flag has completed rollout in Confluence and is to be cleaned up from LD
14
+ * but cannot yet be cleaned up from editor component as pending rollout in other products first
15
+ */
16
+ lpLinkPicker: true,
17
+ tableDragAndDrop: true,
18
+ tableWithFixedColumnWidthsOption: true,
19
+ // END SECTION
20
+
21
+ // SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
22
+ tableSelector: editorExperiment('platform_editor_tables_table_selector', true),
23
+ macroInteractionUpdates: true,
24
+ moreElementsInQuickInsertView: true,
25
+ // END SECTION
26
+
27
+ // SECTION: From confluence/next/packages/editor-presets/src/utils/createFeatureFlagsFromProps.ts
28
+ catchAllTracking: false,
29
+ showAvatarGroupAsPlugin: false,
30
+ errorBoundaryDocStructure: false,
31
+ synchronyErrorDocStructure: false,
32
+ enableViewUpdateSubscription: false,
33
+ collabAvatarScroll: false,
34
+ twoLineEditorToolbar: false,
35
+ disableSpellcheckByBrowser: undefined
36
+ // END SECTION
37
+ };
38
+ }
@@ -0,0 +1,7 @@
1
+ export function findReplacePluginOptions({}) {
2
+ return {
3
+ // originally depends on !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
4
+ takeFullWidth: true,
5
+ twoLineEditorToolbar: false
6
+ };
7
+ }
@@ -0,0 +1,5 @@
1
+ export function gridPluginOptions({}) {
2
+ return {
3
+ shouldCalcBreakoutGridLines: true
4
+ };
5
+ }
@@ -0,0 +1,12 @@
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
+
3
+ // Added aiEnabled to the options type to match the extended structure
4
+
5
+ export function helpDialogPluginOptions({
6
+ options
7
+ }) {
8
+ if (editorExperiment('platform_editor_ai_quickstart_command', true)) {
9
+ return options;
10
+ }
11
+ return false;
12
+ }
@@ -0,0 +1,13 @@
1
+ export function hyperlinkPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ editorAppearance: options.editorAppearance,
6
+ // SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
7
+ lpLinkPicker: true,
8
+ // END SECTION
9
+ linkPicker: options.linkPicker,
10
+ onClickCallback: options.onClickCallback,
11
+ platform: 'web'
12
+ };
13
+ }
@@ -0,0 +1,15 @@
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
+ export function insertBlockPluginOptions({
3
+ options
4
+ }) {
5
+ return {
6
+ allowTables: true,
7
+ allowExpand: true,
8
+ horizontalRuleEnabled: true,
9
+ tableSelectorSupported: editorExperiment('platform_editor_tables_table_selector', true),
10
+ nativeStatusSupported: true,
11
+ showElementBrowserLink: true,
12
+ appearance: options.editorAppearance,
13
+ toolbarButtons: options.toolbarButtons
14
+ };
15
+ }
@@ -0,0 +1,11 @@
1
+ export function layoutPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ allowBreakout: true,
6
+ UNSAFE_addSidebarLayouts: true,
7
+ useLongPressSelection: false,
8
+ UNSAFE_allowSingleColumnLayout: undefined,
9
+ editorAppearance: options.editorAppearance
10
+ };
11
+ }
@@ -0,0 +1,9 @@
1
+ export function limitedModePluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ showFlag: options.showFlag,
6
+ contentId: options.contentId,
7
+ killSwitchEnabled: options.killSwitchEnabled
8
+ };
9
+ }
@@ -0,0 +1,11 @@
1
+ import { fg } from '@atlaskit/platform-feature-flags';
2
+ export function loomPluginOptions({
3
+ options
4
+ }) {
5
+ return {
6
+ // SECTION: From confluence/next/packages/loom-editor-utils/src/hooks/useLoomPluginOptions.tsx
7
+ renderButton: options.renderButton,
8
+ shouldShowToolbarButton: fg('confluence_frontend_content_wrapper') ? false : undefined
9
+ // END SECTION
10
+ };
11
+ }
@@ -0,0 +1,11 @@
1
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
2
+ import { defineMessages } from 'react-intl-next';
3
+ export const i18n = defineMessages({
4
+ invalidAltText: {
5
+ id: 'editor-presets-confluence.media.alt-text.invalid',
6
+ defaultMessage:
7
+ // eslint-disable-next-line no-restricted-syntax
8
+ "We aren’t able to accept every possible character in Alt text. All Unicode letters and numbers are OK, but these are the only acceptable symbols: , ' . - _ ( ).",
9
+ description: "Error message to explain that alt text for an image on a page can only contain any Unicode alphanumerics along with any characters from the following symbol set: , ' . - _ ( )"
10
+ }
11
+ });
@@ -0,0 +1,57 @@
1
+ import { i18n } from './i18n';
2
+ /** Builds media plugin options from Confluence editor preset configuration. */
3
+ export function mediaPluginOptions({
4
+ intl,
5
+ options,
6
+ providers
7
+ }) {
8
+ return {
9
+ // SECTION: From confluence/next/packages/editor-features/src/utils/mediaOptions.ts
10
+ provider: providers.mediaProvider,
11
+ syncProvider: providers.syncMediaProvider,
12
+ allowMediaSingle: true,
13
+ allowResizing: true,
14
+ allowResizingInTables: true,
15
+ allowLinking: true,
16
+ allowAltTextOnImages: true,
17
+ allowCaptions: true,
18
+ allowMediaInlineImages: true,
19
+ allowPixelResizing: true,
20
+ altTextValidator: text => {
21
+ // @ts-ignore - TS1501 Typescript 5.9.2 upgrade
22
+ const storageSupports = /^([\p{L}\p{N},'\.\s\-_\(\)]|&[0-9]{2};)*$/u;
23
+ if (!storageSupports.test(text)) {
24
+ return [intl.formatMessage(i18n.invalidAltText)];
25
+ }
26
+ return [];
27
+ },
28
+ // END SECTION
29
+ // SECTION: From confluence/next/packages/fabric-media-support/src/mediaFeatureFlags.ts
30
+ featureFlags: {
31
+ mediaInline: true
32
+ },
33
+ // END SECTION
34
+ // SECTION: From confluence/next/packages/editor-presets/src/full-page/createFullPageEditorPreset.ts
35
+ allowLazyLoading: true,
36
+ allowBreakoutSnapPoints: true,
37
+ allowAdvancedToolBarOptions: true,
38
+ // originally value was Boolean(options.annotationProviders),
39
+ allowCommentsOnMedia: true,
40
+ allowDropzoneDropLine: true,
41
+ allowMediaSingleEditable: true,
42
+ allowRemoteDimensionsFetch: true,
43
+ allowMarkingUploadsAsIncomplete: false,
44
+ allowImagePreview: true,
45
+ fullWidthEnabled: options.editorAppearance === 'full-width',
46
+ createCommentExperience: options.createCommentExperience,
47
+ editorAppearance: options.editorAppearance,
48
+ isCopyPasteEnabled: true,
49
+ alignLeftOnInsert: false,
50
+ allowImageEditing: true,
51
+ // END SECTION
52
+ // SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx
53
+ waitForMediaUpload: true,
54
+ // END SECTION
55
+ mediaViewerExtensions: options.mediaViewerExtensions
56
+ };
57
+ }
@@ -0,0 +1,14 @@
1
+ export function mentionsPluginOptions({
2
+ options,
3
+ providers
4
+ }) {
5
+ return {
6
+ sanitizePrivateContent: true,
7
+ insertDisplayName: true,
8
+ allowZeroWidthSpaceAfter: true,
9
+ profilecardProvider: providers.profilecardProvider,
10
+ handleMentionsChanged: options.handleMentionsChanged,
11
+ mentionProvider: providers.mentionProvider,
12
+ currentUserId: options.currentUserId
13
+ };
14
+ }
@@ -0,0 +1,5 @@
1
+ export function metricsPluginOptions({
2
+ options
3
+ }) {
4
+ return options;
5
+ }
@@ -0,0 +1,7 @@
1
+ export function panelPluginOptions({}) {
2
+ return {
3
+ useLongPressSelection: false,
4
+ allowCustomPanel: true,
5
+ allowCustomPanelEdit: true
6
+ };
7
+ }
@@ -0,0 +1,25 @@
1
+ // SECTION: From confluence/next/packages/editor-features/src/utils/smartCardOptions.ts
2
+ /**
3
+ * Supported Jira URLs and Jira Roadmap URLs, GDrive and ODFB will become Smart Links
4
+ * (only supports Cloud single-issue URLs right now)
5
+ */
6
+ const SMART_LINKS_BEFORE_MACROS = 'jira,jiraroadmap,google-drive-sheets,google-drive-docs,OneDrive,google-drive-slides'.split(',');
7
+ // END SECTION
8
+
9
+ export function pastePluginOptions({
10
+ providers
11
+ }) {
12
+ return {
13
+ cardOptions: {
14
+ provider: providers.cardProvider,
15
+ // SECTION: From confluence/next/packages/editor-features/src/utils/smartCardOptions.ts
16
+ allowBlockCards: true,
17
+ allowDatasource: true,
18
+ allowEmbeds: true,
19
+ resolveBeforeMacros: SMART_LINKS_BEFORE_MACROS
20
+ // END SECTION
21
+ },
22
+ sanitizePrivateContent: true,
23
+ isFullPage: true
24
+ };
25
+ }
@@ -0,0 +1,59 @@
1
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
2
+ import { defineMessages } from 'react-intl-next';
3
+ export const i18n = defineMessages({
4
+ easyMentionsPlaceholder: {
5
+ id: 'editor-presets-confluence.placeholder.easy-mentions-placeholder',
6
+ defaultMessage: 'Type / for all elements or @ to mention someone.',
7
+ description: 'The placeholder for the editor to help discover the slash and mention commands'
8
+ },
9
+ aiPlaceholder: {
10
+ id: 'editor-presets-confluence.placeholder.ai-placeholder',
11
+ defaultMessage: "Type /ai for Atlassian Intelligence, / to add elements, or @ to mention someone (we'll let them know).",
12
+ description: 'The placeholder for the editor to help discover our text generative AI, Atlassian Intelligence.'
13
+ },
14
+ defaultPlaceholder: {
15
+ id: 'editor-presets-confluence.placeholder.default-placeholder',
16
+ defaultMessage: 'Type / to insert elements',
17
+ description: 'The placeholder shown in empty document to help discover slash command'
18
+ },
19
+ editorEmptyDocumentPlaceholderAI: {
20
+ id: 'editor-presets-confluence.placeholder.default-placeholder-ai',
21
+ defaultMessage: "Use {key}+' to ask AI, or type / to insert elements",
22
+ description: 'The placeholder shown in empty document to help discover ai and slash command'
23
+ },
24
+ editorEmptyDocumentSpaceShortcutPlaceholder: {
25
+ id: 'editor-presets-confluence.placeholder.space-shortcut-placeholder',
26
+ defaultMessage: 'Press space to Ask Rovo or / to insert elements',
27
+ description: 'The placeholder shown in empty document to help discover space shortcut to trigger Rovo, and slash shortcut to insert elements'
28
+ },
29
+ editorEmptyDocumentSpaceShortcutPlaceholderADFPrefix: {
30
+ id: 'editor-presets-confluence.placeholder.space-shortcut-adf-prefix',
31
+ defaultMessage: 'Press',
32
+ description: 'Text before keyboard shortcut in space shortcut ADF placeholder'
33
+ },
34
+ editorEmptyDocumentSpaceShortcutPlaceholderADFSpaceShortcut: {
35
+ id: 'editor-presets-confluence.placeholder.space-shortcut-adf-space-key',
36
+ defaultMessage: 'space',
37
+ description: 'Space key shortcut for triggering Rovo in ADF placeholder'
38
+ },
39
+ editorEmptyDocumentSpaceShortcutPlaceholderADFMiddle: {
40
+ id: 'editor-presets-confluence.placeholder.space-shortcut-adf-middle',
41
+ defaultMessage: 'to Ask Rovo or',
42
+ description: 'Text between space and slash shortcuts in ADF placeholder'
43
+ },
44
+ editorEmptyDocumentSpaceShortcutPlaceholderADFSlashShortcut: {
45
+ id: 'editor-presets-confluence.placeholder.space-shortcut-adf-slash-key',
46
+ defaultMessage: '/',
47
+ description: 'Slash key shortcut for inserting elements in space shortcut ADF placeholder'
48
+ },
49
+ editorEmptyDocumentSpaceShortcutPlaceholderADFSuffix: {
50
+ id: 'editor-presets-confluence.placeholder.space-shortcut-adf-suffix',
51
+ defaultMessage: 'to insert elements',
52
+ description: 'Text after slash shortcut in space shortcut ADF placeholder'
53
+ },
54
+ placeholderADF: {
55
+ id: 'editor-presets-confluence.placeholderADF',
56
+ defaultMessage: 'Press <code>space</code> to Ask Rovo or <code>/</code> to insert elements',
57
+ description: 'The ADF placeholder for the editor which contains formatting.'
58
+ }
59
+ });
@@ -0,0 +1,67 @@
1
+ import { code, text } from '@atlaskit/adf-utils/builders';
2
+ import { createADFFromHTML } from '@atlaskit/editor-common/utils/create-adf-from-html';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
+ import { i18n } from './i18n';
7
+ const createSpaceShortcutPlaceholderADF = ({
8
+ formatMessage
9
+ }) => ({
10
+ version: 1,
11
+ type: 'doc',
12
+ content: [{
13
+ type: 'paragraph',
14
+ content: [text(formatMessage(i18n.editorEmptyDocumentSpaceShortcutPlaceholderADFPrefix)), text(' '), code(formatMessage(i18n.editorEmptyDocumentSpaceShortcutPlaceholderADFSpaceShortcut)), text(' '), text(formatMessage(i18n.editorEmptyDocumentSpaceShortcutPlaceholderADFMiddle)), text(' '), code(formatMessage(i18n.editorEmptyDocumentSpaceShortcutPlaceholderADFSlashShortcut)), text(' '), text(formatMessage(i18n.editorEmptyDocumentSpaceShortcutPlaceholderADFSuffix))]
15
+ }]
16
+ });
17
+ export function placeholderPluginOptions({
18
+ intl,
19
+ options
20
+ }) {
21
+ var _options$enableLoadin;
22
+ const shouldShowSpaceShortcut = options.isAIEnabled && fg('platform_editor_ai_aifc_streaming');
23
+ const placeholder = (() => {
24
+ // SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `const placeholderText = `
25
+ if (options.viewMode === 'view') {
26
+ return undefined;
27
+ }
28
+ // END SECTION
29
+
30
+ // We disable the placeholder here becuase we want to use the new ADF placeholder, see below.
31
+ if (shouldShowSpaceShortcut) {
32
+ return undefined;
33
+ }
34
+
35
+ // SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `_getPlaceholderText()`
36
+ if (!options.isAIEnabled && editorExperiment('platform_editor_ai_quickstart_command', true)) {
37
+ return intl.formatMessage(i18n.editorEmptyDocumentPlaceholderAI);
38
+ }
39
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
40
+ return intl.formatMessage(i18n.defaultPlaceholder);
41
+ }
42
+ if (!options.isAIEnabled) {
43
+ return intl.formatMessage(i18n.aiPlaceholder);
44
+ }
45
+ return intl.formatMessage(i18n.easyMentionsPlaceholder);
46
+ // END SECTION
47
+ })();
48
+ const placeholderADF = (() => {
49
+ if (options.viewMode === 'view') {
50
+ return undefined;
51
+ }
52
+ if (shouldShowSpaceShortcut && fg('platform_editor_ai_aifc_space_shortcut')) {
53
+ return fg('platform_editor_ai_aifc_adf_placeholder') ? createADFFromHTML(intl.formatMessage(i18n.placeholderADF, {
54
+ code: parts => `<code>${parts}</code>`
55
+ })) : createSpaceShortcutPlaceholderADF(intl);
56
+ }
57
+ return undefined;
58
+ })();
59
+ return {
60
+ placeholder,
61
+ placeholderADF,
62
+ isPlaceholderHidden: options.isPlaceholderHidden,
63
+ withEmptyParagraph: fg('platform_editor_ai_aifc_streaming'),
64
+ isRovoLLMEnabled: options.isRovoLLMEnabled,
65
+ enableLoadingSpinner: (_options$enableLoadin = options.enableLoadingSpinner) !== null && _options$enableLoadin !== void 0 ? _options$enableLoadin : expValEquals('confluence_load_editor_title_on_transition', 'contentPlaceholder', true)
66
+ };
67
+ }
@@ -0,0 +1,3 @@
1
+ export function placeholderTextPluginOptions({}) {
2
+ return {};
3
+ }
@@ -0,0 +1,7 @@
1
+ export function primaryToolbarPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ contextualFormattingEnabled: options.contextualFormattingEnabled
6
+ };
7
+ }
@@ -0,0 +1,14 @@
1
+ export function quickInsertPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ enableElementBrowser: true,
6
+ elementBrowserHelpUrl: '',
7
+ // Value never set in full-page editor.
8
+ disableDefaultItems: false,
9
+ headless: false,
10
+ emptyStateHandler: options === null || options === void 0 ? void 0 : options.emptyStateHandler,
11
+ prioritySortingFn: typeof options.quickInsert === 'object' ? options.quickInsert.prioritySortingFn : undefined,
12
+ onInsert: typeof options.quickInsert === 'object' ? options.quickInsert.onInsert : undefined
13
+ };
14
+ }
@@ -0,0 +1,5 @@
1
+ export function selectionExtensionPluginOptions({
2
+ options
3
+ }) {
4
+ return options;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
+ export function selectionMarkerPluginOptions({
3
+ options
4
+ }) {
5
+ // SECTION: From confluence/next/packages/editor-presets/src/full-page/createFullPageEditorPreset.ts `.add(['selectionMarkerPlugin', ...])`
6
+ return {
7
+ hideCursorOnInit: options.__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)
8
+ };
9
+ // END SECTION
10
+ }
@@ -0,0 +1,9 @@
1
+ export function selectionPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ useLongPressSelection: false,
6
+ // @ts-ignore Temporary solution to check for Live Page editor.
7
+ __livePage: options.__livePage
8
+ };
9
+ }
@@ -0,0 +1,11 @@
1
+ export function selectionToolbarPluginOptions({
2
+ options,
3
+ providers
4
+ }) {
5
+ return {
6
+ preferenceToolbarAboveSelection: false,
7
+ contextualFormattingEnabled: options.contextualFormattingEnabled,
8
+ userPreferencesProvider: providers.userPreferencesProvider,
9
+ disablePin: options.disablePin
10
+ };
11
+ }
@@ -0,0 +1,12 @@
1
+ export function showDiffPluginOptions({
2
+ options
3
+ }) {
4
+ if (!(options !== null && options !== void 0 && options.originalDoc) || !(options !== null && options !== void 0 && options.steps)) {
5
+ return undefined;
6
+ }
7
+ return {
8
+ originalDoc: options.originalDoc,
9
+ steps: options.steps,
10
+ colorScheme: options.colorScheme
11
+ };
12
+ }
@@ -0,0 +1,6 @@
1
+ export function statusPluginOptions({}) {
2
+ return {
3
+ menuDisabled: false,
4
+ allowZeroWidthSpaceAfter: true
5
+ };
6
+ }
@@ -0,0 +1,3 @@
1
+ export function submitEditorPluginOptions({}) {
2
+ return undefined;
3
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Options for configuring the synced block plugin.
3
+ */
4
+
5
+ /**
6
+ * Props for configuring the synced block plugin options.
7
+ */
8
+
9
+ /**
10
+ * Creates configuration options for the synced block plugin.
11
+ *
12
+ * This function transforms the input options into the format expected by the
13
+ * synced block plugin, including the renderer function, data provider, and
14
+ * renderer data providers.
15
+ *
16
+ * @param props - The configuration props containing synced block options.
17
+ * @param props.options.syncBlockDataProvider - The function that returns the React component to render synced block reference (nested renderer).
18
+ * @param props.options.syncBlockDataProvider - The data provider responsible for fetching, writing, and managing synced block data.
19
+ * @returns The plugin options configured for the synced block plugin.
20
+ */
21
+ export function syncedBlockPluginOptions({
22
+ options
23
+ }) {
24
+ if (!options) {
25
+ return undefined;
26
+ }
27
+ const {
28
+ enableSourceCreation,
29
+ syncedBlockRenderer,
30
+ syncBlockDataProvider
31
+ } = options;
32
+ return {
33
+ enableSourceCreation,
34
+ syncedBlockRenderer,
35
+ syncBlockDataProvider
36
+ };
37
+ }
@@ -0,0 +1,45 @@
1
+ import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ export function tablePluginOptions({
4
+ options
5
+ }) {
6
+ return {
7
+ // value from next/packages/editor-features/src/hooks/useTableOptions.ts
8
+ tableOptions: {
9
+ allowTableResizing: true,
10
+ allowTableAlignment: true,
11
+ allowBackgroundColor: true,
12
+ allowColumnResizing: true,
13
+ allowColumnSorting: true,
14
+ allowDistributeColumns: true,
15
+ allowHeaderColumn: true,
16
+ allowHeaderRow: true,
17
+ allowMergeCells: true,
18
+ allowNumberColumn: true,
19
+ allowNestedTables: true,
20
+ allowControls: true,
21
+ stickyHeaders: true,
22
+ allowAddColumnWithCustomStep: false
23
+ },
24
+ // SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
25
+ dragAndDropEnabled: true,
26
+ // END SECTION
27
+ isTableScalingEnabled: true,
28
+ allowContextualMenu: true,
29
+ fullWidthEnabled: options.editorAppearance === 'full-width',
30
+ maxWidthEnabled: options.editorAppearance === 'max',
31
+ wasFullWidthEnabled: options.prevEditorAppearance && options.prevEditorAppearance === 'full-width',
32
+ getEditorFeatureFlags: () => ({
33
+ // SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
34
+ tableWithFixedColumnWidthsOption: fg('platform_editor_table_fixed_column_width_prop') ? undefined : true,
35
+ // END SECTION
36
+
37
+ // SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
38
+ tableSelector: editorExperiment('platform_editor_tables_table_selector', true)
39
+ // END SECTION
40
+ }),
41
+ isCommentEditor: false,
42
+ isChromelessEditor: false,
43
+ allowFixedColumnWidthOption: fg('platform_editor_table_fixed_column_width_prop') ? true : undefined
44
+ };
45
+ }
@@ -0,0 +1,15 @@
1
+ export function tasksAndDecisionsPluginOptions({
2
+ options,
3
+ providers
4
+ }) {
5
+ return {
6
+ allowNestedTasks: true,
7
+ consumeTabs: true,
8
+ useLongPressSelection: false,
9
+ taskDecisionProvider: providers.taskDecisionProvider,
10
+ hasEditPermission: options.hasEditPermission,
11
+ requestToEditContent: options.requestToEditContent,
12
+ hasRequestedEditPermission: options.hasRequestedEditPermission,
13
+ allowBlockTaskItem: true
14
+ };
15
+ }
@@ -0,0 +1,3 @@
1
+ export function textColorPluginOptions({}) {
2
+ return true;
3
+ }
@@ -0,0 +1,5 @@
1
+ export function textFormattingPluginOptions({}) {
2
+ return {
3
+ responsiveToolbarMenu: true
4
+ };
5
+ }
@@ -0,0 +1,6 @@
1
+ export function toolbarListsIndentationPluginOptions({}) {
2
+ return {
3
+ showIndentationButtons: true,
4
+ allowHeadingAndParagraphIndentation: true
5
+ };
6
+ }
@@ -0,0 +1,7 @@
1
+ export function toolbarPluginOptions({
2
+ options
3
+ }) {
4
+ return {
5
+ contextualFormattingEnabled: options.contextualFormattingEnabled
6
+ };
7
+ }
@@ -0,0 +1,9 @@
1
+ // eslint-disable-next-line jsdoc/require-jsdoc
2
+ export function trackChangesPluginOptions({
3
+ options
4
+ }) {
5
+ return {
6
+ ButtonWrapper: options === null || options === void 0 ? void 0 : options.ButtonWrapper,
7
+ showOnToolbar: true
8
+ };
9
+ }
@@ -0,0 +1,5 @@
1
+ export function typeAheadPluginOptions({}) {
2
+ return {
3
+ isMobile: false
4
+ };
5
+ }
@@ -0,0 +1,12 @@
1
+ export function userPreferencesPluginOptions({
2
+ providers,
3
+ options
4
+ }) {
5
+ return {
6
+ userPreferencesProvider: providers.userPreferencesProviderNext,
7
+ // If initialToolbarDockingPosition is set, use it to override any saved user preference
8
+ initialUserPreferences: options.initialToolbarDockingPosition ? {
9
+ toolbarDockingPosition: options.initialToolbarDockingPosition
10
+ } : undefined
11
+ };
12
+ }
@@ -0,0 +1 @@
1
+ export {};