@atlaskit/editor-plugin-text-color 8.0.0 → 8.0.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 +6 -0
- package/dist/cjs/ui/ToolbarTextColor/index.js +4 -3
- package/dist/es2019/ui/ToolbarTextColor/index.js +5 -2
- package/dist/esm/ui/ToolbarTextColor/index.js +5 -2
- package/dist/types/ui/RemoveColorMenuItem.d.ts +1 -1
- package/dist/types/ui/ToolbarTextColor/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/RemoveColorMenuItem.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarTextColor/index.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -35,7 +35,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
35
35
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
36
36
|
* @jsxRuntime classic
|
|
37
37
|
* @jsx jsx
|
|
38
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
38
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
39
39
|
var addMarginToWrapper = (0, _react2.css)({
|
|
40
40
|
marginRight: "var(--ds-space-050, 4px)"
|
|
41
41
|
});
|
|
@@ -268,5 +268,6 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}]);
|
|
271
|
-
}(_react.default.Component);
|
|
272
|
-
var
|
|
271
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
272
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarTextColor);
|
|
273
|
+
var _default = exports.default = _default_1;
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -246,4 +246,7 @@ export class ToolbarTextColor extends React.Component {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
|
|
250
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
251
|
+
const _default_1 = injectIntl(ToolbarTextColor);
|
|
252
|
+
export default _default_1;
|
|
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
19
19
|
import { css, jsx } from '@emotion/react';
|
|
20
20
|
import { injectIntl } from 'react-intl-next';
|
|
21
21
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -265,4 +265,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
265
265
|
}
|
|
266
266
|
}]);
|
|
267
267
|
}(React.Component);
|
|
268
|
-
|
|
268
|
+
|
|
269
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
270
|
+
var _default_1 = injectIntl(ToolbarTextColor);
|
|
271
|
+
export default _default_1;
|
|
@@ -5,5 +5,5 @@ type RemoveColorMenuItemButtonProps = {
|
|
|
5
5
|
api?: ExtractInjectionAPI<TextColorPlugin>;
|
|
6
6
|
parents: ToolbarComponentTypes;
|
|
7
7
|
};
|
|
8
|
-
export declare const RemoveColorMenuItem: ({ api, parents }: RemoveColorMenuItemButtonProps) => JSX.Element;
|
|
8
|
+
export declare const RemoveColorMenuItem: ({ api, parents, }: RemoveColorMenuItemButtonProps) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -42,7 +42,7 @@ export declare class ToolbarTextColor extends React.Component<Props & WrappedCom
|
|
|
42
42
|
private buildAnalyticsPalette;
|
|
43
43
|
private dispatchAnalyticsEvent;
|
|
44
44
|
}
|
|
45
|
-
declare const
|
|
45
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
46
46
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
47
47
|
};
|
|
48
|
-
export default
|
|
48
|
+
export default _default_1;
|
|
@@ -5,5 +5,5 @@ type RemoveColorMenuItemButtonProps = {
|
|
|
5
5
|
api?: ExtractInjectionAPI<TextColorPlugin>;
|
|
6
6
|
parents: ToolbarComponentTypes;
|
|
7
7
|
};
|
|
8
|
-
export declare const RemoveColorMenuItem: ({ api, parents }: RemoveColorMenuItemButtonProps) => JSX.Element;
|
|
8
|
+
export declare const RemoveColorMenuItem: ({ api, parents, }: RemoveColorMenuItemButtonProps) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -42,7 +42,7 @@ export declare class ToolbarTextColor extends React.Component<Props & WrappedCom
|
|
|
42
42
|
private buildAnalyticsPalette;
|
|
43
43
|
private dispatchAnalyticsEvent;
|
|
44
44
|
}
|
|
45
|
-
declare const
|
|
45
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
46
46
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
47
47
|
};
|
|
48
|
-
export default
|
|
48
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/primitives": "^18.0.0",
|
|
49
49
|
"@atlaskit/theme": "^22.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^11.1.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|