@atlaskit/editor-plugin-ufo 10.1.5 → 10.1.7
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 +12 -0
- package/dist/cjs/ufoPlugin.js +1 -2
- package/dist/es2019/ufoPlugin.js +1 -2
- package/dist/esm/ufoPlugin.js +1 -2
- package/package.json +4 -4
- package/src/ufoPlugin.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/ufoPlugin.js
CHANGED
|
@@ -10,8 +10,7 @@ var ufoPlugin = exports.ufoPlugin = function ufoPlugin() {
|
|
|
10
10
|
return {
|
|
11
11
|
name: 'ufo',
|
|
12
12
|
pmPlugins: function pmPlugins() {
|
|
13
|
-
var
|
|
14
|
-
var isSSR = Boolean((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR);
|
|
13
|
+
var isSSR = Boolean(process.env.REACT_SSR);
|
|
15
14
|
if (isSSR) {
|
|
16
15
|
// This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
|
|
17
16
|
return [];
|
package/dist/es2019/ufoPlugin.js
CHANGED
|
@@ -3,8 +3,7 @@ import { traceUFOInteractionOnFirstInteraction } from './pm-plugins/traceUFOInte
|
|
|
3
3
|
export const ufoPlugin = () => ({
|
|
4
4
|
name: 'ufo',
|
|
5
5
|
pmPlugins() {
|
|
6
|
-
|
|
7
|
-
const isSSR = Boolean((_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.REACT_SSR);
|
|
6
|
+
const isSSR = Boolean(process.env.REACT_SSR);
|
|
8
7
|
if (isSSR) {
|
|
9
8
|
// This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
|
|
10
9
|
return [];
|
package/dist/esm/ufoPlugin.js
CHANGED
|
@@ -4,8 +4,7 @@ export var ufoPlugin = function ufoPlugin() {
|
|
|
4
4
|
return {
|
|
5
5
|
name: 'ufo',
|
|
6
6
|
pmPlugins: function pmPlugins() {
|
|
7
|
-
var
|
|
8
|
-
var isSSR = Boolean((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR);
|
|
7
|
+
var isSSR = Boolean(process.env.REACT_SSR);
|
|
9
8
|
if (isSSR) {
|
|
10
9
|
// This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
|
|
11
10
|
return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-ufo",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.7",
|
|
4
4
|
"description": "Ufo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
32
|
-
"@atlaskit/react-ufo": "^6.
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
32
|
+
"@atlaskit/react-ufo": "^6.6.0",
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^86.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^114.
|
|
37
|
+
"@atlaskit/editor-common": "^114.54.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"techstack": {
|
package/src/ufoPlugin.tsx
CHANGED
|
@@ -7,7 +7,7 @@ export const ufoPlugin: UfoPlugin = () => ({
|
|
|
7
7
|
name: 'ufo',
|
|
8
8
|
|
|
9
9
|
pmPlugins() {
|
|
10
|
-
const isSSR = Boolean(process
|
|
10
|
+
const isSSR = Boolean(process.env.REACT_SSR);
|
|
11
11
|
|
|
12
12
|
if (isSSR) {
|
|
13
13
|
// This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
|