@atlaskit/editor-core 98.12.1 → 98.13.0
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 +5 -0
- package/dist/es2015/plugins/tasks-and-decisions/ui/Task/index.d.ts +3 -2
- package/dist/es2015/plugins/tasks-and-decisions/ui/Task/index.js +4 -4
- package/dist/es2015/plugins/tasks-and-decisions/ui/Task/index.js.map +1 -1
- package/dist/es5/plugins/tasks-and-decisions/ui/Task/index.d.ts +3 -2
- package/dist/es5/plugins/tasks-and-decisions/ui/Task/index.js +3 -3
- package/dist/es5/plugins/tasks-and-decisions/ui/Task/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 98.13.0
|
|
4
|
+
- [minor] [be86cbebc3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/be86cbebc3):
|
|
5
|
+
|
|
6
|
+
- enable noImplicitAny for task-decision, and related changes
|
|
7
|
+
|
|
3
8
|
## 98.12.1
|
|
4
9
|
- [patch] [a3161a7927](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a3161a7927):
|
|
5
10
|
|
|
@@ -2,10 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { InjectedIntlProps } from 'react-intl';
|
|
3
3
|
import { PureComponent, ReactElement } from 'react';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
5
|
+
import { ContentRef } from '@atlaskit/task-decision';
|
|
5
6
|
export interface TaskProps {
|
|
6
7
|
taskId: string;
|
|
7
8
|
isDone: boolean;
|
|
8
|
-
contentRef?:
|
|
9
|
+
contentRef?: ContentRef;
|
|
9
10
|
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
10
11
|
showPlaceholder?: boolean;
|
|
11
12
|
children?: ReactElement<any>;
|
|
@@ -14,7 +15,7 @@ export interface TaskProps {
|
|
|
14
15
|
}
|
|
15
16
|
export declare class TaskItem extends PureComponent<TaskProps & InjectedIntlProps, {}> {
|
|
16
17
|
private providerFactory;
|
|
17
|
-
constructor(props:
|
|
18
|
+
constructor(props: TaskProps & InjectedIntlProps);
|
|
18
19
|
componentWillUnmount(): void;
|
|
19
20
|
private renderWithProvider;
|
|
20
21
|
render(): JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as tslib_1 from "tslib";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
-
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common';
|
|
5
|
+
import { ProviderFactory, WithProviders, } from '@atlaskit/editor-common';
|
|
6
6
|
import TaskItemWithProviders from './task-item-with-providers';
|
|
7
7
|
var messages = defineMessages({
|
|
8
8
|
placeholder: {
|
|
@@ -15,9 +15,9 @@ var TaskItem = /** @class */ (function (_super) {
|
|
|
15
15
|
tslib_1.__extends(TaskItem, _super);
|
|
16
16
|
function TaskItem(props) {
|
|
17
17
|
var _this = _super.call(this, props) || this;
|
|
18
|
-
_this.renderWithProvider = function (
|
|
19
|
-
var _a = _this.props,
|
|
20
|
-
var taskDecisionProvider =
|
|
18
|
+
_this.renderWithProvider = function (providers) {
|
|
19
|
+
var _a = _this.props, _providerFactory = _a.providers, formatMessage = _a.intl.formatMessage, otherProps = tslib_1.__rest(_a, ["providers", "intl"]);
|
|
20
|
+
var taskDecisionProvider = providers.taskDecisionProvider, contextIdentifierProvider = providers.contextIdentifierProvider;
|
|
21
21
|
var placeholder = formatMessage(messages.placeholder);
|
|
22
22
|
return (React.createElement(TaskItemWithProviders, tslib_1.__assign({}, otherProps, { placeholder: placeholder, taskDecisionProvider: taskDecisionProvider, contextIdentifierProvider: contextIdentifierProvider })));
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/tasks-and-decisions/ui/Task/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAqB,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/tasks-and-decisions/ui/Task/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAqB,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AACpD,OAAO,EAEL,eAAe,EACf,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAG/D,IAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,WAAW,EAAE;QACX,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,iDAAiD;QACjE,WAAW,EACT,gEAAgE;KACnE;CACF,CAAC,CAAC;AAaH;IAA8B,oCAAgD;IAG5E,kBAAY,KAAoC;QAAhD,YACE,kBAAM,KAAK,CAAC,SAEb;QAUO,wBAAkB,GAAG,UAAC,SAAoB;YAChD,IAAM,gBAIQ,EAHZ,+BAA2B,EACnB,qCAAa,EACrB,sDACY,CAAC;YACP,IAAA,qDAAoB,EAAE,+DAAyB,CAAe;YACtE,IAAM,WAAW,GAAG,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YAExD,OAAO,CACL,oBAAC,qBAAqB,uBAChB,UAAU,IACd,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,yBAAyB,EAAE,yBAAyB,IACpD,CACH,CAAC;QACJ,CAAC,CAAC;QA5BA,KAAI,CAAC,eAAe,GAAG,KAAK,CAAC,SAAS,IAAI,IAAI,eAAe,EAAE,CAAC;;IAClE,CAAC;IAED,uCAAoB,GAApB;QACE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;YACzB,gEAAgE;YAChE,qFAAqF;YACrF,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;SAChC;IACH,CAAC;IAqBD,yBAAM,GAAN;QACE,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,EAChE,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,UAAU,EAAE,IAAI,CAAC,kBAAkB,GACnC,CACH,CAAC;IACJ,CAAC;IACH,eAAC;AAAD,CAAC,AA5CD,CAA8B,aAAa,GA4C1C;;AAED,eAAe,UAAU,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -2,10 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { InjectedIntlProps } from 'react-intl';
|
|
3
3
|
import { PureComponent, ReactElement } from 'react';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
5
|
+
import { ContentRef } from '@atlaskit/task-decision';
|
|
5
6
|
export interface TaskProps {
|
|
6
7
|
taskId: string;
|
|
7
8
|
isDone: boolean;
|
|
8
|
-
contentRef?:
|
|
9
|
+
contentRef?: ContentRef;
|
|
9
10
|
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
10
11
|
showPlaceholder?: boolean;
|
|
11
12
|
children?: ReactElement<any>;
|
|
@@ -14,7 +15,7 @@ export interface TaskProps {
|
|
|
14
15
|
}
|
|
15
16
|
export declare class TaskItem extends PureComponent<TaskProps & InjectedIntlProps, {}> {
|
|
16
17
|
private providerFactory;
|
|
17
|
-
constructor(props:
|
|
18
|
+
constructor(props: TaskProps & InjectedIntlProps);
|
|
18
19
|
componentWillUnmount(): void;
|
|
19
20
|
private renderWithProvider;
|
|
20
21
|
render(): JSX.Element;
|
|
@@ -17,9 +17,9 @@ var TaskItem = /** @class */ (function (_super) {
|
|
|
17
17
|
tslib_1.__extends(TaskItem, _super);
|
|
18
18
|
function TaskItem(props) {
|
|
19
19
|
var _this = _super.call(this, props) || this;
|
|
20
|
-
_this.renderWithProvider = function (
|
|
21
|
-
var _a = _this.props,
|
|
22
|
-
var taskDecisionProvider =
|
|
20
|
+
_this.renderWithProvider = function (providers) {
|
|
21
|
+
var _a = _this.props, _providerFactory = _a.providers, formatMessage = _a.intl.formatMessage, otherProps = tslib_1.__rest(_a, ["providers", "intl"]);
|
|
22
|
+
var taskDecisionProvider = providers.taskDecisionProvider, contextIdentifierProvider = providers.contextIdentifierProvider;
|
|
23
23
|
var placeholder = formatMessage(messages.placeholder);
|
|
24
24
|
return (React.createElement(task_item_with_providers_1.default, tslib_1.__assign({}, otherProps, { placeholder: placeholder, taskDecisionProvider: taskDecisionProvider, contextIdentifierProvider: contextIdentifierProvider })));
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/tasks-and-decisions/ui/Task/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,yCAA2E;AAC3E,+BAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/tasks-and-decisions/ui/Task/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,yCAA2E;AAC3E,+BAAoD;AACpD,yDAIiC;AACjC,uEAA+D;AAG/D,IAAM,QAAQ,GAAG,2BAAc,CAAC;IAC9B,WAAW,EAAE;QACX,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,iDAAiD;QACjE,WAAW,EACT,gEAAgE;KACnE;CACF,CAAC,CAAC;AAaH;IAA8B,oCAAgD;IAG5E,kBAAY,KAAoC;QAAhD,YACE,kBAAM,KAAK,CAAC,SAEb;QAUO,wBAAkB,GAAG,UAAC,SAAoB;YAChD,IAAM,gBAIQ,EAHZ,+BAA2B,EACnB,qCAAa,EACrB,sDACY,CAAC;YACP,IAAA,qDAAoB,EAAE,+DAAyB,CAAe;YACtE,IAAM,WAAW,GAAG,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YAExD,OAAO,CACL,oBAAC,kCAAqB,uBAChB,UAAU,IACd,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,yBAAyB,EAAE,yBAAyB,IACpD,CACH,CAAC;QACJ,CAAC,CAAC;QA5BA,KAAI,CAAC,eAAe,GAAG,KAAK,CAAC,SAAS,IAAI,IAAI,+BAAe,EAAE,CAAC;;IAClE,CAAC;IAED,uCAAoB,GAApB;QACE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;YACzB,gEAAgE;YAChE,qFAAqF;YACrF,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;SAChC;IACH,CAAC;IAqBD,yBAAM,GAAN;QACE,OAAO,CACL,oBAAC,6BAAa,IACZ,SAAS,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,EAChE,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,UAAU,EAAE,IAAI,CAAC,kBAAkB,GACnC,CACH,CAAC;IACJ,CAAC;IACH,eAAC;AAAD,CAAC,AA5CD,CAA8B,qBAAa,GA4C1C;AA5CY,4BAAQ;AA8CrB,kBAAe,uBAAU,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "98.
|
|
3
|
+
"version": "98.13.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/es5/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/code": "^8.2.2",
|
|
39
39
|
"@atlaskit/date": "^0.2.0",
|
|
40
40
|
"@atlaskit/droplist": "^7.0.18",
|
|
41
|
-
"@atlaskit/editor-common": "^31.0
|
|
41
|
+
"@atlaskit/editor-common": "^31.1.0",
|
|
42
42
|
"@atlaskit/editor-json-transformer": "^4.1.9",
|
|
43
43
|
"@atlaskit/editor-markdown-transformer": "^2.1.9",
|
|
44
44
|
"@atlaskit/emoji": "^54.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/smart-card": "^9.10.0",
|
|
56
56
|
"@atlaskit/spinner": "^9.0.13",
|
|
57
57
|
"@atlaskit/status": "^0.3.2",
|
|
58
|
-
"@atlaskit/task-decision": "^11.
|
|
58
|
+
"@atlaskit/task-decision": "^11.2.0",
|
|
59
59
|
"@atlaskit/theme": "^7.0.1",
|
|
60
60
|
"@atlaskit/tooltip": "^12.1.15",
|
|
61
61
|
"@atlaskit/util-service-support": "^3.0.5",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@atlaskit/pubsub": "^3.0.7",
|
|
114
114
|
"@atlaskit/renderer": "^38.0.2",
|
|
115
115
|
"@atlaskit/section-message": "^1.0.16",
|
|
116
|
-
"@atlaskit/util-data-test": "^10.0
|
|
116
|
+
"@atlaskit/util-data-test": "^10.1.0",
|
|
117
117
|
"@atlaskit/visual-regression": "^0.0.1",
|
|
118
118
|
"@atlaskit/webdriver-runner": "^0.1.1",
|
|
119
119
|
"clipboard-polyfill": "2.4.3",
|
|
@@ -126,4 +126,4 @@
|
|
|
126
126
|
"react-intl": "^2.6.0",
|
|
127
127
|
"sinon": "^2.2.0"
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
}
|