@atlaskit/editor-plugin-media 5.3.1 → 5.4.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 +19 -0
- package/dist/cjs/nodeviews/mediaSingle.js +1 -3
- package/dist/cjs/ui/ImageBorder/styles.js +2 -5
- package/dist/es2019/nodeviews/mediaSingle.js +1 -3
- package/dist/es2019/ui/ImageBorder/styles.js +2 -5
- package/dist/esm/nodeviews/mediaSingle.js +1 -3
- package/dist/esm/ui/ImageBorder/styles.js +2 -5
- package/dist/types/ui/ImageBorder/styles.d.ts +1 -1
- package/dist/types-ts4.5/ui/ImageBorder/styles.d.ts +1 -1
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 5.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
|
|
8
|
+
Removed gridSize import. No visual changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`180ac73668d0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/180ac73668d0b) -
|
|
16
|
+
Debounced media single rendering
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 5.3.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -334,8 +334,6 @@ var ReactMediaSingleNode = exports.ReactMediaSingleNode = function ReactMediaSin
|
|
|
334
334
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
335
335
|
pluginInjectionApi: pluginInjectionApi,
|
|
336
336
|
editorAppearance: mediaOptions.editorAppearance
|
|
337
|
-
}
|
|
338
|
-
// @portal-render-immediately
|
|
339
|
-
true).init();
|
|
337
|
+
}).init();
|
|
340
338
|
};
|
|
341
339
|
};
|
|
@@ -11,13 +11,11 @@ var _react = require("@emotion/react");
|
|
|
11
11
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
12
12
|
var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
13
13
|
var colors = _colors;
|
|
14
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
15
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
16
15
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation*/
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
17
|
// Ignored via go/ees005
|
|
19
18
|
// eslint-disable-next-line import/no-namespace
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
21
19
|
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" != _typeof(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); }
|
|
22
20
|
// menuItemDimensions and itemSpacing are copied from
|
|
23
21
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
@@ -27,9 +25,8 @@ var menuItemDimensions = exports.menuItemDimensions = {
|
|
|
27
25
|
height: 32
|
|
28
26
|
};
|
|
29
27
|
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
var itemSpacing = exports.itemSpacing = (0, _constants.gridSize)() / 2;
|
|
28
|
+
// itemSpacing is used in calculations expecting a number, hence not using a space token
|
|
29
|
+
var itemSpacing = exports.itemSpacing = 4;
|
|
33
30
|
|
|
34
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
32
|
var contextualMenuArrow = exports.contextualMenuArrow = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\t&::after {\n\t\tcontent: '\u203A';\n\t\tmargin-left: ", ";\n\t\tline-height: 20px;\n\t\tcolor: ", ";\n\t}\n"])), "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(_colors.N90, ")"));
|
|
@@ -285,7 +285,5 @@ export const ReactMediaSingleNode = (portalProviderAPI, eventDispatcher, provide
|
|
|
285
285
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
286
286
|
pluginInjectionApi,
|
|
287
287
|
editorAppearance: mediaOptions.editorAppearance
|
|
288
|
-
}
|
|
289
|
-
// @portal-render-immediately
|
|
290
|
-
true).init();
|
|
288
|
+
}).init();
|
|
291
289
|
};
|
|
@@ -6,8 +6,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
|
6
6
|
// eslint-disable-next-line import/no-namespace
|
|
7
7
|
import * as colors from '@atlaskit/theme/colors';
|
|
8
8
|
import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
11
9
|
// menuItemDimensions and itemSpacing are copied from
|
|
12
10
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
13
11
|
|
|
@@ -16,9 +14,8 @@ export const menuItemDimensions = {
|
|
|
16
14
|
height: 32
|
|
17
15
|
};
|
|
18
16
|
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
export const itemSpacing = gridSize() / 2;
|
|
17
|
+
// itemSpacing is used in calculations expecting a number, hence not using a space token
|
|
18
|
+
export const itemSpacing = 4;
|
|
22
19
|
|
|
23
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
21
|
export const contextualMenuArrow = css`
|
|
@@ -330,8 +330,6 @@ export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAP
|
|
|
330
330
|
isCopyPasteEnabled: mediaOptions.isCopyPasteEnabled,
|
|
331
331
|
pluginInjectionApi: pluginInjectionApi,
|
|
332
332
|
editorAppearance: mediaOptions.editorAppearance
|
|
333
|
-
}
|
|
334
|
-
// @portal-render-immediately
|
|
335
|
-
true).init();
|
|
333
|
+
}).init();
|
|
336
334
|
};
|
|
337
335
|
};
|
|
@@ -8,8 +8,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
|
8
8
|
// eslint-disable-next-line import/no-namespace
|
|
9
9
|
import * as colors from '@atlaskit/theme/colors';
|
|
10
10
|
import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
12
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
13
11
|
// menuItemDimensions and itemSpacing are copied from
|
|
14
12
|
// packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
|
|
15
13
|
|
|
@@ -18,9 +16,8 @@ export var menuItemDimensions = {
|
|
|
18
16
|
height: 32
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
export var itemSpacing = gridSize() / 2;
|
|
19
|
+
// itemSpacing is used in calculations expecting a number, hence not using a space token
|
|
20
|
+
export var itemSpacing = 4;
|
|
24
21
|
|
|
25
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
23
|
export var contextualMenuArrow = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\t&::after {\n\t\tcontent: '\u203A';\n\t\tmargin-left: ", ";\n\t\tline-height: 20px;\n\t\tcolor: ", ";\n\t}\n"])), "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(N90, ")"));
|
|
@@ -2,7 +2,7 @@ export declare const menuItemDimensions: {
|
|
|
2
2
|
width: number;
|
|
3
3
|
height: number;
|
|
4
4
|
};
|
|
5
|
-
export declare const itemSpacing
|
|
5
|
+
export declare const itemSpacing = 4;
|
|
6
6
|
export declare const contextualMenuArrow: import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -2,7 +2,7 @@ export declare const menuItemDimensions: {
|
|
|
2
2
|
width: number;
|
|
3
3
|
height: number;
|
|
4
4
|
};
|
|
5
|
-
export declare const itemSpacing
|
|
5
|
+
export declare const itemSpacing = 4;
|
|
6
6
|
export declare const contextualMenuArrow: import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,10 +28,6 @@
|
|
|
28
28
|
"*.compiled.css"
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
|
-
"af:exports": {
|
|
32
|
-
".": "./src/index.ts",
|
|
33
|
-
"./types": "./src/types/index.ts"
|
|
34
|
-
},
|
|
35
31
|
"dependencies": {
|
|
36
32
|
"@atlaskit/adf-schema": "^50.2.2",
|
|
37
33
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
@@ -81,7 +77,7 @@
|
|
|
81
77
|
"uuid": "^3.1.0"
|
|
82
78
|
},
|
|
83
79
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^107.
|
|
80
|
+
"@atlaskit/editor-common": "^107.32.0",
|
|
85
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
86
82
|
"react": "^18.2.0",
|
|
87
83
|
"react-dom": "^18.2.0",
|