@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
|
@@ -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,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
|
+
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
|
+
});
|
package/dist/es2019/confluence-full-page-base/pluginOptions/mediaPluginOptions/mediaPluginOptions.js
ADDED
|
@@ -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,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,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,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,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,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,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 {};
|