@atlaskit/editor-plugin-media 12.7.2 → 12.7.4
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 +14 -0
- package/dist/cjs/mediaPlugin.js +4 -4
- package/dist/cjs/nodeviews/lazy-media-group.js +2 -1
- package/dist/cjs/nodeviews/lazy-media-inline.js +2 -2
- package/dist/cjs/nodeviews/mediaGroup.js +10 -4
- package/dist/cjs/nodeviews/mediaInline.js +10 -5
- package/dist/cjs/nodeviews/mediaNodeView/index.js +11 -4
- package/dist/cjs/nodeviews/mediaSingle.js +10 -5
- package/dist/cjs/nodeviews/mediaSingleNext.js +2 -1
- package/dist/cjs/ui/MediaSSRReactContextsProvider.js +24 -0
- package/dist/es2019/mediaPlugin.js +4 -4
- package/dist/es2019/nodeviews/lazy-media-group.js +2 -2
- package/dist/es2019/nodeviews/lazy-media-inline.js +2 -2
- package/dist/es2019/nodeviews/mediaGroup.js +10 -5
- package/dist/es2019/nodeviews/mediaInline.js +10 -5
- package/dist/es2019/nodeviews/mediaNodeView/index.js +10 -5
- package/dist/es2019/nodeviews/mediaSingle.js +10 -6
- package/dist/es2019/nodeviews/mediaSingleNext.js +2 -1
- package/dist/es2019/ui/MediaSSRReactContextsProvider.js +18 -0
- package/dist/esm/mediaPlugin.js +4 -4
- package/dist/esm/nodeviews/lazy-media-group.js +2 -1
- package/dist/esm/nodeviews/lazy-media-inline.js +2 -2
- package/dist/esm/nodeviews/mediaGroup.js +10 -4
- package/dist/esm/nodeviews/mediaInline.js +10 -5
- package/dist/esm/nodeviews/mediaNodeView/index.js +11 -4
- package/dist/esm/nodeviews/mediaSingle.js +10 -5
- package/dist/esm/nodeviews/mediaSingleNext.js +2 -1
- package/dist/esm/ui/MediaSSRReactContextsProvider.js +17 -0
- package/dist/types/nodeviews/lazy-media-group.d.ts +2 -1
- package/dist/types/nodeviews/lazy-media-inline.d.ts +2 -1
- package/dist/types/nodeviews/mediaGroup.d.ts +2 -1
- package/dist/types/nodeviews/mediaInline.d.ts +3 -1
- package/dist/types/nodeviews/mediaNodeView/index.d.ts +2 -1
- package/dist/types/nodeviews/mediaSingle.d.ts +2 -1
- package/dist/types/nodeviews/types.d.ts +3 -0
- package/dist/types/ui/MediaSSRReactContextsProvider.d.ts +8 -0
- package/dist/types-ts4.5/nodeviews/lazy-media-group.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/lazy-media-inline.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/mediaGroup.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/mediaInline.d.ts +3 -1
- package/dist/types-ts4.5/nodeviews/mediaNodeView/index.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/mediaSingle.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/types.d.ts +3 -0
- package/dist/types-ts4.5/ui/MediaSSRReactContextsProvider.d.ts +8 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 12.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ed7459903c172`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ed7459903c172) -
|
|
14
|
+
Updated media to display correctly when ssr streaming is used.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 12.7.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/mediaPlugin.js
CHANGED
|
@@ -242,10 +242,10 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
242
242
|
return (0, _main.createPlugin)(schema, {
|
|
243
243
|
providerFactory: providerFactory,
|
|
244
244
|
nodeViews: {
|
|
245
|
-
mediaGroup: (0, _lazyMediaGroup.lazyMediaGroupView)(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
246
|
-
mediaSingle: (0, _mediaSingle.ReactMediaSingleNode)(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options),
|
|
247
|
-
media: (0, _mediaNodeView.ReactMediaNode)(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
248
|
-
mediaInline: (0, _lazyMediaInline.lazyMediaInlineView)(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher)
|
|
245
|
+
mediaGroup: (0, _lazyMediaGroup.lazyMediaGroupView)(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
246
|
+
mediaSingle: (0, _mediaSingle.ReactMediaSingleNode)(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options, getIntl()),
|
|
247
|
+
media: (0, _mediaNodeView.ReactMediaNode)(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
248
|
+
mediaInline: (0, _lazyMediaInline.lazyMediaInlineView)(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher, getIntl())
|
|
249
249
|
},
|
|
250
250
|
errorReporter: errorReporter,
|
|
251
251
|
uploadErrorHandler: options && options.uploadErrorHandler,
|
|
@@ -8,5 +8,6 @@ var _mediaGroup = require("./mediaGroup");
|
|
|
8
8
|
var lazyMediaGroupView = exports.lazyMediaGroupView = function lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
9
9
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
10
10
|
var api = arguments.length > 4 ? arguments[4] : undefined;
|
|
11
|
-
|
|
11
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
12
|
+
return (0, _mediaGroup.ReactMediaGroupNode)(portalProviderAPI, eventDispatcher, providerFactory, options, api, intl);
|
|
12
13
|
};
|
|
@@ -8,7 +8,7 @@ exports.lazyMediaInlineView = void 0;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
10
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
-
var lazyMediaInlineView = exports.lazyMediaInlineView = function lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) {
|
|
11
|
+
var lazyMediaInlineView = exports.lazyMediaInlineView = function lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) {
|
|
12
12
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
13
13
|
nodeName: 'mediaInline',
|
|
14
14
|
getNodeViewOptions: function getNodeViewOptions() {},
|
|
@@ -19,7 +19,7 @@ var lazyMediaInlineView = exports.lazyMediaInlineView = function lazyMediaInline
|
|
|
19
19
|
}).then(function (_ref) {
|
|
20
20
|
var ReactMediaInlineNode = _ref.ReactMediaInlineNode;
|
|
21
21
|
return function (node, view, getPos) {
|
|
22
|
-
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher)(node, view, getPos);
|
|
22
|
+
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl)(node, view, getPos);
|
|
23
23
|
};
|
|
24
24
|
});
|
|
25
25
|
return result;
|
|
@@ -15,6 +15,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
16
16
|
var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/react-node-view"));
|
|
17
17
|
var _useMediaProvider = require("../ui/hooks/useMediaProvider");
|
|
18
|
+
var _MediaSSRReactContextsProvider = require("../ui/MediaSSRReactContextsProvider");
|
|
18
19
|
var _mediaGroupNext = require("./mediaGroupNext");
|
|
19
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -50,9 +51,12 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
50
51
|
var _this = this;
|
|
51
52
|
var providerFactory = props.providerFactory,
|
|
52
53
|
mediaOptions = props.mediaOptions,
|
|
53
|
-
pluginInjectionApi = props.pluginInjectionApi
|
|
54
|
+
pluginInjectionApi = props.pluginInjectionApi,
|
|
55
|
+
intl = props.intl;
|
|
54
56
|
var getPos = this.getPos;
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_MediaSSRReactContextsProvider.MediaSSRReactContextsProvider, {
|
|
58
|
+
intl: intl
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
56
60
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
61
|
, {
|
|
58
62
|
providers: ['contextIdentifierProvider'],
|
|
@@ -87,18 +91,20 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
87
91
|
pluginInjectionApi: pluginInjectionApi
|
|
88
92
|
});
|
|
89
93
|
}
|
|
90
|
-
});
|
|
94
|
+
}));
|
|
91
95
|
}
|
|
92
96
|
}]);
|
|
93
97
|
}(_reactNodeView.default);
|
|
94
98
|
var ReactMediaGroupNode = exports.ReactMediaGroupNode = function ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
95
99
|
var mediaOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
96
100
|
var pluginInjectionApi = arguments.length > 4 ? arguments[4] : undefined;
|
|
101
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
97
102
|
return function (node, view, getPos) {
|
|
98
103
|
return new MediaGroupNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
99
104
|
providerFactory: providerFactory,
|
|
100
105
|
mediaOptions: mediaOptions,
|
|
101
|
-
pluginInjectionApi: pluginInjectionApi
|
|
106
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
107
|
+
intl: intl
|
|
102
108
|
}).init();
|
|
103
109
|
};
|
|
104
110
|
};
|
|
@@ -25,6 +25,7 @@ var _mediaCard = require("@atlaskit/media-card");
|
|
|
25
25
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
26
26
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
27
27
|
var _isType = require("../pm-plugins/utils/is-type");
|
|
28
|
+
var _MediaSSRReactContextsProvider = require("../ui/MediaSSRReactContextsProvider");
|
|
28
29
|
var _MediaViewerContainer = require("../ui/MediaViewer/MediaViewerContainer");
|
|
29
30
|
var _mediaNodeUpdater = require("./mediaNodeUpdater");
|
|
30
31
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -311,10 +312,13 @@ var MediaInlineNodeView = exports.MediaInlineNodeView = /*#__PURE__*/function (_
|
|
|
311
312
|
var _this = this;
|
|
312
313
|
var providerFactory = props.providerFactory,
|
|
313
314
|
api = props.api,
|
|
314
|
-
fallbackMediaNameFetcher = props.fallbackMediaNameFetcher
|
|
315
|
+
fallbackMediaNameFetcher = props.fallbackMediaNameFetcher,
|
|
316
|
+
intl = props.intl;
|
|
315
317
|
var view = this.view;
|
|
316
318
|
var getPos = this.getPos;
|
|
317
|
-
return (0, _react2.jsx)(
|
|
319
|
+
return (0, _react2.jsx)(_MediaSSRReactContextsProvider.MediaSSRReactContextsProvider, {
|
|
320
|
+
intl: intl
|
|
321
|
+
}, (0, _react2.jsx)(_providerFactory.WithProviders
|
|
318
322
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
319
323
|
, {
|
|
320
324
|
providers: ['contextIdentifierProvider'],
|
|
@@ -335,17 +339,18 @@ var MediaInlineNodeView = exports.MediaInlineNodeView = /*#__PURE__*/function (_
|
|
|
335
339
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
336
340
|
});
|
|
337
341
|
}
|
|
338
|
-
});
|
|
342
|
+
}));
|
|
339
343
|
}
|
|
340
344
|
}]);
|
|
341
345
|
}(_selectionBasedNodeView.SelectionBasedNodeView);
|
|
342
|
-
var ReactMediaInlineNode = exports.ReactMediaInlineNode = function ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) {
|
|
346
|
+
var ReactMediaInlineNode = exports.ReactMediaInlineNode = function ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) {
|
|
343
347
|
return function (node, view, getPos) {
|
|
344
348
|
return new MediaInlineNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
345
349
|
providerFactory: providerFactory,
|
|
346
350
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
347
351
|
api: api,
|
|
348
|
-
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
352
|
+
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
353
|
+
intl: intl
|
|
349
354
|
}).init();
|
|
350
355
|
};
|
|
351
356
|
};
|
|
@@ -26,6 +26,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
26
26
|
var _aiGeneratingDecoration = require("../../pm-plugins/ai-generating-decoration");
|
|
27
27
|
var _helpers = require("../../pm-plugins/commands/helpers");
|
|
28
28
|
var _mediaCommon = require("../../pm-plugins/utils/media-common");
|
|
29
|
+
var _MediaSSRReactContextsProvider = require("../../ui/MediaSSRReactContextsProvider");
|
|
29
30
|
var _media = _interopRequireDefault(require("./media"));
|
|
30
31
|
var _excluded = ["width", "height"];
|
|
31
32
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -300,14 +301,18 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
300
301
|
}, {
|
|
301
302
|
key: "render",
|
|
302
303
|
value: function render() {
|
|
303
|
-
var
|
|
304
|
-
|
|
304
|
+
var _this$reactComponentP2 = this.reactComponentProps,
|
|
305
|
+
providerFactory = _this$reactComponentP2.providerFactory,
|
|
306
|
+
intl = _this$reactComponentP2.intl;
|
|
307
|
+
return /*#__PURE__*/_react.default.createElement(_MediaSSRReactContextsProvider.MediaSSRReactContextsProvider, {
|
|
308
|
+
intl: intl
|
|
309
|
+
}, /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
305
310
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
306
311
|
, {
|
|
307
312
|
providers: ['contextIdentifierProvider'],
|
|
308
313
|
providerFactory: providerFactory,
|
|
309
314
|
renderNode: this.renderMediaNodeWithProviders
|
|
310
|
-
});
|
|
315
|
+
}));
|
|
311
316
|
}
|
|
312
317
|
}, {
|
|
313
318
|
key: "destroy",
|
|
@@ -322,12 +327,14 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
322
327
|
var ReactMediaNode = exports.ReactMediaNode = function ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
323
328
|
var mediaOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
324
329
|
var pluginInjectionApi = arguments.length > 4 ? arguments[4] : undefined;
|
|
330
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
325
331
|
return function (node, view, getPos) {
|
|
326
332
|
return new MediaNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
327
333
|
eventDispatcher: eventDispatcher,
|
|
328
334
|
providerFactory: providerFactory,
|
|
329
335
|
mediaOptions: mediaOptions,
|
|
330
|
-
pluginInjectionApi: pluginInjectionApi
|
|
336
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
337
|
+
intl: intl
|
|
331
338
|
}).init();
|
|
332
339
|
};
|
|
333
340
|
};
|
|
@@ -20,6 +20,7 @@ var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/rea
|
|
|
20
20
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
21
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
22
22
|
var _main = require("../pm-plugins/main");
|
|
23
|
+
var _MediaSSRReactContextsProvider = require("../ui/MediaSSRReactContextsProvider");
|
|
23
24
|
var _mediaSingleNext = require("./mediaSingleNext");
|
|
24
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
25
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -248,11 +249,13 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
248
249
|
mediaOptions = _this$reactComponentP5.mediaOptions,
|
|
249
250
|
dispatchAnalyticsEvent = _this$reactComponentP5.dispatchAnalyticsEvent,
|
|
250
251
|
pluginInjectionApi = _this$reactComponentP5.pluginInjectionApi,
|
|
251
|
-
editorAppearance = _this$reactComponentP5.editorAppearance
|
|
252
|
-
|
|
252
|
+
editorAppearance = _this$reactComponentP5.editorAppearance,
|
|
253
|
+
intl = _this$reactComponentP5.intl;
|
|
253
254
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
254
255
|
var getPos = this.getPos;
|
|
255
|
-
return (0, _react2.jsx)(
|
|
256
|
+
return (0, _react2.jsx)(_MediaSSRReactContextsProvider.MediaSSRReactContextsProvider, {
|
|
257
|
+
intl: intl
|
|
258
|
+
}, (0, _react2.jsx)(_providerFactory.WithProviders
|
|
256
259
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
257
260
|
, {
|
|
258
261
|
providers: ['contextIdentifierProvider'],
|
|
@@ -282,7 +285,7 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
282
285
|
editorAppearance: editorAppearance
|
|
283
286
|
});
|
|
284
287
|
}
|
|
285
|
-
});
|
|
288
|
+
}));
|
|
286
289
|
}
|
|
287
290
|
}, {
|
|
288
291
|
key: "ignoreMutation",
|
|
@@ -312,6 +315,7 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
312
315
|
}(_reactNodeView.default);
|
|
313
316
|
var ReactMediaSingleNode = exports.ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, pluginInjectionApi, dispatchAnalyticsEvent) {
|
|
314
317
|
var mediaOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
318
|
+
var intl = arguments.length > 6 ? arguments[6] : undefined;
|
|
315
319
|
return function (node, view, getPos) {
|
|
316
320
|
return new MediaSingleNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
317
321
|
eventDispatcher: eventDispatcher,
|
|
@@ -321,7 +325,8 @@ var ReactMediaSingleNode = exports.ReactMediaSingleNode = function ReactMediaSin
|
|
|
321
325
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
322
326
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
323
327
|
pluginInjectionApi: pluginInjectionApi,
|
|
324
|
-
editorAppearance: mediaOptions.editorAppearance
|
|
328
|
+
editorAppearance: mediaOptions.editorAppearance,
|
|
329
|
+
intl: intl
|
|
325
330
|
}).init();
|
|
326
331
|
};
|
|
327
332
|
};
|
|
@@ -16,6 +16,7 @@ var _browser = require("@atlaskit/editor-common/browser");
|
|
|
16
16
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
17
17
|
var _media = require("@atlaskit/editor-common/media");
|
|
18
18
|
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
19
|
+
var _reactNodeView = require("@atlaskit/editor-common/react-node-view");
|
|
19
20
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
21
22
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
@@ -501,7 +502,7 @@ var MediaSingleNodeNext = exports.MediaSingleNodeNext = function MediaSingleNode
|
|
|
501
502
|
getPos: getPos,
|
|
502
503
|
isDrafting: isCurrentNodeDrafting
|
|
503
504
|
}));
|
|
504
|
-
}), (0, _react2.jsx)(
|
|
505
|
+
}), (0, _react2.jsx)(_reactNodeView.NodeViewContentHole, {
|
|
505
506
|
ref: forwardRef
|
|
506
507
|
}), shouldShowPlaceholder && ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _react2.jsx)(_CaptionPlaceholder.CaptionPlaceholderButton
|
|
507
508
|
// platform_editor_typography_ugc clean up
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.MediaSSRReactContextsProvider = MediaSSRReactContextsProvider;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
|
+
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
|
+
function MediaSSRReactContextsProvider(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
intl = _ref.intl;
|
|
15
|
+
if (!(0, _expValEquals.expValEquals)('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !(0, _coreUtils.isSSR)()) {
|
|
16
|
+
return children;
|
|
17
|
+
}
|
|
18
|
+
if (!intl) {
|
|
19
|
+
return children;
|
|
20
|
+
}
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.RawIntlProvider, {
|
|
22
|
+
value: intl
|
|
23
|
+
}, children);
|
|
24
|
+
}
|
|
@@ -234,10 +234,10 @@ export const mediaPlugin = ({
|
|
|
234
234
|
return createPlugin(schema, {
|
|
235
235
|
providerFactory,
|
|
236
236
|
nodeViews: {
|
|
237
|
-
mediaGroup: lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
238
|
-
mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options),
|
|
239
|
-
media: ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
240
|
-
mediaInline: lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher)
|
|
237
|
+
mediaGroup: lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
238
|
+
mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options, getIntl()),
|
|
239
|
+
media: ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
240
|
+
mediaInline: lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher, getIntl())
|
|
241
241
|
},
|
|
242
242
|
errorReporter,
|
|
243
243
|
uploadErrorHandler: options && options.uploadErrorHandler,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactMediaGroupNode } from './mediaGroup';
|
|
2
|
-
export const lazyMediaGroupView = (portalProviderAPI, eventDispatcher, providerFactory, options = {}, api) => {
|
|
3
|
-
return ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory, options, api);
|
|
2
|
+
export const lazyMediaGroupView = (portalProviderAPI, eventDispatcher, providerFactory, options = {}, api, intl) => {
|
|
3
|
+
return ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory, options, api, intl);
|
|
4
4
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
export const lazyMediaInlineView = (portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) => {
|
|
2
|
+
export const lazyMediaInlineView = (portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) => {
|
|
3
3
|
return withLazyLoading({
|
|
4
4
|
nodeName: 'mediaInline',
|
|
5
5
|
getNodeViewOptions: () => {},
|
|
@@ -9,7 +9,7 @@ export const lazyMediaInlineView = (portalProviderAPI, eventDispatcher, provider
|
|
|
9
9
|
ReactMediaInlineNode
|
|
10
10
|
}) => {
|
|
11
11
|
return (node, view, getPos) => {
|
|
12
|
-
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher)(node, view, getPos);
|
|
12
|
+
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl)(node, view, getPos);
|
|
13
13
|
};
|
|
14
14
|
});
|
|
15
15
|
return result;
|
|
@@ -3,6 +3,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
3
3
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
import { useMediaProvider } from '../ui/hooks/useMediaProvider';
|
|
6
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
6
7
|
import { MediaGroupNext } from './mediaGroupNext';
|
|
7
8
|
const selector = states => {
|
|
8
9
|
var _states$editorDisable, _states$editorViewMod;
|
|
@@ -31,10 +32,13 @@ class MediaGroupNodeView extends ReactNodeView {
|
|
|
31
32
|
const {
|
|
32
33
|
providerFactory,
|
|
33
34
|
mediaOptions,
|
|
34
|
-
pluginInjectionApi
|
|
35
|
+
pluginInjectionApi,
|
|
36
|
+
intl
|
|
35
37
|
} = props;
|
|
36
38
|
const getPos = this.getPos;
|
|
37
|
-
return /*#__PURE__*/React.createElement(
|
|
39
|
+
return /*#__PURE__*/React.createElement(MediaSSRReactContextsProvider, {
|
|
40
|
+
intl: intl
|
|
41
|
+
}, /*#__PURE__*/React.createElement(WithProviders
|
|
38
42
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
39
43
|
, {
|
|
40
44
|
providers: ['contextIdentifierProvider'],
|
|
@@ -71,13 +75,14 @@ class MediaGroupNodeView extends ReactNodeView {
|
|
|
71
75
|
pluginInjectionApi: pluginInjectionApi
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
|
-
});
|
|
78
|
+
}));
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
|
-
export const ReactMediaGroupNode = (portalProviderAPI, eventDispatcher, providerFactory, mediaOptions = {}, pluginInjectionApi) => (node, view, getPos) => {
|
|
81
|
+
export const ReactMediaGroupNode = (portalProviderAPI, eventDispatcher, providerFactory, mediaOptions = {}, pluginInjectionApi, intl) => (node, view, getPos) => {
|
|
78
82
|
return new MediaGroupNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
79
83
|
providerFactory,
|
|
80
84
|
mediaOptions,
|
|
81
|
-
pluginInjectionApi
|
|
85
|
+
pluginInjectionApi,
|
|
86
|
+
intl
|
|
82
87
|
}).init();
|
|
83
88
|
};
|
|
@@ -14,6 +14,7 @@ import { MediaInlineCard } from '@atlaskit/media-card';
|
|
|
14
14
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
15
15
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
16
16
|
import { isImage } from '../pm-plugins/utils/is-type';
|
|
17
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
17
18
|
import { MediaViewerContainer } from '../ui/MediaViewer/MediaViewerContainer';
|
|
18
19
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
19
20
|
const createMediaNodeUpdater = props => {
|
|
@@ -230,13 +231,16 @@ export class MediaInlineNodeView extends SelectionBasedNodeView {
|
|
|
230
231
|
const {
|
|
231
232
|
providerFactory,
|
|
232
233
|
api,
|
|
233
|
-
fallbackMediaNameFetcher
|
|
234
|
+
fallbackMediaNameFetcher,
|
|
235
|
+
intl
|
|
234
236
|
} = props;
|
|
235
237
|
const {
|
|
236
238
|
view
|
|
237
239
|
} = this;
|
|
238
240
|
const getPos = this.getPos;
|
|
239
|
-
return jsx(
|
|
241
|
+
return jsx(MediaSSRReactContextsProvider, {
|
|
242
|
+
intl: intl
|
|
243
|
+
}, jsx(WithProviders
|
|
240
244
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
241
245
|
, {
|
|
242
246
|
providers: ['contextIdentifierProvider'],
|
|
@@ -258,14 +262,15 @@ export class MediaInlineNodeView extends SelectionBasedNodeView {
|
|
|
258
262
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
259
263
|
});
|
|
260
264
|
}
|
|
261
|
-
});
|
|
265
|
+
}));
|
|
262
266
|
}
|
|
263
267
|
}
|
|
264
|
-
export const ReactMediaInlineNode = (portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) => (node, view, getPos) => {
|
|
268
|
+
export const ReactMediaInlineNode = (portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) => (node, view, getPos) => {
|
|
265
269
|
return new MediaInlineNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
266
270
|
providerFactory,
|
|
267
271
|
dispatchAnalyticsEvent,
|
|
268
272
|
api,
|
|
269
|
-
fallbackMediaNameFetcher
|
|
273
|
+
fallbackMediaNameFetcher,
|
|
274
|
+
intl
|
|
270
275
|
}).init();
|
|
271
276
|
};
|
|
@@ -12,6 +12,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
12
12
|
import { hasAIGeneratingDecoration } from '../../pm-plugins/ai-generating-decoration';
|
|
13
13
|
import { updateCurrentMediaNodeAttrs } from '../../pm-plugins/commands/helpers';
|
|
14
14
|
import { isMediaBlobUrlFromAttrs } from '../../pm-plugins/utils/media-common';
|
|
15
|
+
import { MediaSSRReactContextsProvider } from '../../ui/MediaSSRReactContextsProvider';
|
|
15
16
|
// Ignored via go/ees005
|
|
16
17
|
// eslint-disable-next-line import/no-named-as-default
|
|
17
18
|
import MediaNode from './media';
|
|
@@ -275,15 +276,18 @@ class MediaNodeView extends SelectionBasedNodeView {
|
|
|
275
276
|
}
|
|
276
277
|
render() {
|
|
277
278
|
const {
|
|
278
|
-
providerFactory
|
|
279
|
+
providerFactory,
|
|
280
|
+
intl
|
|
279
281
|
} = this.reactComponentProps;
|
|
280
|
-
return /*#__PURE__*/React.createElement(
|
|
282
|
+
return /*#__PURE__*/React.createElement(MediaSSRReactContextsProvider, {
|
|
283
|
+
intl: intl
|
|
284
|
+
}, /*#__PURE__*/React.createElement(WithProviders
|
|
281
285
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
282
286
|
, {
|
|
283
287
|
providers: ['contextIdentifierProvider'],
|
|
284
288
|
providerFactory: providerFactory,
|
|
285
289
|
renderNode: this.renderMediaNodeWithProviders
|
|
286
|
-
});
|
|
290
|
+
}));
|
|
287
291
|
}
|
|
288
292
|
destroy() {
|
|
289
293
|
if (this.resizeListenerBinding) {
|
|
@@ -292,11 +296,12 @@ class MediaNodeView extends SelectionBasedNodeView {
|
|
|
292
296
|
super.destroy();
|
|
293
297
|
}
|
|
294
298
|
}
|
|
295
|
-
export const ReactMediaNode = (portalProviderAPI, eventDispatcher, providerFactory, mediaOptions = {}, pluginInjectionApi) => (node, view, getPos) => {
|
|
299
|
+
export const ReactMediaNode = (portalProviderAPI, eventDispatcher, providerFactory, mediaOptions = {}, pluginInjectionApi, intl) => (node, view, getPos) => {
|
|
296
300
|
return new MediaNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
297
301
|
eventDispatcher,
|
|
298
302
|
providerFactory,
|
|
299
303
|
mediaOptions,
|
|
300
|
-
pluginInjectionApi
|
|
304
|
+
pluginInjectionApi,
|
|
305
|
+
intl
|
|
301
306
|
}).init();
|
|
302
307
|
};
|
|
@@ -15,6 +15,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
16
16
|
import { isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
17
17
|
import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
|
|
18
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
18
19
|
import { MediaSingleNodeNext } from './mediaSingleNext';
|
|
19
20
|
const selector = states => {
|
|
20
21
|
var _states$mediaState, _states$mediaState2, _states$annotationSta, _states$annotationSta2, _states$widthState, _states$widthState2, _states$editorDisable, _states$editorViewMod;
|
|
@@ -205,12 +206,14 @@ class MediaSingleNodeView extends ReactNodeView {
|
|
|
205
206
|
mediaOptions,
|
|
206
207
|
dispatchAnalyticsEvent,
|
|
207
208
|
pluginInjectionApi,
|
|
208
|
-
editorAppearance
|
|
209
|
+
editorAppearance,
|
|
210
|
+
intl
|
|
209
211
|
} = this.reactComponentProps;
|
|
210
|
-
|
|
211
212
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
212
213
|
const getPos = this.getPos;
|
|
213
|
-
return jsx(
|
|
214
|
+
return jsx(MediaSSRReactContextsProvider, {
|
|
215
|
+
intl: intl
|
|
216
|
+
}, jsx(WithProviders
|
|
214
217
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
215
218
|
, {
|
|
216
219
|
providers: ['contextIdentifierProvider'],
|
|
@@ -241,7 +244,7 @@ class MediaSingleNodeView extends ReactNodeView {
|
|
|
241
244
|
editorAppearance: editorAppearance
|
|
242
245
|
});
|
|
243
246
|
}
|
|
244
|
-
});
|
|
247
|
+
}));
|
|
245
248
|
}
|
|
246
249
|
ignoreMutation() {
|
|
247
250
|
// DOM has changed; recalculate if we need to re-render
|
|
@@ -262,7 +265,7 @@ class MediaSingleNodeView extends ReactNodeView {
|
|
|
262
265
|
(_this$unsubscribeToVi = this.unsubscribeToViewModeChange) === null || _this$unsubscribeToVi === void 0 ? void 0 : _this$unsubscribeToVi.call(this);
|
|
263
266
|
}
|
|
264
267
|
}
|
|
265
|
-
export const ReactMediaSingleNode = (portalProviderAPI, eventDispatcher, providerFactory, pluginInjectionApi, dispatchAnalyticsEvent, mediaOptions = {}) => (node, view, getPos) => {
|
|
268
|
+
export const ReactMediaSingleNode = (portalProviderAPI, eventDispatcher, providerFactory, pluginInjectionApi, dispatchAnalyticsEvent, mediaOptions = {}, intl) => (node, view, getPos) => {
|
|
266
269
|
return new MediaSingleNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
267
270
|
eventDispatcher,
|
|
268
271
|
fullWidthMode: mediaOptions.fullWidthEnabled,
|
|
@@ -271,6 +274,7 @@ export const ReactMediaSingleNode = (portalProviderAPI, eventDispatcher, provide
|
|
|
271
274
|
dispatchAnalyticsEvent,
|
|
272
275
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
273
276
|
pluginInjectionApi,
|
|
274
|
-
editorAppearance: mediaOptions.editorAppearance
|
|
277
|
+
editorAppearance: mediaOptions.editorAppearance,
|
|
278
|
+
intl
|
|
275
279
|
}).init();
|
|
276
280
|
};
|
|
@@ -11,6 +11,7 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
11
11
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
12
12
|
import { captionMessages } from '@atlaskit/editor-common/media';
|
|
13
13
|
import { calcMediaSinglePixelWidth, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, ExternalImageBadge, getMaxWidthForNestedNode, MEDIA_SINGLE_GUTTER_SIZE, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
14
|
+
import { NodeViewContentHole } from '@atlaskit/editor-common/react-node-view';
|
|
14
15
|
import { MediaSingle } from '@atlaskit/editor-common/ui';
|
|
15
16
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
16
17
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -460,7 +461,7 @@ export const MediaSingleNodeNext = mediaSingleNodeNextProps => {
|
|
|
460
461
|
mediaNode: mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.firstChild,
|
|
461
462
|
getPos: getPos,
|
|
462
463
|
isDrafting: isCurrentNodeDrafting
|
|
463
|
-
}))), jsx(
|
|
464
|
+
}))), jsx(NodeViewContentHole, {
|
|
464
465
|
ref: forwardRef
|
|
465
466
|
}), shouldShowPlaceholder && (fg('platform_editor_typography_ugc') ? jsx(CaptionPlaceholderButton
|
|
466
467
|
// platform_editor_typography_ugc clean up
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RawIntlProvider } from 'react-intl';
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
|
+
export function MediaSSRReactContextsProvider({
|
|
6
|
+
children,
|
|
7
|
+
intl
|
|
8
|
+
}) {
|
|
9
|
+
if (!expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !isSSR()) {
|
|
10
|
+
return children;
|
|
11
|
+
}
|
|
12
|
+
if (!intl) {
|
|
13
|
+
return children;
|
|
14
|
+
}
|
|
15
|
+
return /*#__PURE__*/React.createElement(RawIntlProvider, {
|
|
16
|
+
value: intl
|
|
17
|
+
}, children);
|
|
18
|
+
}
|
package/dist/esm/mediaPlugin.js
CHANGED
|
@@ -233,10 +233,10 @@ export var mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
233
233
|
return createPlugin(schema, {
|
|
234
234
|
providerFactory: providerFactory,
|
|
235
235
|
nodeViews: {
|
|
236
|
-
mediaGroup: lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
237
|
-
mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options),
|
|
238
|
-
media: ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api),
|
|
239
|
-
mediaInline: lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher)
|
|
236
|
+
mediaGroup: lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
237
|
+
mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options, getIntl()),
|
|
238
|
+
media: ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api, getIntl()),
|
|
239
|
+
mediaInline: lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, undefined, options === null || options === void 0 ? void 0 : options.fallbackMediaNameFetcher, getIntl())
|
|
240
240
|
},
|
|
241
241
|
errorReporter: errorReporter,
|
|
242
242
|
uploadErrorHandler: options && options.uploadErrorHandler,
|
|
@@ -2,5 +2,6 @@ import { ReactMediaGroupNode } from './mediaGroup';
|
|
|
2
2
|
export var lazyMediaGroupView = function lazyMediaGroupView(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
3
3
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
4
4
|
var api = arguments.length > 4 ? arguments[4] : undefined;
|
|
5
|
-
|
|
5
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
6
|
+
return ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory, options, api, intl);
|
|
6
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
export var lazyMediaInlineView = function lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) {
|
|
2
|
+
export var lazyMediaInlineView = function lazyMediaInlineView(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) {
|
|
3
3
|
return withLazyLoading({
|
|
4
4
|
nodeName: 'mediaInline',
|
|
5
5
|
getNodeViewOptions: function getNodeViewOptions() {},
|
|
@@ -8,7 +8,7 @@ export var lazyMediaInlineView = function lazyMediaInlineView(portalProviderAPI,
|
|
|
8
8
|
'./mediaInline').then(function (_ref) {
|
|
9
9
|
var ReactMediaInlineNode = _ref.ReactMediaInlineNode;
|
|
10
10
|
return function (node, view, getPos) {
|
|
11
|
-
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher)(node, view, getPos);
|
|
11
|
+
return ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl)(node, view, getPos);
|
|
12
12
|
};
|
|
13
13
|
});
|
|
14
14
|
return result;
|
|
@@ -10,6 +10,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
10
10
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
11
11
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
12
12
|
import { useMediaProvider } from '../ui/hooks/useMediaProvider';
|
|
13
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
13
14
|
import { MediaGroupNext } from './mediaGroupNext';
|
|
14
15
|
var selector = function selector(states) {
|
|
15
16
|
var _states$editorDisable, _states$editorViewMod;
|
|
@@ -43,9 +44,12 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
43
44
|
var _this = this;
|
|
44
45
|
var providerFactory = props.providerFactory,
|
|
45
46
|
mediaOptions = props.mediaOptions,
|
|
46
|
-
pluginInjectionApi = props.pluginInjectionApi
|
|
47
|
+
pluginInjectionApi = props.pluginInjectionApi,
|
|
48
|
+
intl = props.intl;
|
|
47
49
|
var getPos = this.getPos;
|
|
48
|
-
return /*#__PURE__*/React.createElement(
|
|
50
|
+
return /*#__PURE__*/React.createElement(MediaSSRReactContextsProvider, {
|
|
51
|
+
intl: intl
|
|
52
|
+
}, /*#__PURE__*/React.createElement(WithProviders
|
|
49
53
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
54
|
, {
|
|
51
55
|
providers: ['contextIdentifierProvider'],
|
|
@@ -80,18 +84,20 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
80
84
|
pluginInjectionApi: pluginInjectionApi
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
|
-
});
|
|
87
|
+
}));
|
|
84
88
|
}
|
|
85
89
|
}]);
|
|
86
90
|
}(ReactNodeView);
|
|
87
91
|
export var ReactMediaGroupNode = function ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
88
92
|
var mediaOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
89
93
|
var pluginInjectionApi = arguments.length > 4 ? arguments[4] : undefined;
|
|
94
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
90
95
|
return function (node, view, getPos) {
|
|
91
96
|
return new MediaGroupNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
92
97
|
providerFactory: providerFactory,
|
|
93
98
|
mediaOptions: mediaOptions,
|
|
94
|
-
pluginInjectionApi: pluginInjectionApi
|
|
99
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
100
|
+
intl: intl
|
|
95
101
|
}).init();
|
|
96
102
|
};
|
|
97
103
|
};
|
|
@@ -29,6 +29,7 @@ import { MediaInlineCard } from '@atlaskit/media-card';
|
|
|
29
29
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
30
30
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
31
31
|
import { isImage } from '../pm-plugins/utils/is-type';
|
|
32
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
32
33
|
import { MediaViewerContainer } from '../ui/MediaViewer/MediaViewerContainer';
|
|
33
34
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
34
35
|
var createMediaNodeUpdater = function createMediaNodeUpdater(props) {
|
|
@@ -307,10 +308,13 @@ export var MediaInlineNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
307
308
|
var _this = this;
|
|
308
309
|
var providerFactory = props.providerFactory,
|
|
309
310
|
api = props.api,
|
|
310
|
-
fallbackMediaNameFetcher = props.fallbackMediaNameFetcher
|
|
311
|
+
fallbackMediaNameFetcher = props.fallbackMediaNameFetcher,
|
|
312
|
+
intl = props.intl;
|
|
311
313
|
var view = this.view;
|
|
312
314
|
var getPos = this.getPos;
|
|
313
|
-
return jsx(
|
|
315
|
+
return jsx(MediaSSRReactContextsProvider, {
|
|
316
|
+
intl: intl
|
|
317
|
+
}, jsx(WithProviders
|
|
314
318
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
315
319
|
, {
|
|
316
320
|
providers: ['contextIdentifierProvider'],
|
|
@@ -331,17 +335,18 @@ export var MediaInlineNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
331
335
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
332
336
|
});
|
|
333
337
|
}
|
|
334
|
-
});
|
|
338
|
+
}));
|
|
335
339
|
}
|
|
336
340
|
}]);
|
|
337
341
|
}(SelectionBasedNodeView);
|
|
338
|
-
export var ReactMediaInlineNode = function ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher) {
|
|
342
|
+
export var ReactMediaInlineNode = function ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, fallbackMediaNameFetcher, intl) {
|
|
339
343
|
return function (node, view, getPos) {
|
|
340
344
|
return new MediaInlineNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
341
345
|
providerFactory: providerFactory,
|
|
342
346
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
343
347
|
api: api,
|
|
344
|
-
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
348
|
+
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
349
|
+
intl: intl
|
|
345
350
|
}).init();
|
|
346
351
|
};
|
|
347
352
|
};
|
|
@@ -25,6 +25,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
25
25
|
import { hasAIGeneratingDecoration } from '../../pm-plugins/ai-generating-decoration';
|
|
26
26
|
import { updateCurrentMediaNodeAttrs } from '../../pm-plugins/commands/helpers';
|
|
27
27
|
import { isMediaBlobUrlFromAttrs } from '../../pm-plugins/utils/media-common';
|
|
28
|
+
import { MediaSSRReactContextsProvider } from '../../ui/MediaSSRReactContextsProvider';
|
|
28
29
|
// Ignored via go/ees005
|
|
29
30
|
// eslint-disable-next-line import/no-named-as-default
|
|
30
31
|
import MediaNode from './media';
|
|
@@ -294,14 +295,18 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
294
295
|
}, {
|
|
295
296
|
key: "render",
|
|
296
297
|
value: function render() {
|
|
297
|
-
var
|
|
298
|
-
|
|
298
|
+
var _this$reactComponentP2 = this.reactComponentProps,
|
|
299
|
+
providerFactory = _this$reactComponentP2.providerFactory,
|
|
300
|
+
intl = _this$reactComponentP2.intl;
|
|
301
|
+
return /*#__PURE__*/React.createElement(MediaSSRReactContextsProvider, {
|
|
302
|
+
intl: intl
|
|
303
|
+
}, /*#__PURE__*/React.createElement(WithProviders
|
|
299
304
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
300
305
|
, {
|
|
301
306
|
providers: ['contextIdentifierProvider'],
|
|
302
307
|
providerFactory: providerFactory,
|
|
303
308
|
renderNode: this.renderMediaNodeWithProviders
|
|
304
|
-
});
|
|
309
|
+
}));
|
|
305
310
|
}
|
|
306
311
|
}, {
|
|
307
312
|
key: "destroy",
|
|
@@ -316,12 +321,14 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
316
321
|
export var ReactMediaNode = function ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
317
322
|
var mediaOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
318
323
|
var pluginInjectionApi = arguments.length > 4 ? arguments[4] : undefined;
|
|
324
|
+
var intl = arguments.length > 5 ? arguments[5] : undefined;
|
|
319
325
|
return function (node, view, getPos) {
|
|
320
326
|
return new MediaNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
321
327
|
eventDispatcher: eventDispatcher,
|
|
322
328
|
providerFactory: providerFactory,
|
|
323
329
|
mediaOptions: mediaOptions,
|
|
324
|
-
pluginInjectionApi: pluginInjectionApi
|
|
330
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
331
|
+
intl: intl
|
|
325
332
|
}).init();
|
|
326
333
|
};
|
|
327
334
|
};
|
|
@@ -24,6 +24,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
25
25
|
import { isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
26
26
|
import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
|
|
27
|
+
import { MediaSSRReactContextsProvider } from '../ui/MediaSSRReactContextsProvider';
|
|
27
28
|
import { MediaSingleNodeNext } from './mediaSingleNext';
|
|
28
29
|
var selector = function selector(states) {
|
|
29
30
|
var _states$mediaState, _states$mediaState2, _states$annotationSta, _states$annotationSta2, _states$widthState, _states$widthState2, _states$editorDisable, _states$editorViewMod;
|
|
@@ -244,11 +245,13 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
244
245
|
mediaOptions = _this$reactComponentP5.mediaOptions,
|
|
245
246
|
dispatchAnalyticsEvent = _this$reactComponentP5.dispatchAnalyticsEvent,
|
|
246
247
|
pluginInjectionApi = _this$reactComponentP5.pluginInjectionApi,
|
|
247
|
-
editorAppearance = _this$reactComponentP5.editorAppearance
|
|
248
|
-
|
|
248
|
+
editorAppearance = _this$reactComponentP5.editorAppearance,
|
|
249
|
+
intl = _this$reactComponentP5.intl;
|
|
249
250
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
250
251
|
var getPos = this.getPos;
|
|
251
|
-
return jsx(
|
|
252
|
+
return jsx(MediaSSRReactContextsProvider, {
|
|
253
|
+
intl: intl
|
|
254
|
+
}, jsx(WithProviders
|
|
252
255
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
253
256
|
, {
|
|
254
257
|
providers: ['contextIdentifierProvider'],
|
|
@@ -278,7 +281,7 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
278
281
|
editorAppearance: editorAppearance
|
|
279
282
|
});
|
|
280
283
|
}
|
|
281
|
-
});
|
|
284
|
+
}));
|
|
282
285
|
}
|
|
283
286
|
}, {
|
|
284
287
|
key: "ignoreMutation",
|
|
@@ -308,6 +311,7 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
308
311
|
}(ReactNodeView);
|
|
309
312
|
export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, pluginInjectionApi, dispatchAnalyticsEvent) {
|
|
310
313
|
var mediaOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
314
|
+
var intl = arguments.length > 6 ? arguments[6] : undefined;
|
|
311
315
|
return function (node, view, getPos) {
|
|
312
316
|
return new MediaSingleNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
313
317
|
eventDispatcher: eventDispatcher,
|
|
@@ -317,7 +321,8 @@ export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAP
|
|
|
317
321
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
318
322
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
319
323
|
pluginInjectionApi: pluginInjectionApi,
|
|
320
|
-
editorAppearance: mediaOptions.editorAppearance
|
|
324
|
+
editorAppearance: mediaOptions.editorAppearance,
|
|
325
|
+
intl: intl
|
|
321
326
|
}).init();
|
|
322
327
|
};
|
|
323
328
|
};
|
|
@@ -17,6 +17,7 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
17
17
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import { captionMessages } from '@atlaskit/editor-common/media';
|
|
19
19
|
import { calcMediaSinglePixelWidth, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, ExternalImageBadge, getMaxWidthForNestedNode, MEDIA_SINGLE_GUTTER_SIZE, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
20
|
+
import { NodeViewContentHole } from '@atlaskit/editor-common/react-node-view';
|
|
20
21
|
import { MediaSingle } from '@atlaskit/editor-common/ui';
|
|
21
22
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
22
23
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -495,7 +496,7 @@ export var MediaSingleNodeNext = function MediaSingleNodeNext(mediaSingleNodeNex
|
|
|
495
496
|
getPos: getPos,
|
|
496
497
|
isDrafting: isCurrentNodeDrafting
|
|
497
498
|
}));
|
|
498
|
-
}), jsx(
|
|
499
|
+
}), jsx(NodeViewContentHole, {
|
|
499
500
|
ref: forwardRef
|
|
500
501
|
}), shouldShowPlaceholder && (fg('platform_editor_typography_ugc') ? jsx(CaptionPlaceholderButton
|
|
501
502
|
// platform_editor_typography_ugc clean up
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RawIntlProvider } from 'react-intl';
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
|
+
export function MediaSSRReactContextsProvider(_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
7
|
+
intl = _ref.intl;
|
|
8
|
+
if (!expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !isSSR()) {
|
|
9
|
+
return children;
|
|
10
|
+
}
|
|
11
|
+
if (!intl) {
|
|
12
|
+
return children;
|
|
13
|
+
}
|
|
14
|
+
return /*#__PURE__*/React.createElement(RawIntlProvider, {
|
|
15
|
+
value: intl
|
|
16
|
+
}, children);
|
|
17
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
3
|
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -5,4 +6,4 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
5
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
8
|
import type { MediaPluginOptions } from '../types';
|
|
8
|
-
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
9
|
+
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => NodeViewConstructor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
4
|
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
@@ -5,4 +6,4 @@ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
5
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
|
-
export declare const lazyMediaInlineView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string
|
|
9
|
+
export declare const lazyMediaInlineView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string>, intl?: IntlShape) => NodeViewConstructor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -6,4 +7,4 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
7
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
8
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
9
|
import type { getPosHandler, MediaPluginOptions } from '../types';
|
|
9
|
-
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
10
|
+
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -35,6 +36,7 @@ interface MediaInlineNodeViewProps {
|
|
|
35
36
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
36
37
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
37
38
|
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
39
|
+
intl?: IntlShape;
|
|
38
40
|
providerFactory: ProviderFactory;
|
|
39
41
|
}
|
|
40
42
|
export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInlineNodeViewProps> {
|
|
@@ -43,5 +45,5 @@ export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInl
|
|
|
43
45
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
44
46
|
render(props: MediaInlineNodeViewProps): jsx.JSX.Element;
|
|
45
47
|
}
|
|
46
|
-
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string
|
|
48
|
+
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string>, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
47
49
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -43,5 +44,5 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
|
43
44
|
render(): React.JSX.Element;
|
|
44
45
|
destroy(): void;
|
|
45
46
|
}
|
|
46
|
-
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
47
|
+
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
47
48
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -33,5 +34,5 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
|
|
|
33
34
|
ignoreMutation(): boolean;
|
|
34
35
|
destroy(): void;
|
|
35
36
|
}
|
|
36
|
-
export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
|
|
37
|
+
export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
|
|
37
38
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
4
|
import type { ContextIdentifierProvider, MediaProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -34,6 +35,7 @@ export interface MediaSingleNodeViewProps {
|
|
|
34
35
|
editorAppearance?: EditorAppearance;
|
|
35
36
|
eventDispatcher: EventDispatcher;
|
|
36
37
|
fullWidthMode?: boolean;
|
|
38
|
+
intl?: IntlShape;
|
|
37
39
|
isCopyPasteEnabled?: boolean;
|
|
38
40
|
mediaOptions: MediaOptions;
|
|
39
41
|
pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
@@ -41,6 +43,7 @@ export interface MediaSingleNodeViewProps {
|
|
|
41
43
|
}
|
|
42
44
|
export interface MediaNodeViewProps {
|
|
43
45
|
eventDispatcher: EventDispatcher;
|
|
46
|
+
intl?: IntlShape;
|
|
44
47
|
mediaOptions: MediaOptions;
|
|
45
48
|
pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
46
49
|
providerFactory: ProviderFactory;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
intl: IntlShape | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function MediaSSRReactContextsProvider({ children, intl }: Props): ReactNode;
|
|
8
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
3
|
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -5,4 +6,4 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
5
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
8
|
import type { MediaPluginOptions } from '../types';
|
|
8
|
-
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
9
|
+
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => NodeViewConstructor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
4
|
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
@@ -5,4 +6,4 @@ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
5
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
|
-
export declare const lazyMediaInlineView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string
|
|
9
|
+
export declare const lazyMediaInlineView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string>, intl?: IntlShape) => NodeViewConstructor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -6,4 +7,4 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
7
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
8
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
9
|
import type { getPosHandler, MediaPluginOptions } from '../types';
|
|
9
|
-
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
10
|
+
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -35,6 +36,7 @@ interface MediaInlineNodeViewProps {
|
|
|
35
36
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
36
37
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
37
38
|
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
39
|
+
intl?: IntlShape;
|
|
38
40
|
providerFactory: ProviderFactory;
|
|
39
41
|
}
|
|
40
42
|
export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInlineNodeViewProps> {
|
|
@@ -43,5 +45,5 @@ export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInl
|
|
|
43
45
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
44
46
|
render(props: MediaInlineNodeViewProps): jsx.JSX.Element;
|
|
45
47
|
}
|
|
46
|
-
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string
|
|
48
|
+
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, fallbackMediaNameFetcher?: (id: string) => Promise<string>, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
47
49
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -43,5 +44,5 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
|
43
44
|
render(): React.JSX.Element;
|
|
44
45
|
destroy(): void;
|
|
45
46
|
}
|
|
46
|
-
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
47
|
+
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
47
48
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
2
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -33,5 +34,5 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
|
|
|
33
34
|
ignoreMutation(): boolean;
|
|
34
35
|
destroy(): void;
|
|
35
36
|
}
|
|
36
|
-
export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
|
|
37
|
+
export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions, intl?: IntlShape) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
|
|
37
38
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
1
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
4
|
import type { ContextIdentifierProvider, MediaProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -34,6 +35,7 @@ export interface MediaSingleNodeViewProps {
|
|
|
34
35
|
editorAppearance?: EditorAppearance;
|
|
35
36
|
eventDispatcher: EventDispatcher;
|
|
36
37
|
fullWidthMode?: boolean;
|
|
38
|
+
intl?: IntlShape;
|
|
37
39
|
isCopyPasteEnabled?: boolean;
|
|
38
40
|
mediaOptions: MediaOptions;
|
|
39
41
|
pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
@@ -41,6 +43,7 @@ export interface MediaSingleNodeViewProps {
|
|
|
41
43
|
}
|
|
42
44
|
export interface MediaNodeViewProps {
|
|
43
45
|
eventDispatcher: EventDispatcher;
|
|
46
|
+
intl?: IntlShape;
|
|
44
47
|
mediaOptions: MediaOptions;
|
|
45
48
|
pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
46
49
|
providerFactory: ProviderFactory;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
intl: IntlShape | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function MediaSSRReactContextsProvider({ children, intl }: Props): ReactNode;
|
|
8
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "12.7.
|
|
3
|
+
"version": "12.7.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
|
-
"@atlaskit/icon": "^
|
|
55
|
+
"@atlaskit/icon": "^35.0.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
57
57
|
"@atlaskit/media-card": "^80.5.0",
|
|
58
|
-
"@atlaskit/media-client": "^36.
|
|
58
|
+
"@atlaskit/media-client": "^36.3.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^5.1.0",
|
|
60
60
|
"@atlaskit/media-common": "^13.3.0",
|
|
61
61
|
"@atlaskit/media-filmstrip": "^51.3.0",
|
|
62
|
-
"@atlaskit/media-picker": "^71.
|
|
62
|
+
"@atlaskit/media-picker": "^71.3.0",
|
|
63
63
|
"@atlaskit/media-ui": "^29.2.0",
|
|
64
64
|
"@atlaskit/media-viewer": "^53.2.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/primitives": "^19.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.3.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^81.
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^81.1.0",
|
|
69
69
|
"@atlaskit/tokens": "^13.0.0",
|
|
70
70
|
"@atlaskit/tooltip": "^22.2.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"uuid": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^114.
|
|
81
|
-
"@atlaskit/media-core": "^37.
|
|
80
|
+
"@atlaskit/editor-common": "^114.35.0",
|
|
81
|
+
"@atlaskit/media-core": "^37.1.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
84
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|