@atlaskit/editor-plugin-extension 21.0.5 → 21.1.1

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,32 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 21.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`eded6b2abb218`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eded6b2abb218) -
14
+ Add the `allowAIGeneratedContentMotion` extension plugin option, for surfaces where native embeds
15
+ arrive mid-flight such as AI-generated MAUI apps in the Create with Rovo preview. A native embed
16
+ extension is held closed while it loads, then the document opens out to make room for it and the
17
+ embed fades in, so nothing stands in for the content while it loads. Only native embeds are
18
+ animated, since the reveal waits on an embed reporting itself loaded. The referentiality plugin
19
+ registers extension node views of its own, so it takes the same option.
20
+
21
+ The option defaults off and its rollout is the consumer's to gate; Confluence's Create with Rovo
22
+ preview enables it behind `aifc_page_create_defer_generated_visuals`. MAUI's new
23
+ `waitForContentReady` is behind that same gate, so the reveal opens onto the rendered app rather
24
+ than a still-loading frame.
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies
29
+
3
30
  ## 21.0.5
4
31
 
5
32
  ### Patch Changes
@@ -88,7 +88,8 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
88
88
  var extensionHandlers = options.extensionHandlers || {};
89
89
  return (0, _main.createPlugin)(dispatch, providerFactory, extensionHandlers, extensionLoadingHandlers, portalProviderAPI, eventDispatcher, _api, options.useLongPressSelection, {
90
90
  appearance: options.appearance,
91
- getExtensionHeight: options.getExtensionHeight
91
+ getExtensionHeight: options.getExtensionHeight,
92
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
92
93
  }, featureFlags, options === null || options === void 0 ? void 0 : options.__rendererExtensionOptions, getIntl());
93
94
  }
94
95
  }, {
@@ -202,7 +202,8 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
202
202
  });
203
203
  var extensionNodeViewOptions = {
204
204
  appearance: options.appearance,
205
- getExtensionHeight: options.getExtensionHeight
205
+ getExtensionHeight: options.getExtensionHeight,
206
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
206
207
  };
207
208
  var macroInteractionDesignFeatureFlags = {
208
209
  showMacroInteractionDesignUpdates: (_featureFlags$macroIn = featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.macroInteractionUpdates) !== null && _featureFlags$macroIn !== void 0 ? _featureFlags$macroIn : false
@@ -80,7 +80,8 @@ export const extensionPlugin = ({
80
80
  const extensionHandlers = options.extensionHandlers || {};
81
81
  return createPlugin(dispatch, providerFactory, extensionHandlers, extensionLoadingHandlers, portalProviderAPI, eventDispatcher, api, options.useLongPressSelection, {
82
82
  appearance: options.appearance,
83
- getExtensionHeight: options.getExtensionHeight
83
+ getExtensionHeight: options.getExtensionHeight,
84
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
84
85
  }, featureFlags, options === null || options === void 0 ? void 0 : options.__rendererExtensionOptions, getIntl());
85
86
  }
86
87
  }, {
@@ -138,7 +138,8 @@ export const createPlugin = (dispatch, providerFactory, extensionHandlers, exten
138
138
  });
139
139
  const extensionNodeViewOptions = {
140
140
  appearance: options.appearance,
141
- getExtensionHeight: options.getExtensionHeight
141
+ getExtensionHeight: options.getExtensionHeight,
142
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
142
143
  };
143
144
  const macroInteractionDesignFeatureFlags = {
144
145
  showMacroInteractionDesignUpdates: (_featureFlags$macroIn = featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.macroInteractionUpdates) !== null && _featureFlags$macroIn !== void 0 ? _featureFlags$macroIn : false
@@ -79,7 +79,8 @@ export var extensionPlugin = function extensionPlugin(_ref) {
79
79
  var extensionHandlers = options.extensionHandlers || {};
80
80
  return createPlugin(dispatch, providerFactory, extensionHandlers, extensionLoadingHandlers, portalProviderAPI, eventDispatcher, _api, options.useLongPressSelection, {
81
81
  appearance: options.appearance,
82
- getExtensionHeight: options.getExtensionHeight
82
+ getExtensionHeight: options.getExtensionHeight,
83
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
83
84
  }, featureFlags, options === null || options === void 0 ? void 0 : options.__rendererExtensionOptions, getIntl());
84
85
  }
85
86
  }, {
@@ -195,7 +195,8 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, exten
195
195
  });
