@atlaskit/editor-presets 24.1.0 → 24.2.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 24.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`41ae695feb7b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41ae695feb7b2) -
8
+ Pass the optional `trackPastedInlineLinks` setting through the Confluence full-page base preset to
9
+ the card plugin. Existing consumers remain opted out.
10
+
3
11
  ## 24.1.0
4
12
 
5
13
  ### Minor Changes
@@ -26,6 +26,7 @@ function cardPluginOptions(_ref) {
26
26
  providers = _ref.providers;
27
27
  return {
28
28
  smartCardContext: options.smartCardContext,
29
+ trackPastedInlineLinks: options.trackPastedInlineLinks,
29
30
  // From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `CARD_OPTIONS =`
30
31
  allowDatasource: true,
31
32
  // END SECTION
@@ -21,6 +21,7 @@ export function cardPluginOptions({
21
21
  }) {
22
22
  return {
23
23
  smartCardContext: options.smartCardContext,
24
+ trackPastedInlineLinks: options.trackPastedInlineLinks,
24
25
  // From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `CARD_OPTIONS =`
25
26
  allowDatasource: true,
26
27
  // END SECTION
@@ -20,6 +20,7 @@ export function cardPluginOptions(_ref) {
20
20
  providers = _ref.providers;
21
21
  return {
22
22
  smartCardContext: options.smartCardContext,
23
+ trackPastedInlineLinks: options.trackPastedInlineLinks,
23
24
  // From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `CARD_OPTIONS =`
24
25
  allowDatasource: true,
25
26
  // END SECTION
@@ -15,6 +15,7 @@ interface Props {
15
15
  linkPicker: LinkPickerOptions | undefined;
16
16
  onClickCallback: OnClickCallback | undefined;
17
17
  smartCardContext: CardContext | undefined;
18
+ trackPastedInlineLinks?: CardPluginOptions['trackPastedInlineLinks'];
18
19
  };
19
20
  providers: {
20
21
  cardProvider: Promise<CardProvider> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "24.1.0",
3
+ "version": "24.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
6
6
  "publishConfig": {