@atlaskit/editor-plugin-media 5.2.10 → 5.2.11
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 +10 -0
- package/dist/cjs/nodeviews/mediaGroup.js +3 -1
- package/dist/cjs/nodeviews/mediaInline.js +3 -1
- package/dist/cjs/nodeviews/mediaSingle.js +3 -1
- package/dist/cjs/ui/Media/DropPlaceholder.js +2 -5
- package/dist/es2019/nodeviews/mediaGroup.js +3 -1
- package/dist/es2019/nodeviews/mediaInline.js +3 -1
- package/dist/es2019/nodeviews/mediaSingle.js +3 -1
- package/dist/es2019/ui/Media/DropPlaceholder.js +2 -5
- package/dist/esm/nodeviews/mediaGroup.js +3 -1
- package/dist/esm/nodeviews/mediaInline.js +3 -1
- package/dist/esm/nodeviews/mediaSingle.js +3 -1
- package/dist/esm/ui/Media/DropPlaceholder.js +2 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 5.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20d3223b57972`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20d3223b57972) -
|
|
8
|
+
Opted out of debounced portal provider
|
|
9
|
+
- [`2af42ad93c3e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2af42ad93c3e0) -
|
|
10
|
+
Internal changes to use tokens for border radius.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 5.2.10
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -109,6 +109,8 @@ var ReactMediaGroupNode = exports.ReactMediaGroupNode = function ReactMediaGroup
|
|
|
109
109
|
providerFactory: providerFactory,
|
|
110
110
|
mediaOptions: mediaOptions,
|
|
111
111
|
pluginInjectionApi: pluginInjectionApi
|
|
112
|
-
}
|
|
112
|
+
}, undefined, undefined,
|
|
113
|
+
// @portal-render-immediately
|
|
114
|
+
true).init();
|
|
113
115
|
};
|
|
114
116
|
};
|
|
@@ -351,6 +351,8 @@ var ReactMediaInlineNode = exports.ReactMediaInlineNode = function ReactMediaInl
|
|
|
351
351
|
providerFactory: providerFactory,
|
|
352
352
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
353
353
|
api: api
|
|
354
|
-
}
|
|
354
|
+
}, undefined, undefined,
|
|
355
|
+
// @portal-render-immediately
|
|
356
|
+
true).init();
|
|
355
357
|
};
|
|
356
358
|
};
|
|
@@ -334,6 +334,8 @@ var ReactMediaSingleNode = exports.ReactMediaSingleNode = function ReactMediaSin
|
|
|
334
334
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
335
335
|
pluginInjectionApi: pluginInjectionApi,
|
|
336
336
|
editorAppearance: mediaOptions.editorAppearance
|
|
337
|
-
}
|
|
337
|
+
}, undefined, undefined,
|
|
338
|
+
// @portal-render-immediately
|
|
339
|
+
true).init();
|
|
338
340
|
};
|
|
339
341
|
};
|
|
@@ -11,7 +11,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
11
11
|
var _media = require("@atlaskit/editor-common/media");
|
|
12
12
|
var _fileDocumentFilled = _interopRequireDefault(require("@atlaskit/icon/core/migration/file--document-filled"));
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
15
14
|
var _media2 = require("../../nodeviews/mediaNodeView/media");
|
|
16
15
|
/**
|
|
17
16
|
* @jsxRuntime classic
|
|
@@ -24,8 +23,7 @@ var iconWrapperStyles = (0, _react.css)({
|
|
|
24
23
|
color: "var(--ds-icon-accent-blue, ".concat((0, _adfSchema.hexToRgba)(_colors.B400, 0.4) || _colors.B400, ")"),
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
25
|
background: "var(--ds-background-accent-blue-subtle, ".concat((0, _adfSchema.hexToRgba)(_colors.B300, 0.6) || _colors.B300, ")"),
|
|
27
|
-
|
|
28
|
-
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
26
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
29
27
|
margin: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-300, 24px)"),
|
|
30
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
29
|
width: "".concat(_media2.FILE_WIDTH, "px"),
|
|
@@ -37,8 +35,7 @@ var iconWrapperStyles = (0, _react.css)({
|
|
|
37
35
|
});
|
|
38
36
|
var dropLineStyles = (0, _react.css)({
|
|
39
37
|
background: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
|
|
40
|
-
|
|
41
|
-
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
38
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
42
39
|
margin: "var(--ds-space-025, 2px)".concat(" 0"),
|
|
43
40
|
width: '100%',
|
|
44
41
|
height: '2px'
|
|
@@ -285,5 +285,7 @@ export const ReactMediaSingleNode = (portalProviderAPI, eventDispatcher, provide
|
|
|
285
285
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
286
286
|
pluginInjectionApi,
|
|
287
287
|
editorAppearance: mediaOptions.editorAppearance
|
|
288
|
-
}
|
|
288
|
+
}, undefined, undefined,
|
|
289
|
+
// @portal-render-immediately
|
|
290
|
+
true).init();
|
|
289
291
|
};
|
|
@@ -9,15 +9,13 @@ import { hexToRgba } from '@atlaskit/adf-schema';
|
|
|
9
9
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
10
10
|
import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--document-filled';
|
|
11
11
|
import { B200, B300, B400 } from '@atlaskit/theme/colors';
|
|
12
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
13
12
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
14
13
|
const iconWrapperStyles = css({
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
15
|
color: `var(--ds-icon-accent-blue, ${hexToRgba(B400, 0.4) || B400})`,
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
17
|
background: `var(--ds-background-accent-blue-subtle, ${hexToRgba(B300, 0.6) || B300})`,
|
|
19
|
-
|
|
20
|
-
borderRadius: `${borderRadius()}px`,
|
|
18
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
21
19
|
margin: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-300, 24px)"}`,
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
21
|
width: `${FILE_WIDTH}px`,
|
|
@@ -29,8 +27,7 @@ const iconWrapperStyles = css({
|
|
|
29
27
|
});
|
|
30
28
|
const dropLineStyles = css({
|
|
31
29
|
background: `var(--ds-border-focused, ${B200})`,
|
|
32
|
-
|
|
33
|
-
borderRadius: `${borderRadius()}px`,
|
|
30
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
34
31
|
margin: `${"var(--ds-space-025, 2px)"} 0`,
|
|
35
32
|
width: '100%',
|
|
36
33
|
height: '2px'
|
|
@@ -102,6 +102,8 @@ export var ReactMediaGroupNode = function ReactMediaGroupNode(portalProviderAPI,
|
|
|
102
102
|
providerFactory: providerFactory,
|
|
103
103
|
mediaOptions: mediaOptions,
|
|
104
104
|
pluginInjectionApi: pluginInjectionApi
|
|
105
|
-
}
|
|
105
|
+
}, undefined, undefined,
|
|
106
|
+
// @portal-render-immediately
|
|
107
|
+
true).init();
|
|
106
108
|
};
|
|
107
109
|
};
|
|
@@ -347,6 +347,8 @@ export var ReactMediaInlineNode = function ReactMediaInlineNode(portalProviderAP
|
|
|
347
347
|
providerFactory: providerFactory,
|
|
348
348
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
349
349
|
api: api
|
|
350
|
-
}
|
|
350
|
+
}, undefined, undefined,
|
|
351
|
+
// @portal-render-immediately
|
|
352
|
+
true).init();
|
|
351
353
|
};
|
|
352
354
|
};
|
|
@@ -330,6 +330,8 @@ export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAP
|
|
|
330
330
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
331
331
|
pluginInjectionApi: pluginInjectionApi,
|
|
332
332
|
editorAppearance: mediaOptions.editorAppearance
|
|
333
|
-
}
|
|
333
|
+
}, undefined, undefined,
|
|
334
|
+
// @portal-render-immediately
|
|
335
|
+
true).init();
|
|
334
336
|
};
|
|
335
337
|
};
|
|
@@ -9,15 +9,13 @@ import { hexToRgba } from '@atlaskit/adf-schema';
|
|
|
9
9
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
10
10
|
import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--document-filled';
|
|
11
11
|
import { B200, B300, B400 } from '@atlaskit/theme/colors';
|
|
12
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
13
12
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
14
13
|
var iconWrapperStyles = css({
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
15
|
color: "var(--ds-icon-accent-blue, ".concat(hexToRgba(B400, 0.4) || B400, ")"),
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
17
|
background: "var(--ds-background-accent-blue-subtle, ".concat(hexToRgba(B300, 0.6) || B300, ")"),
|
|
19
|
-
|
|
20
|
-
borderRadius: "".concat(borderRadius(), "px"),
|
|
18
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
21
19
|
margin: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-300, 24px)"),
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
21
|
width: "".concat(FILE_WIDTH, "px"),
|
|
@@ -29,8 +27,7 @@ var iconWrapperStyles = css({
|
|
|
29
27
|
});
|
|
30
28
|
var dropLineStyles = css({
|
|
31
29
|
background: "var(--ds-border-focused, ".concat(B200, ")"),
|
|
32
|
-
|
|
33
|
-
borderRadius: "".concat(borderRadius(), "px"),
|
|
30
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
34
31
|
margin: "var(--ds-space-025, 2px)".concat(" 0"),
|
|
35
32
|
width: '100%',
|
|
36
33
|
height: '2px'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.11",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/primitives": "^14.11.0",
|
|
70
70
|
"@atlaskit/textfield": "^8.0.0",
|
|
71
71
|
"@atlaskit/theme": "^19.0.0",
|
|
72
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
72
|
+
"@atlaskit/tmp-editor-statsig": "^11.1.0",
|
|
73
73
|
"@atlaskit/tokens": "^6.0.0",
|
|
74
74
|
"@atlaskit/tooltip": "^20.4.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|