196
196
  var extensionNodeViewOptions = {
197
197
  appearance: options.appearance,
198
- getExtensionHeight: options.getExtensionHeight
198
+ getExtensionHeight: options.getExtensionHeight,
199
+ allowAIGeneratedContentMotion: options.allowAIGeneratedContentMotion
199
200
  };
200
201
  var macroInteractionDesignFeatureFlags = {
201
202
  showMacroInteractionDesignUpdates: (_featureFlags$macroIn = featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.macroInteractionUpdates) !== null && _featureFlags$macroIn !== void 0 ? _featureFlags$macroIn : false
@@ -52,6 +52,13 @@ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions
52
52
  rendererExtensionHandlers?: ExtensionHandlers;
53
53
  showUpdated1PBodiedExtensionUI: (node: ADFEntity) => boolean;
54
54
  };
55
+ /**
56
+ * Animates native embed nodes in: held closed while the embed loads, then opened out with the
57
+ * embed fading in. For surfaces where extensions arrive after the surrounding content, such as
58
+ * AI-generated MAUI apps in the Create with Rovo preview. Only native embed nodes animate; the
59
+ * reveal waits on the embed's own loading state, and other extension types are unaffected.
60
+ */
61
+ allowAIGeneratedContentMotion?: boolean;
55
62
  appearance?: EditorAppearance;
56
63
  breakoutEnabled?: boolean;
57
64
  /**
@@ -19,6 +19,7 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
19
19
  view: EditorView;
20
20
  }) => true | undefined;
21
21
  export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionLoadingHandlers: ExtensionHandlers | undefined, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
22
+ allowAIGeneratedContentMotion?: boolean;
22
23
  appearance?: EditorAppearance;
23
24
  getExtensionHeight?: GetPMNodeHeight;
24
25
  }, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'], intl?: IntlShape) => SafePlugin<ExtensionState>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "21.0.5",
3
+ "version": "21.1.1",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-plugin-copy-button": "^18.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^18.0.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^17.0.0",
42
- "@atlaskit/editor-plugin-mentions": "^20.0.0",
42
+ "@atlaskit/editor-plugin-mentions": "^20.1.0",
43
43
  "@atlaskit/editor-plugin-toolbar": "^15.0.0",
44
44
  "@atlaskit/editor-plugin-width": "^19.0.0",
45
45
  "@atlaskit/editor-prosemirror": "^8.0.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/empty-state": "^12.2.0",
49
49
  "@atlaskit/form": "^17.2.0",
50
50
  "@atlaskit/heading": "^7.2.0",
51
- "@atlaskit/icon": "^37.6.0",
51
+ "@atlaskit/icon": "^37.7.0",
52
52
  "@atlaskit/link": "^5.1.0",
53
53
  "@atlaskit/mention": "^29.1.0",
54
54
  "@atlaskit/menu": "^10.2.0",
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/tabs": "^21.2.0",
65
65
  "@atlaskit/textarea": "^10.2.0",
66
66
  "@atlaskit/textfield": "^10.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^193.0.0",
67
+ "@atlaskit/tmp-editor-statsig": "^194.0.0",
68
68
  "@atlaskit/toggle": "^17.3.0",
69
69
  "@atlaskit/tokens": "^16.12.0",
70
70
  "@atlaskit/tooltip": "^24.3.0",
@@ -79,7 +79,7 @@
79
79
  "uuid": "^11.1.1"
80
80
  },
81
81
  "peerDependencies": {
82
- "@atlaskit/editor-common": "^122.3.0",
82
+ "@atlaskit/editor-common": "^122.6.0",
83
83
  "react": "^18.2.0 || ^19.2.0",
84
84
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
85
85
  },