@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.
- package/CHANGELOG.md +8 -0
- package/LICENSE.md +11 -0
- package/README.md +101 -0
- package/dist/cjs/confluence-full-page-base/index.js +320 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +31 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +19 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/basePluginOptions.js +19 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +28 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +19 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +13 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/cardPluginOptions.js +48 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +15 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +27 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +13 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +22 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/datePluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +13 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/expandPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +18 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +47 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/gridPluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +18 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +20 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/loomPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +18 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +62 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +19 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +10 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/panelPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/pastePluginOptions.js +30 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +66 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +75 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +21 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +10 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +15 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +16 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +17 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/statusPluginOptions.js +15 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +40 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/tablePluginOptions.js +52 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +20 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +15 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +12 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +17 -0
- package/dist/cjs/confluence-full-page-base/types.js +5 -0
- package/dist/cjs/index.js +2 -0
- package/dist/es2019/confluence-full-page-base/index.js +316 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +3 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +26 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +14 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/basePluginOptions.js +12 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +23 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +10 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +8 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/cardPluginOptions.js +43 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +6 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +22 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +8 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +17 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/datePluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +8 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/expandPluginOptions.js +11 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +13 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +38 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/gridPluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +12 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +13 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +15 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +11 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +9 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/loomPluginOptions.js +11 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +11 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +57 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +14 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/panelPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/pastePluginOptions.js +25 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +59 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +67 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +3 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +14 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +10 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +9 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +11 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +12 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/statusPluginOptions.js +6 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +3 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +37 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/tablePluginOptions.js +45 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +15 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +3 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +6 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +7 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +9 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +5 -0
- package/dist/es2019/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +12 -0
- package/dist/es2019/confluence-full-page-base/types.js +1 -0
- package/dist/es2019/index.js +1 -0
- package/dist/esm/confluence-full-page-base/index.js +314 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/analyticsPluginOptions.js +5 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/annotationPluginOptions.js +25 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.js +13 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/basePluginOptions.js +13 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.js +22 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/blockTypePluginOptions.js +12 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/breakoutPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/cardPluginOptions.js +42 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.js +9 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +21 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.js +16 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/datePluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/emojiPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/expandPluginOptions.js +10 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/extensionPluginOptions.js +12 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.js +40 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/findReplacePluginOptions.js +9 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/gridPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +11 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.js +12 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.js +14 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/layoutPluginOptions.js +10 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/limitedModePluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/loomPluginOptions.js +10 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.js +11 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js +56 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/mentionsPluginOptions.js +13 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/metricsPluginOptions.js +4 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/panelPluginOptions.js +9 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/pastePluginOptions.js +24 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.js +59 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +69 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.js +5 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.js +14 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.js +4 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +9 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/selectionPluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.js +10 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/showDiffPluginOptions.js +11 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/statusPluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.js +5 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.js +34 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/tablePluginOptions.js +46 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.js +14 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/textColorPluginOptions.js +5 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/toolbarPluginOptions.js +6 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.js +8 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.js +7 -0
- package/dist/esm/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.js +11 -0
- package/dist/esm/confluence-full-page-base/types.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/types/confluence-full-page-base/index.d.ts +16 -0
- package/dist/types/confluence-full-page-base/pluginOptions/analyticsPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/annotationPluginOptions.d.ts +23 -0
- package/dist/types/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/basePluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.d.ts +24 -0
- package/dist/types/confluence-full-page-base/pluginOptions/blockTypePluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/breakoutPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/cardPluginOptions.d.ts +34 -0
- package/dist/types/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/collabEditPluginOptions.d.ts +13 -0
- package/dist/types/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/datePluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/emojiPluginOptions.d.ts +11 -0
- package/dist/types/confluence-full-page-base/pluginOptions/expandPluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/extensionPluginOptions.d.ts +15 -0
- package/dist/types/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/findReplacePluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/gridPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.d.ts +13 -0
- package/dist/types/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/layoutPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/limitedModePluginOptions.d.ts +15 -0
- package/dist/types/confluence-full-page-base/pluginOptions/loomPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.d.ts +7 -0
- package/dist/types/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.d.ts +19 -0
- package/dist/types/confluence-full-page-base/pluginOptions/mentionsPluginOptions.d.ts +15 -0
- package/dist/types/confluence-full-page-base/pluginOptions/metricsPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/panelPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/pastePluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.d.ts +57 -0
- package/dist/types/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.d.ts +15 -0
- package/dist/types/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/selectionPluginOptions.d.ts +8 -0
- package/dist/types/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.d.ts +13 -0
- package/dist/types/confluence-full-page-base/pluginOptions/showDiffPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/statusPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.d.ts +44 -0
- package/dist/types/confluence-full-page-base/pluginOptions/tablePluginOptions.d.ts +10 -0
- package/dist/types/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.d.ts +14 -0
- package/dist/types/confluence-full-page-base/pluginOptions/textColorPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/toolbarPluginOptions.d.ts +9 -0
- package/dist/types/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.d.ts +6 -0
- package/dist/types/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.d.ts +12 -0
- package/dist/types/confluence-full-page-base/types.d.ts +447 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types-ts4.5/confluence-full-page-base/index.d.ts +16 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/analyticsPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/annotationPluginOptions.d.ts +23 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/avatarGroupPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/basePluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/blockMenuPluginOptions.d.ts +24 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/blockTypePluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/breakoutPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/cardPluginOptions.d.ts +34 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBidiWarningPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBlockAdvancedPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/codeBlockPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/collabEditPluginOptions.d.ts +13 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contentFormatPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contextIdentifierPluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/contextPanelPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/customAutoformatPluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/datePluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/editorDisabledPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/editorViewModePluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/emojiPluginOptions.d.ts +11 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/expandPluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/extensionPluginOptions.d.ts +15 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/featureFlagsPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/findReplacePluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/gridPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/hyperlinkPluginOptions.d.ts +13 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/insertBlockPluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/layoutPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/limitedModePluginOptions.d.ts +15 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/loomPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mediaPluginOptions/i18n.d.ts +7 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.d.ts +19 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/mentionsPluginOptions.d.ts +15 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/metricsPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/panelPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/pastePluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderPluginOptions/i18n.d.ts +57 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.d.ts +15 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/placeholderTextPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/primaryToolbarPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/quickInsertPluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionExtensionPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionPluginOptions.d.ts +8 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/selectionToolbarPluginOptions.d.ts +13 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/showDiffPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/statusPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/submitEditorPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/syncedBlockPluginOptions.d.ts +44 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/tablePluginOptions.d.ts +10 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/tasksAndDecisionsPluginOptions.d.ts +14 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/textColorPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/textFormattingPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/toolbarListsIndentationPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/toolbarPluginOptions.d.ts +9 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/trackChangesPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/typeAheadPluginOptions.d.ts +6 -0
- package/dist/types-ts4.5/confluence-full-page-base/pluginOptions/userPreferencesPluginOptions.d.ts +12 -0
- package/dist/types-ts4.5/confluence-full-page-base/types.d.ts +453 -0
- package/dist/types-ts4.5/index.d.ts +0 -0
- package/full-page/package.json +15 -0
- package/full-page/types/package.json +15 -0
- package/package.json +199 -0
- package/tsconfig.json +8 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2019 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# @atlaskit/editor-presets
|
|
2
|
+
|
|
3
|
+
Public editor presets for Atlassian Editor containing base configurations for Confluence and other products.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package provides standardized, open-source, and easily consumable presets for the Atlassian Editor. It enables rapid prototyping, experimentation, and integration in external environments such as Replit, Figma Make, and other designer and developer tools.
|
|
8
|
+
|
|
9
|
+
## Available Presets
|
|
10
|
+
|
|
11
|
+
### Confluence Full Page Base Preset
|
|
12
|
+
|
|
13
|
+
The `confluenceFullPagePresetBase` contains all public plugins and configurations used by the Confluence Full Page Editor.
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { confluenceFullPagePresetBase } from '@atlaskit/editor-presets';
|
|
17
|
+
|
|
18
|
+
const preset = confluenceFullPagePresetBase({
|
|
19
|
+
intl,
|
|
20
|
+
providers,
|
|
21
|
+
enabledOptionalPlugins,
|
|
22
|
+
pluginOptions,
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
### Basic Setup
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import React from 'react';
|
|
32
|
+
import { ComposableEditor } from '@atlaskit/editor-core/composable-editor';
|
|
33
|
+
import { confluenceFullPagePresetBase } from '@atlaskit/editor-presets';
|
|
34
|
+
import { useIntl } from 'react-intl-next';
|
|
35
|
+
|
|
36
|
+
function MyEditor() {
|
|
37
|
+
const intl = useIntl();
|
|
38
|
+
|
|
39
|
+
const preset = confluenceFullPagePresetBase({
|
|
40
|
+
intl,
|
|
41
|
+
providers: {
|
|
42
|
+
// Provide necessary services
|
|
43
|
+
},
|
|
44
|
+
enabledOptionalPlugins: {
|
|
45
|
+
// Configure optional features
|
|
46
|
+
},
|
|
47
|
+
pluginOptions: {
|
|
48
|
+
// Plugin-specific options
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return <ComposableEditor preset={preset} />;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Extending the Preset
|
|
57
|
+
|
|
58
|
+
You can extend the base preset with additional plugins:
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { confluenceFullPagePresetBase } from '@atlaskit/editor-presets';
|
|
62
|
+
import { myCustomPlugin } from './my-custom-plugin';
|
|
63
|
+
|
|
64
|
+
const customPreset = confluenceFullPagePresetBase(options)
|
|
65
|
+
.add([myCustomPlugin, myCustomPluginOptions]);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Plugin Options
|
|
69
|
+
|
|
70
|
+
Each plugin included in the preset can be configured through the `pluginOptions` object. Refer to individual plugin documentation for available options.
|
|
71
|
+
|
|
72
|
+
## API
|
|
73
|
+
|
|
74
|
+
### `confluenceFullPagePresetBase(options: ConfluenceFullPageBasePresetOptions): EditorPresetBuilder`
|
|
75
|
+
|
|
76
|
+
Creates a base Confluence Full Page Editor preset with all public plugins.
|
|
77
|
+
|
|
78
|
+
**Parameters:**
|
|
79
|
+
- `intl: IntlShape` - React Intl instance for internationalization
|
|
80
|
+
- `providers: Providers` - Required service providers
|
|
81
|
+
- `enabledOptionalPlugins: EnabledOptionalPlugins` - Configuration for optional plugins
|
|
82
|
+
- `pluginOptions: AllPluginOptions` - Plugin-specific configuration options
|
|
83
|
+
|
|
84
|
+
**Returns:** `EditorPresetBuilder` - A preset builder that can be extended with additional plugins
|
|
85
|
+
|
|
86
|
+
## Architecture
|
|
87
|
+
|
|
88
|
+
The public preset contains only `@atlaskit/editor-plugin-*` packages. Private or product-specific plugins should be added in separate preset packages (e.g., `editor-presets-confluence` for Confluence-specific features).
|
|
89
|
+
|
|
90
|
+
## Contributing
|
|
91
|
+
|
|
92
|
+
When adding new public plugins to this preset, ensure:
|
|
93
|
+
|
|
94
|
+
1. The plugin is from `@atlaskit/editor-plugin-*` or similar public packages
|
|
95
|
+
2. Plugin options are added to the `pluginOptions` type
|
|
96
|
+
3. Plugin order is maintained (some plugins have dependencies)
|
|
97
|
+
4. Tests are updated to reflect the new plugin
|
|
98
|
+
|
|
99
|
+
## License
|
|
100
|
+
|
|
101
|
+
Apache License 2.0
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.confluenceFullPageBasePreset = confluenceFullPageBasePreset;
|
|
7
|
+
var _preset = require("@atlaskit/editor-common/preset");
|
|
8
|
+
var _editorPluginAccessibilityUtils = require("@atlaskit/editor-plugin-accessibility-utils");
|
|
9
|
+
var _editorPluginAlignment = require("@atlaskit/editor-plugin-alignment");
|
|
10
|
+
var _editorPluginAnalytics = require("@atlaskit/editor-plugin-analytics");
|
|
11
|
+
var _editorPluginAnnotation = require("@atlaskit/editor-plugin-annotation");
|
|
12
|
+
var _editorPluginAvatarGroup = require("@atlaskit/editor-plugin-avatar-group");
|
|
13
|
+
var _editorPluginBase = require("@atlaskit/editor-plugin-base");
|
|
14
|
+
var _editorPluginBatchAttributeUpdates = require("@atlaskit/editor-plugin-batch-attribute-updates");
|
|
15
|
+
var _editorPluginBetterTypeHistory = require("@atlaskit/editor-plugin-better-type-history");
|
|
16
|
+
var _editorPluginBlockControls = require("@atlaskit/editor-plugin-block-controls");
|
|
17
|
+
var _editorPluginBlockMenu = require("@atlaskit/editor-plugin-block-menu");
|
|
18
|
+
var _editorPluginBlockType = require("@atlaskit/editor-plugin-block-type");
|
|
19
|
+
var _editorPluginBorder = require("@atlaskit/editor-plugin-border");
|
|
20
|
+
var _editorPluginBreakout = require("@atlaskit/editor-plugin-breakout");
|
|
21
|
+
var _editorPluginCaption = require("@atlaskit/editor-plugin-caption");
|
|
22
|
+
var _editorPluginCard = require("@atlaskit/editor-plugin-card");
|
|
23
|
+
var _editorPluginClearMarksOnEmptyDoc = require("@atlaskit/editor-plugin-clear-marks-on-empty-doc");
|
|
24
|
+
var _editorPluginClipboard = require("@atlaskit/editor-plugin-clipboard");
|
|
25
|
+
var _editorPluginCodeBidiWarning = require("@atlaskit/editor-plugin-code-bidi-warning");
|
|
26
|
+
var _editorPluginCodeBlock = require("@atlaskit/editor-plugin-code-block");
|
|
27
|
+
var _editorPluginCodeBlockAdvanced = require("@atlaskit/editor-plugin-code-block-advanced");
|
|
28
|
+
var _editorPluginCollabEdit = require("@atlaskit/editor-plugin-collab-edit");
|
|
29
|
+
var _editorPluginComposition = require("@atlaskit/editor-plugin-composition");
|
|
30
|
+
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
31
|
+
var _editorPluginContentFormat = require("@atlaskit/editor-plugin-content-format");
|
|
32
|
+
var _editorPluginContentInsertion = require("@atlaskit/editor-plugin-content-insertion");
|
|
33
|
+
var _editorPluginContextIdentifier = require("@atlaskit/editor-plugin-context-identifier");
|
|
34
|
+
var _editorPluginContextPanel = require("@atlaskit/editor-plugin-context-panel");
|
|
35
|
+
var _editorPluginCopyButton = require("@atlaskit/editor-plugin-copy-button");
|
|
36
|
+
var _editorPluginCustomAutoformat = require("@atlaskit/editor-plugin-custom-autoformat");
|
|
37
|
+
var _editorPluginDataConsumer = require("@atlaskit/editor-plugin-data-consumer");
|
|
38
|
+
var _editorPluginDate = require("@atlaskit/editor-plugin-date");
|
|
39
|
+
var _editorPluginDecorations = require("@atlaskit/editor-plugin-decorations");
|
|
40
|
+
var _editorPluginEditorDisabled = require("@atlaskit/editor-plugin-editor-disabled");
|
|
41
|
+
var _editorPluginEditorViewmode = require("@atlaskit/editor-plugin-editor-viewmode");
|
|
42
|
+
var _editorPluginEditorViewmodeEffects = require("@atlaskit/editor-plugin-editor-viewmode-effects");
|
|
43
|
+
var _editorPluginEmoji = require("@atlaskit/editor-plugin-emoji");
|
|
44
|
+
var _editorPluginExpand = require("@atlaskit/editor-plugin-expand");
|
|
45
|
+
var _editorPluginExtension = require("@atlaskit/editor-plugin-extension");
|
|
46
|
+
var _editorPluginFeatureFlags = require("@atlaskit/editor-plugin-feature-flags");
|
|
47
|
+
var _editorPluginFindReplace = require("@atlaskit/editor-plugin-find-replace");
|
|
48
|
+
var _editorPluginFloatingToolbar = require("@atlaskit/editor-plugin-floating-toolbar");
|
|
49
|
+
var _editorPluginFocus = require("@atlaskit/editor-plugin-focus");
|
|
50
|
+
var _editorPluginFragment = require("@atlaskit/editor-plugin-fragment");
|
|
51
|
+
var _editorPluginGrid = require("@atlaskit/editor-plugin-grid");
|
|
52
|
+
var _editorPluginGuideline = require("@atlaskit/editor-plugin-guideline");
|
|
53
|
+
var _editorPluginHelpDialog = require("@atlaskit/editor-plugin-help-dialog");
|
|
54
|
+
var _editorPluginHighlight = require("@atlaskit/editor-plugin-highlight");
|
|
55
|
+
var _editorPluginHistory = require("@atlaskit/editor-plugin-history");
|
|
56
|
+
var _editorPluginHyperlink = require("@atlaskit/editor-plugin-hyperlink");
|
|
57
|
+
var _editorPluginIndentation = require("@atlaskit/editor-plugin-indentation");
|
|
58
|
+
var _editorPluginInsertBlock = require("@atlaskit/editor-plugin-insert-block");
|
|
59
|
+
var _editorPluginInteraction = require("@atlaskit/editor-plugin-interaction");
|
|
60
|
+
var _editorPluginLayout = require("@atlaskit/editor-plugin-layout");
|
|
61
|
+
var _editorPluginLimitedMode = require("@atlaskit/editor-plugin-limited-mode");
|
|
62
|
+
var _editorPluginList = require("@atlaskit/editor-plugin-list");
|
|
63
|
+
var _editorPluginLocalId = require("@atlaskit/editor-plugin-local-id");
|
|
64
|
+
var _editorPluginLoom = require("@atlaskit/editor-plugin-loom");
|
|
65
|
+
var _editorPluginMedia = require("@atlaskit/editor-plugin-media");
|
|
66
|
+
var _editorPluginMediaInsert = require("@atlaskit/editor-plugin-media-insert");
|
|
67
|
+
var _editorPluginMentions = require("@atlaskit/editor-plugin-mentions");
|
|
68
|
+
var _editorPluginMetrics = require("@atlaskit/editor-plugin-metrics");
|
|
69
|
+
var _editorPluginPanel = require("@atlaskit/editor-plugin-panel");
|
|
70
|
+
var _editorPluginPaste = require("@atlaskit/editor-plugin-paste");
|
|
71
|
+
var _editorPluginPasteOptionsToolbar = require("@atlaskit/editor-plugin-paste-options-toolbar");
|
|
72
|
+
var _editorPluginPlaceholder = require("@atlaskit/editor-plugin-placeholder");
|
|
73
|
+
var _editorPluginPlaceholderText = require("@atlaskit/editor-plugin-placeholder-text");
|
|
74
|
+
var _editorPluginPrimaryToolbar = require("@atlaskit/editor-plugin-primary-toolbar");
|
|
75
|
+
var _editorPluginQuickInsert = require("@atlaskit/editor-plugin-quick-insert");
|
|
76
|
+
var _editorPluginRule = require("@atlaskit/editor-plugin-rule");
|
|
77
|
+
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
78
|
+
var _editorPluginSelection = require("@atlaskit/editor-plugin-selection");
|
|
79
|
+
var _editorPluginSelectionExtension = require("@atlaskit/editor-plugin-selection-extension");
|
|
80
|
+
var _editorPluginSelectionMarker = require("@atlaskit/editor-plugin-selection-marker");
|
|
81
|
+
var _editorPluginSelectionToolbar = require("@atlaskit/editor-plugin-selection-toolbar");
|
|
82
|
+
var _editorPluginShowDiff = require("@atlaskit/editor-plugin-show-diff");
|
|
83
|
+
var _editorPluginStatus = require("@atlaskit/editor-plugin-status");
|
|
84
|
+
var _editorPluginSubmitEditor = require("@atlaskit/editor-plugin-submit-editor");
|
|
85
|
+
var _editorPluginSyncedBlock = require("@atlaskit/editor-plugin-synced-block");
|
|
86
|
+
var _editorPluginTable = require("@atlaskit/editor-plugin-table");
|
|
87
|
+
var _editorPluginTasksAndDecisions = require("@atlaskit/editor-plugin-tasks-and-decisions");
|
|
88
|
+
var _editorPluginTextColor = require("@atlaskit/editor-plugin-text-color");
|
|
89
|
+
var _editorPluginTextFormatting = require("@atlaskit/editor-plugin-text-formatting");
|
|
90
|
+
var _editorPluginToolbar = require("@atlaskit/editor-plugin-toolbar");
|
|
91
|
+
var _editorPluginToolbarListsIndentation = require("@atlaskit/editor-plugin-toolbar-lists-indentation");
|
|
92
|
+
var _editorPluginTrackChanges = require("@atlaskit/editor-plugin-track-changes");
|
|
93
|
+
var _editorPluginTypeAhead = require("@atlaskit/editor-plugin-type-ahead");
|
|
94
|
+
var _editorPluginUfo = require("@atlaskit/editor-plugin-ufo");
|
|
95
|
+
var _editorPluginUiControlRegistry = require("@atlaskit/editor-plugin-ui-control-registry");
|
|
96
|
+
var _editorPluginUndoRedo = require("@atlaskit/editor-plugin-undo-redo");
|
|
97
|
+
var _editorPluginUnsupportedContent = require("@atlaskit/editor-plugin-unsupported-content");
|
|
98
|
+
var _editorPluginUserIntent = require("@atlaskit/editor-plugin-user-intent");
|
|
99
|
+
var _editorPluginUserPreferences = require("@atlaskit/editor-plugin-user-preferences");
|
|
100
|
+
var _editorPluginWidth = require("@atlaskit/editor-plugin-width");
|
|
101
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
102
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
103
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
104
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
105
|
+
var _analyticsPluginOptions = require("./pluginOptions/analyticsPluginOptions");
|
|
106
|
+
var _annotationPluginOptions = require("./pluginOptions/annotationPluginOptions");
|
|
107
|
+
var _avatarGroupPluginOptions = require("./pluginOptions/avatarGroupPluginOptions");
|
|
108
|
+
var _basePluginOptions = require("./pluginOptions/basePluginOptions");
|
|
109
|
+
var _blockMenuPluginOptions = require("./pluginOptions/blockMenuPluginOptions");
|
|
110
|
+
var _blockTypePluginOptions = require("./pluginOptions/blockTypePluginOptions");
|
|
111
|
+
var _breakoutPluginOptions = require("./pluginOptions/breakoutPluginOptions");
|
|
112
|
+
var _cardPluginOptions = require("./pluginOptions/cardPluginOptions");
|
|
113
|
+
var _codeBidiWarningPluginOptions = require("./pluginOptions/codeBidiWarningPluginOptions");
|
|
114
|
+
var _codeBlockAdvancedPluginOptions = require("./pluginOptions/codeBlockAdvancedPluginOptions");
|
|
115
|
+
var _codeBlockPluginOptions = require("./pluginOptions/codeBlockPluginOptions");
|
|
116
|
+
var _collabEditPluginOptions = require("./pluginOptions/collabEditPluginOptions");
|
|
117
|
+
var _contentFormatPluginOptions = require("./pluginOptions/contentFormatPluginOptions");
|
|
118
|
+
var _contextIdentifierPluginOptions = require("./pluginOptions/contextIdentifierPluginOptions");
|
|
119
|
+
var _contextPanelPluginOptions = require("./pluginOptions/contextPanelPluginOptions");
|
|
120
|
+
var _customAutoformatPluginOptions = require("./pluginOptions/customAutoformatPluginOptions");
|
|
121
|
+
var _datePluginOptions = require("./pluginOptions/datePluginOptions");
|
|
122
|
+
var _editorDisabledPluginOptions = require("./pluginOptions/editorDisabledPluginOptions");
|
|
123
|
+
var _editorViewModePluginOptions = require("./pluginOptions/editorViewModePluginOptions");
|
|
124
|
+
var _emojiPluginOptions = require("./pluginOptions/emojiPluginOptions");
|
|
125
|
+
var _expandPluginOptions = require("./pluginOptions/expandPluginOptions");
|
|
126
|
+
var _extensionPluginOptions = require("./pluginOptions/extensionPluginOptions");
|
|
127
|
+
var _featureFlagsPluginOptions = require("./pluginOptions/featureFlagsPluginOptions");
|
|
128
|
+
var _findReplacePluginOptions = require("./pluginOptions/findReplacePluginOptions");
|
|
129
|
+
var _gridPluginOptions = require("./pluginOptions/gridPluginOptions");
|
|
130
|
+
var _helpDialogPluginOptions = require("./pluginOptions/helpDialogPluginOptions");
|
|
131
|
+
var _hyperlinkPluginOptions = require("./pluginOptions/hyperlinkPluginOptions");
|
|
132
|
+
var _insertBlockPluginOptions = require("./pluginOptions/insertBlockPluginOptions");
|
|
133
|
+
var _layoutPluginOptions = require("./pluginOptions/layoutPluginOptions");
|
|
134
|
+
var _limitedModePluginOptions = require("./pluginOptions/limitedModePluginOptions");
|
|
135
|
+
var _loomPluginOptions = require("./pluginOptions/loomPluginOptions");
|
|
136
|
+
var _mediaPluginOptions = require("./pluginOptions/mediaPluginOptions/mediaPluginOptions");
|
|
137
|
+
var _mentionsPluginOptions = require("./pluginOptions/mentionsPluginOptions");
|
|
138
|
+
var _metricsPluginOptions = require("./pluginOptions/metricsPluginOptions");
|
|
139
|
+
var _panelPluginOptions = require("./pluginOptions/panelPluginOptions");
|
|
140
|
+
var _pastePluginOptions = require("./pluginOptions/pastePluginOptions");
|
|
141
|
+
var _placeholderPluginOptions = require("./pluginOptions/placeholderPluginOptions/placeholderPluginOptions");
|
|
142
|
+
var _placeholderTextPluginOptions = require("./pluginOptions/placeholderTextPluginOptions");
|
|
143
|
+
var _primaryToolbarPluginOptions = require("./pluginOptions/primaryToolbarPluginOptions");
|
|
144
|
+
var _quickInsertPluginOptions = require("./pluginOptions/quickInsertPluginOptions");
|
|
145
|
+
var _selectionExtensionPluginOptions = require("./pluginOptions/selectionExtensionPluginOptions");
|
|
146
|
+
var _selectionMarkerPluginOptions = require("./pluginOptions/selectionMarkerPluginOptions");
|
|
147
|
+
var _selectionPluginOptions = require("./pluginOptions/selectionPluginOptions");
|
|
148
|
+
var _selectionToolbarPluginOptions = require("./pluginOptions/selectionToolbarPluginOptions");
|
|
149
|
+
var _showDiffPluginOptions = require("./pluginOptions/showDiffPluginOptions");
|
|
150
|
+
var _statusPluginOptions = require("./pluginOptions/statusPluginOptions");
|
|
151
|
+
var _submitEditorPluginOptions = require("./pluginOptions/submitEditorPluginOptions");
|
|
152
|
+
var _syncedBlockPluginOptions = require("./pluginOptions/syncedBlockPluginOptions");
|
|
153
|
+
var _tablePluginOptions = require("./pluginOptions/tablePluginOptions");
|
|
154
|
+
var _tasksAndDecisionsPluginOptions = require("./pluginOptions/tasksAndDecisionsPluginOptions");
|
|
155
|
+
var _textColorPluginOptions = require("./pluginOptions/textColorPluginOptions");
|
|
156
|
+
var _textFormattingPluginOptions = require("./pluginOptions/textFormattingPluginOptions");
|
|
157
|
+
var _toolbarListsIndentationPluginOptions = require("./pluginOptions/toolbarListsIndentationPluginOptions");
|
|
158
|
+
var _toolbarPluginOptions = require("./pluginOptions/toolbarPluginOptions");
|
|
159
|
+
var _trackChangesPluginOptions = require("./pluginOptions/trackChangesPluginOptions");
|
|
160
|
+
var _typeAheadPluginOptions = require("./pluginOptions/typeAheadPluginOptions");
|
|
161
|
+
var _userPreferencesPluginOptions = require("./pluginOptions/userPreferencesPluginOptions");
|
|
162
|
+
/**
|
|
163
|
+
* Creates the public Confluence full page base editor preset.
|
|
164
|
+
*
|
|
165
|
+
* This preset includes all public @atlaskit/editor-plugin-* plugins used in the
|
|
166
|
+
* Confluence full page editor. Private plugins (AI, referentiality, etc.) are
|
|
167
|
+
* NOT included — they are added on top of this preset in editor-presets-confluence.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```ts
|
|
171
|
+
* import { confluenceFullPageBasePreset } from '@atlaskit/editor-presets/confluence-full-page-base';
|
|
172
|
+
*
|
|
173
|
+
* const preset = confluenceFullPageBasePreset(options);
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
function confluenceFullPageBasePreset(props) {
|
|
177
|
+
var _enabledOptionalPlugi;
|
|
178
|
+
var intl = props.intl,
|
|
179
|
+
providers = props.providers,
|
|
180
|
+
enabledOptionalPlugins = props.enabledOptionalPlugins;
|
|
181
|
+
// We remove all `never` properties from the ConfluenceFullPageBasePresetOptions.pluginOptions,
|
|
182
|
+
// we need to return them back.
|
|
183
|
+
var pluginOptions = props.pluginOptions;
|
|
184
|
+
return new _preset.EditorPresetBuilder().maybeAdd([_editorPluginLimitedMode.limitedModePlugin, (0, _limitedModePluginOptions.limitedModePluginOptions)({
|
|
185
|
+
options: pluginOptions.limitedMode
|
|
186
|
+
})], !pluginOptions.limitedMode.killSwitchEnabled).add([_editorPluginFeatureFlags.featureFlagsPlugin, (0, _featureFlagsPluginOptions.featureFlagsPluginOptions)({
|
|
187
|
+
options: pluginOptions.featureFlags
|
|
188
|
+
})]).add([_editorPluginAnalytics.analyticsPlugin, (0, _analyticsPluginOptions.analyticsPluginOptions)({
|
|
189
|
+
options: pluginOptions.analytics
|
|
190
|
+
})]).add(_editorPluginBetterTypeHistory.betterTypeHistoryPlugin).add([_editorPluginPaste.pastePlugin, (0, _pastePluginOptions.pastePluginOptions)({
|
|
191
|
+
options: pluginOptions.paste,
|
|
192
|
+
providers: providers
|
|
193
|
+
})]).add(_editorPluginClipboard.clipboardPlugin).add(_editorPluginFocus.focusPlugin).add(_editorPluginComposition.compositionPlugin).add([_editorPluginContextIdentifier.contextIdentifierPlugin, (0, _contextIdentifierPluginOptions.contextIdentifierPluginOptions)({
|
|
194
|
+
options: pluginOptions.contextIdentifier,
|
|
195
|
+
providers: providers
|
|
196
|
+
})]).add([_editorPluginBase.basePlugin, (0, _basePluginOptions.basePluginOptions)({
|
|
197
|
+
options: pluginOptions.base
|
|
198
|
+
})]).maybeAdd([_editorPluginUserPreferences.userPreferencesPlugin, (0, _userPreferencesPluginOptions.userPreferencesPluginOptions)({
|
|
199
|
+
providers: providers,
|
|
200
|
+
options: pluginOptions.userPreferencesPlugin
|
|
201
|
+
})], enabledOptionalPlugins.userPreferences).add(_editorPluginDecorations.decorationsPlugin).add([_editorPluginTypeAhead.typeAheadPlugin, (0, _typeAheadPluginOptions.typeAheadPluginOptions)({
|
|
202
|
+
options: pluginOptions.typeAhead
|
|
203
|
+
})]).add(_editorPluginHistory.historyPlugin).add([_editorPluginPrimaryToolbar.primaryToolbarPlugin, (0, _primaryToolbarPluginOptions.primaryToolbarPluginOptions)({
|
|
204
|
+
options: pluginOptions.primaryToolbar
|
|
205
|
+
})]).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
|
|
206
|
+
options: pluginOptions.toolbar
|
|
207
|
+
})], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([_editorPluginBlockMenu.blockMenuPlugin, (0, _blockMenuPluginOptions.blockMenuPluginOptions)({
|
|
208
|
+
options: pluginOptions.blockMenu
|
|
209
|
+
})], (0, _experiments.editorExperiment)('platform_editor_block_menu', true)).add(_editorPluginUndoRedo.undoRedoPlugin).add([_editorPluginBlockType.blockTypePlugin, (0, _blockTypePluginOptions.blockTypePluginOptions)({
|
|
210
|
+
options: pluginOptions.blockType
|
|
211
|
+
})]).add(_editorPluginClearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_editorPluginSelectionToolbar.selectionToolbarPlugin, (0, _selectionToolbarPluginOptions.selectionToolbarPluginOptions)({
|
|
212
|
+
options: pluginOptions.selectionToolbar,
|
|
213
|
+
providers: providers
|
|
214
|
+
})]).add([_editorPluginHyperlink.hyperlinkPlugin, (0, _hyperlinkPluginOptions.hyperlinkPluginOptions)({
|
|
215
|
+
options: pluginOptions.hyperlink
|
|
216
|
+
})]).add([_editorPluginTextFormatting.textFormattingPlugin, (0, _textFormattingPluginOptions.textFormattingPluginOptions)({
|
|
217
|
+
options: pluginOptions.textFormatting
|
|
218
|
+
})]).add(_editorPluginWidth.widthPlugin).add([_editorPluginQuickInsert.quickInsertPlugin, (0, _quickInsertPluginOptions.quickInsertPluginOptions)({
|
|
219
|
+
options: pluginOptions.quickInsert
|
|
220
|
+
})]).add([_editorPluginPlaceholder.placeholderPlugin, (0, _placeholderPluginOptions.placeholderPluginOptions)({
|
|
221
|
+
intl: intl,
|
|
222
|
+
options: pluginOptions.placeholder
|
|
223
|
+
})]).add(_editorPluginUnsupportedContent.unsupportedContentPlugin).add([_editorPluginEditorDisabled.editorDisabledPlugin, (0, _editorDisabledPluginOptions.editorDisabledPluginOptions)({
|
|
224
|
+
options: pluginOptions.editorDisabled
|
|
225
|
+
})]).add([_editorPluginSubmitEditor.submitEditorPlugin, (0, _submitEditorPluginOptions.submitEditorPluginOptions)({
|
|
226
|
+
options: pluginOptions.submitEditor
|
|
227
|
+
})]).add(_editorPluginCopyButton.copyButtonPlugin).maybeAdd(_editorPluginFloatingToolbar.floatingToolbarPlugin, (_enabledOptionalPlugi = enabledOptionalPlugins.floatingToolbar) !== null && _enabledOptionalPlugi !== void 0 ? _enabledOptionalPlugi : true).maybeAdd(_editorPluginInteraction.interactionPlugin, Boolean(enabledOptionalPlugins.interaction)).add([_editorPluginSelection.selectionPlugin, (0, _selectionPluginOptions.selectionPluginOptions)({
|
|
228
|
+
options: pluginOptions.selection
|
|
229
|
+
})]).add([_editorPluginCodeBlock.codeBlockPlugin, (0, _codeBlockPluginOptions.codeBlockPluginOptions)({
|
|
230
|
+
options: pluginOptions.codeBlock
|
|
231
|
+
})]).add(_editorPluginUfo.ufoPlugin).add(_editorPluginDataConsumer.dataConsumerPlugin).add(_editorPluginAccessibilityUtils.accessibilityUtilsPlugin).add(_editorPluginContentInsertion.contentInsertionPlugin).add(_editorPluginBatchAttributeUpdates.batchAttributeUpdatesPlugin).add([_editorPluginBreakout.breakoutPlugin, (0, _breakoutPluginOptions.breakoutPluginOptions)({
|
|
232
|
+
options: pluginOptions.breakout
|
|
233
|
+
})]).add(_editorPluginAlignment.alignmentPlugin).add([_editorPluginTextColor.textColorPlugin, (0, _textColorPluginOptions.textColorPluginOptions)({
|
|
234
|
+
options: pluginOptions.textColor
|
|
235
|
+
})]).add(_editorPluginList.listPlugin).add(_editorPluginRule.rulePlugin).add([_editorPluginExpand.expandPlugin, (0, _expandPluginOptions.expandPluginOptions)({
|
|
236
|
+
options: pluginOptions.expand
|
|
237
|
+
})]).add(_editorPluginGuideline.guidelinePlugin).add([_editorPluginGrid.gridPlugin, (0, _gridPluginOptions.gridPluginOptions)({
|
|
238
|
+
options: pluginOptions.grid
|
|
239
|
+
})]).add([_editorPluginAnnotation.annotationPlugin, (0, _annotationPluginOptions.annotationPluginOptions)({
|
|
240
|
+
options: pluginOptions.annotation,
|
|
241
|
+
providers: providers
|
|
242
|
+
})]).add([_editorPluginMedia.mediaPlugin, (0, _mediaPluginOptions.mediaPluginOptions)({
|
|
243
|
+
intl: intl,
|
|
244
|
+
options: pluginOptions.media,
|
|
245
|
+
providers: providers
|
|
246
|
+
})]).add(_editorPluginMediaInsert.mediaInsertPlugin).add(_editorPluginCaption.captionPlugin).add([_editorPluginMentions.mentionsPlugin, (0, _mentionsPluginOptions.mentionsPluginOptions)({
|
|
247
|
+
options: pluginOptions.mentions,
|
|
248
|
+
providers: providers
|
|
249
|
+
})]).add([_editorPluginEmoji.emojiPlugin, (0, _emojiPluginOptions.emojiPluginOptions)({
|
|
250
|
+
options: pluginOptions.emoji,
|
|
251
|
+
providers: providers
|
|
252
|
+
})]).add([_editorPluginTable.tablePlugin, (0, _tablePluginOptions.tablePluginOptions)({
|
|
253
|
+
options: pluginOptions.table
|
|
254
|
+
})]).add([_editorPluginTasksAndDecisions.tasksAndDecisionsPlugin, (0, _tasksAndDecisionsPluginOptions.tasksAndDecisionsPluginOptions)({
|
|
255
|
+
options: pluginOptions.tasksAndDecisions,
|
|
256
|
+
providers: providers
|
|
257
|
+
})]).add([_editorPluginHelpDialog.helpDialogPlugin, (0, _helpDialogPluginOptions.helpDialogPluginOptions)({
|
|
258
|
+
options: {
|
|
259
|
+
imageUploadProviderExists: false,
|
|
260
|
+
aiEnabled: false
|
|
261
|
+
}
|
|
262
|
+
})]).add([_editorPluginCollabEdit.collabEditPlugin, (0, _collabEditPluginOptions.collabEditPluginOptions)({
|
|
263
|
+
options: pluginOptions.collabEdit,
|
|
264
|
+
providers: providers
|
|
265
|
+
})]).add([_editorPluginPanel.panelPlugin, (0, _panelPluginOptions.panelPluginOptions)({
|
|
266
|
+
options: pluginOptions.panel
|
|
267
|
+
})]).add([_editorPluginContextPanel.contextPanelPlugin, (0, _contextPanelPluginOptions.contextPanelPluginOptions)({
|
|
268
|
+
options: pluginOptions.contextPanel
|
|
269
|
+
})]).add([_editorPluginExtension.extensionPlugin, (0, _extensionPluginOptions.extensionPluginOptions)({
|
|
270
|
+
options: pluginOptions.extension
|
|
271
|
+
})]).add([_editorPluginDate.datePlugin, (0, _datePluginOptions.datePluginOptions)({
|
|
272
|
+
options: pluginOptions.date
|
|
273
|
+
})]).add([_editorPluginPlaceholderText.placeholderTextPlugin, (0, _placeholderTextPluginOptions.placeholderTextPluginOptions)({
|
|
274
|
+
options: pluginOptions.placeholderText
|
|
275
|
+
})]).add([_editorPluginLayout.layoutPlugin, (0, _layoutPluginOptions.layoutPluginOptions)({
|
|
276
|
+
options: pluginOptions.layout
|
|
277
|
+
})]).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
|
|
278
|
+
options: pluginOptions.card,
|
|
279
|
+
providers: providers
|
|
280
|
+
})]).add([_editorPluginCustomAutoformat.customAutoformatPlugin, (0, _customAutoformatPluginOptions.customAutoformatPluginOptions)({
|
|
281
|
+
options: pluginOptions.customAutoformat,
|
|
282
|
+
providers: providers
|
|
283
|
+
})]).add([_editorPluginStatus.statusPlugin, (0, _statusPluginOptions.statusPluginOptions)({
|
|
284
|
+
options: pluginOptions.status
|
|
285
|
+
})]).maybeAdd([_editorPluginSyncedBlock.syncedBlockPlugin, (0, _syncedBlockPluginOptions.syncedBlockPluginOptions)({
|
|
286
|
+
options: pluginOptions.syncedBlock
|
|
287
|
+
})], !!pluginOptions.syncedBlock && (0, _experiments.editorExperiment)('platform_synced_block', true)).add(_editorPluginIndentation.indentationPlugin).add(_editorPluginScrollIntoView.scrollIntoViewPlugin).add([_editorPluginToolbarListsIndentation.toolbarListsIndentationPlugin, (0, _toolbarListsIndentationPluginOptions.toolbarListsIndentationPluginOptions)({
|
|
288
|
+
options: pluginOptions.toolbarListsIndentation
|
|
289
|
+
})]).add([_editorPluginInsertBlock.insertBlockPlugin, (0, _insertBlockPluginOptions.insertBlockPluginOptions)({
|
|
290
|
+
options: pluginOptions.insertBlock
|
|
291
|
+
})]).add([_editorPluginAvatarGroup.avatarGroupPlugin, (0, _avatarGroupPluginOptions.avatarGroupPluginOptions)({
|
|
292
|
+
options: pluginOptions.avatarGroup
|
|
293
|
+
})]).maybeAdd([_editorPluginFindReplace.findReplacePlugin, (0, _findReplacePluginOptions.findReplacePluginOptions)({
|
|
294
|
+
options: pluginOptions.findReplace
|
|
295
|
+
})], enabledOptionalPlugins.findReplace).add(_editorPluginBorder.borderPlugin).add(_editorPluginFragment.fragmentPlugin).add([_editorPluginPasteOptionsToolbar.pasteOptionsToolbarPlugin, {
|
|
296
|
+
usePopupBasedPasteActionsMenu: false
|
|
297
|
+
}]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true)).maybeAdd([_editorPluginCodeBidiWarning.codeBidiWarningPlugin, (0, _codeBidiWarningPluginOptions.codeBidiWarningPluginOptions)({
|
|
298
|
+
options: pluginOptions.codeBidiWarning
|
|
299
|
+
})], !(0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)).maybeAdd([_editorPluginLoom.loomPlugin, (0, _loomPluginOptions.loomPluginOptions)({
|
|
300
|
+
options: pluginOptions.loom
|
|
301
|
+
})], enabledOptionalPlugins.loom).add([_editorPluginEditorViewmode.editorViewModePlugin, (0, _editorViewModePluginOptions.editorViewModePluginOptions)({
|
|
302
|
+
options: pluginOptions.editorViewMode
|
|
303
|
+
})]).add(_editorPluginEditorViewmodeEffects.editorViewModeEffectsPlugin).add([_editorPluginSelectionMarker.selectionMarkerPlugin, (0, _selectionMarkerPluginOptions.selectionMarkerPluginOptions)({
|
|
304
|
+
options: pluginOptions.selectionMarker
|
|
305
|
+
})]).add([_editorPluginBlockControls.blockControlsPlugin, {
|
|
306
|
+
rightSideControlsEnabled: (0, _platformFeatureFlags.fg)('confluence_remix_button_right_side_block_fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true)
|
|
307
|
+
}]).add(_editorPluginHighlight.highlightPlugin).maybeAdd(_editorPluginConnectivity.connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([_editorPluginMetrics.metricsPlugin, (0, _metricsPluginOptions.metricsPluginOptions)({
|
|
308
|
+
options: pluginOptions.metrics
|
|
309
|
+
})], enabledOptionalPlugins.metrics).maybeAdd([_editorPluginContentFormat.contentFormatPlugin, (0, _contentFormatPluginOptions.contentFormatPluginOptions)({
|
|
310
|
+
options: pluginOptions.contentFormat
|
|
311
|
+
})], (0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true)).maybeAdd([_editorPluginCodeBlockAdvanced.codeBlockAdvancedPlugin, (0, _codeBlockAdvancedPluginOptions.codeBlockAdvancedPluginOptions)({
|
|
312
|
+
options: pluginOptions.codeBlockAdvanced
|
|
313
|
+
})], enabledOptionalPlugins.codeBlockAdvanced).maybeAdd([_editorPluginSelectionExtension.selectionExtensionPlugin, (0, _selectionExtensionPluginOptions.selectionExtensionPluginOptions)({
|
|
314
|
+
options: pluginOptions.selectionExtension
|
|
315
|
+
})], enabledOptionalPlugins.selectionExtension).add(_editorPluginUserIntent.userIntentPlugin).maybeAdd([_editorPluginShowDiff.showDiffPlugin, (0, _showDiffPluginOptions.showDiffPluginOptions)({
|
|
316
|
+
options: pluginOptions.showDiff
|
|
317
|
+
})], enabledOptionalPlugins.showDiff).maybeAdd([_editorPluginTrackChanges.trackChangesPlugin, (0, _trackChangesPluginOptions.trackChangesPluginOptions)({
|
|
318
|
+
options: pluginOptions.trackChanges
|
|
319
|
+
})], enabledOptionalPlugins.trackChanges).maybeAdd(_editorPluginLocalId.localIdPlugin, enabledOptionalPlugins.localId);
|
|
320
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.analyticsPluginOptions = analyticsPluginOptions;
|
|
8
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
|
+
function analyticsPluginOptions(_ref) {
|
|
10
|
+
(0, _objectDestructuringEmpty2.default)(_ref);
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.annotationPluginOptions = annotationPluginOptions;
|
|
7
|
+
function annotationPluginOptions(_ref) {
|
|
8
|
+
var options = _ref.options,
|
|
9
|
+
providers = _ref.providers;
|
|
10
|
+
if (!providers.inlineCommentAnnotationProvider) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
inlineComment: providers.inlineCommentAnnotationProvider,
|
|
15
|
+
createCommentExperience: options.createCommentExperience,
|
|
16
|
+
selectCommentExperience: {
|
|
17
|
+
selectAnnotation: {
|
|
18
|
+
complete: function complete(annotationId) {
|
|
19
|
+
var _options$selectCommen;
|
|
20
|
+
(_options$selectCommen = options.selectCommentExperience) === null || _options$selectCommen === void 0 || _options$selectCommen.selectAnnotation.complete({
|
|
21
|
+
pageClass: 'editor',
|
|
22
|
+
annotationId: annotationId,
|
|
23
|
+
entryPoint: 'annotation-change'
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
viewInlineCommentTraceUFOPress: options.viewInlineCommentTraceUFOPress,
|
|
29
|
+
annotationManager: options.annotationManager
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.avatarGroupPluginOptions = avatarGroupPluginOptions;
|
|
7
|
+
function avatarGroupPluginOptions(_ref) {
|
|
8
|
+
var options = _ref.options;
|
|
9
|
+
return {
|
|
10
|
+
// Avatars are moved to Confluence codebase for Edit in Context
|
|
11
|
+
// When Edit in Context is enabled primaryToolbarComponents is undefined
|
|
12
|
+
// For more details please check
|
|
13
|
+
// https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
|
|
14
|
+
collabEdit: options.collabEdit,
|
|
15
|
+
// originally depends on !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
|
|
16
|
+
takeFullWidth: true,
|
|
17
|
+
showAvatarGroup: false
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.basePluginOptions = basePluginOptions;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
|
+
function basePluginOptions(_ref) {
|
|
9
|
+
var options = _ref.options;
|
|
10
|
+
var removeScrollGutter = !(0, _platformFeatureFlags.fg)('confluence_frontend_content_wrapper') && options.__livePage;
|
|
11
|
+
return {
|
|
12
|
+
allowInlineCursorTarget: true,
|
|
13
|
+
allowScrollGutter: removeScrollGutter ? undefined : {
|
|
14
|
+
getScrollElement: function getScrollElement() {
|
|
15
|
+
return document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.blockMenuPluginOptions = blockMenuPluginOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Returns block menu plugin options for the editor.
|
|
9
|
+
* @param options - The props object containing options for configuring the block menu plugin.
|
|
10
|
+
* @param options.options - The options object with getLinkPath and blockLinkHashPrefix.
|
|
11
|
+
* @returns BlockMenuPluginOptions object.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* blockMenuPluginOptions({
|
|
15
|
+
* options: {
|
|
16
|
+
* getLinkPath: () => '/some/path',
|
|
17
|
+
* blockLinkHashPrefix: 'block-',
|
|
18
|
+
* }
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function blockMenuPluginOptions(_ref) {
|
|
23
|
+
var options = _ref.options;
|
|
24
|
+
return {
|
|
25
|
+
getLinkPath: options.getLinkPath,
|
|
26
|
+
blockLinkHashPrefix: options.blockLinkHashPrefix
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.blockTypePluginOptions = blockTypePluginOptions;
|
|
8
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
|
+
function blockTypePluginOptions(_ref) {
|
|
10
|
+
(0, _objectDestructuringEmpty2.default)(_ref);
|
|
11
|
+
return {
|
|
12
|
+
// rolling out under platform_editor_small_font_size experiment
|
|
13
|
+
allowFontSize: true,
|
|
14
|
+
includeBlockQuoteAsTextstyleOption: true,
|
|
15
|
+
lastNodeMustBeParagraph: false,
|
|
16
|
+
isUndoRedoButtonsEnabled: true,
|
|
17
|
+
allowBlockType: undefined
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.breakoutPluginOptions = breakoutPluginOptions;
|
|
7
|
+
function breakoutPluginOptions(_ref) {
|
|
8
|
+
var options = _ref.options;
|
|
9
|
+
return {
|
|
10
|
+
allowBreakoutButton: options.editorAppearance === 'full-page',
|
|
11
|
+
appearance: options.editorAppearance
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.cardPluginOptions = cardPluginOptions;
|
|
7
|
+
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
8
|
+
// SECTION: From confluence/next/packages/editor-features/src/utils/smartCardOptions.ts
|
|
9
|
+
/**
|
|
10
|
+
* Supported Jira URLs and Jira Roadmap URLs, GDrive and ODFB will become Smart Links
|
|
11
|
+
* (only supports Cloud single-issue URLs right now)
|
|
12
|
+
*/
|
|
13
|
+
var SMART_LINKS_BEFORE_MACROS = 'jira,jiraroadmap,google-drive-sheets,google-drive-docs,OneDrive,google-drive-slides'.split(',');
|
|
14
|
+
// END SECTION
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param root0
|
|
19
|
+
* @param root0.options
|
|
20
|
+
* @param root0.providers
|
|
21
|
+
* @example
|
|
22
|
+
*/
|
|
23
|
+
function cardPluginOptions(_ref) {
|
|
24
|
+
var options = _ref.options,
|
|
25
|
+
providers = _ref.providers;
|
|
26
|
+
return {
|
|
27
|
+
// From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `CARD_OPTIONS =`
|
|
28
|
+
allowDatasource: true,
|
|
29
|
+
// END SECTION
|
|
30
|
+
// SECTION: From confluence/next/packages/editor-features/src/utils/smartCardOptions.ts
|
|
31
|
+
provider: providers.cardProvider,
|
|
32
|
+
resolveBeforeMacros: SMART_LINKS_BEFORE_MACROS,
|
|
33
|
+
allowBlockCards: true,
|
|
34
|
+
allowEmbeds: true,
|
|
35
|
+
// END SECTION
|
|
36
|
+
onClickCallback: options.onClickCallback,
|
|
37
|
+
fullWidthMode: options.editorAppearance === 'full-width',
|
|
38
|
+
linkPicker: options.linkPicker,
|
|
39
|
+
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
40
|
+
lpLinkPicker: true,
|
|
41
|
+
// END SECTION
|
|
42
|
+
editorAppearance: options.editorAppearance,
|
|
43
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
44
|
+
__livePage: options.__livePage,
|
|
45
|
+
isPageSSRed: Boolean((0, _coreUtils.isSSR)() || window.__SSR_RENDERED__),
|
|
46
|
+
CompetitorPrompt: options.CompetitorPrompt
|
|
47
|
+
};
|
|
48
|
+
}
|