@atlaskit/editor-plugin-tasks-and-decisions 5.1.8 → 5.1.10

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 5.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.1.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 5.1.8
4
16
 
5
17
  ### Patch Changes
@@ -272,6 +272,8 @@ var Task = /*#__PURE__*/function (_ReactNodeView) {
272
272
  * This node view will have not rerendered for those changes, so
273
273
  * cannot render the position and listSize into the
274
274
  * AnalyticsContext at initial render time.
275
+ * @param event
276
+ * @example
275
277
  */
276
278
  (0, _defineProperty2.default)(_this, "addListAnalyticsData", function (event) {
277
279
  try {
@@ -389,6 +391,16 @@ var Task = /*#__PURE__*/function (_ReactNodeView) {
389
391
  }
390
392
  }]);
391
393
  }(_reactNodeView.default);
394
+ /**
395
+ *
396
+ * @param portalProviderAPI
397
+ * @param eventDispatcher
398
+ * @param providerFactory
399
+ * @param api
400
+ * @param intl
401
+ * @param placeholder
402
+ * @example
403
+ */
392
404
  function taskItemNodeViewFactory(portalProviderAPI, eventDispatcher, providerFactory, api, intl, placeholder) {
393
405
  return function (node, view, getPos) {
394
406
  return new Task(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -34,6 +34,22 @@ function nodesBetweenChanged(tr, f, startPos) {
34
34
  }
35
35
  tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
36
36
  }
37
+
38
+ /**
39
+ *
40
+ * @param portalProviderAPI
41
+ * @param eventDispatcher
42
+ * @param providerFactory
43
+ * @param dispatch
44
+ * @param api
45
+ * @param getIntl
46
+ * @param useLongPressSelection
47
+ * @param hasEditPermission
48
+ * @param hasRequestedEditPermission
49
+ * @param requestToEditContent
50
+ * @param taskPlaceholder
51
+ * @example
52
+ */
37
53
  function createPlugin(portalProviderAPI, eventDispatcher, providerFactory, dispatch, api, getIntl) {
38
54
  var useLongPressSelection = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
39
55
  var hasEditPermission = arguments.length > 7 ? arguments[7] : undefined;
@@ -244,6 +244,8 @@ class Task extends ReactNodeView {
244
244
  * This node view will have not rerendered for those changes, so
245
245
  * cannot render the position and listSize into the
246
246
  * AnalyticsContext at initial render time.
247
+ * @param event
248
+ * @example
247
249
  */
248
250
  _defineProperty(this, "addListAnalyticsData", event => {
249
251
  try {
@@ -345,6 +347,17 @@ class Task extends ReactNodeView {
345
347
  return !this.contentDOM.contains(mutation.target) && mutation.type !== 'selection';
346
348
  }
347
349
  }
350
+
351
+ /**
352
+ *
353
+ * @param portalProviderAPI
354
+ * @param eventDispatcher
355
+ * @param providerFactory
356
+ * @param api
357
+ * @param intl
358
+ * @param placeholder
359
+ * @example
360
+ */
348
361
  export function taskItemNodeViewFactory(portalProviderAPI, eventDispatcher, providerFactory, api, intl, placeholder) {
349
362
  return (node, view, getPos) => {
350
363
  return new Task(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -22,6 +22,22 @@ function nodesBetweenChanged(tr, f, startPos) {
22
22
  }
23
23
  tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
24
24
  }
25
+
26
+ /**
27
+ *
28
+ * @param portalProviderAPI
29
+ * @param eventDispatcher
30
+ * @param providerFactory
31
+ * @param dispatch
32
+ * @param api
33
+ * @param getIntl
34
+ * @param useLongPressSelection
35
+ * @param hasEditPermission
36
+ * @param hasRequestedEditPermission
37
+ * @param requestToEditContent
38
+ * @param taskPlaceholder
39
+ * @example
40
+ */
25
41
  export function createPlugin(portalProviderAPI, eventDispatcher, providerFactory, dispatch, api, getIntl, useLongPressSelection = false, hasEditPermission, hasRequestedEditPermission, requestToEditContent, taskPlaceholder) {
26
42
  return new SafePlugin({
27
43
  props: {
@@ -263,6 +263,8 @@ var Task = /*#__PURE__*/function (_ReactNodeView) {
263
263
  * This node view will have not rerendered for those changes, so
264
264
  * cannot render the position and listSize into the
265
265
  * AnalyticsContext at initial render time.
266
+ * @param event
267
+ * @example
266
268
  */
267
269
  _defineProperty(_this, "addListAnalyticsData", function (event) {
268
270
  try {
@@ -380,6 +382,16 @@ var Task = /*#__PURE__*/function (_ReactNodeView) {
380
382
  }
381
383
  }]);
382
384
  }(ReactNodeView);
385
+ /**
386
+ *
387
+ * @param portalProviderAPI
388
+ * @param eventDispatcher
389
+ * @param providerFactory
390
+ * @param api
391
+ * @param intl
392
+ * @param placeholder
393
+ * @example
394
+ */
383
395
  export function taskItemNodeViewFactory(portalProviderAPI, eventDispatcher, providerFactory, api, intl, placeholder) {
384
396
  return function (node, view, getPos) {
385
397
  return new Task(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -27,6 +27,22 @@ function nodesBetweenChanged(tr, f, startPos) {
27
27
  }
28
28
  tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
29
29
  }
30
+
31
+ /**
32
+ *
33
+ * @param portalProviderAPI
34
+ * @param eventDispatcher
35
+ * @param providerFactory
36
+ * @param dispatch
37
+ * @param api
38
+ * @param getIntl
39
+ * @param useLongPressSelection
40
+ * @param hasEditPermission
41
+ * @param hasRequestedEditPermission
42
+ * @param requestToEditContent
43
+ * @param taskPlaceholder
44
+ * @example
45
+ */
30
46
  export function createPlugin(portalProviderAPI, eventDispatcher, providerFactory, dispatch, api, getIntl) {
31
47
  var useLongPressSelection = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
32
48
  var hasEditPermission = arguments.length > 7 ? arguments[7] : undefined;
@@ -1,6 +1,6 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { NodeView } from '@atlaskit/editor-prosemirror/view';
3
+ import { type NodeView } from '@atlaskit/editor-prosemirror/view';
4
4
  /**
5
5
  *
6
6
  */
@@ -1,9 +1,9 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { NodeView } from '@atlaskit/editor-prosemirror/view';
6
- import { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
6
+ import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
7
7
  interface TaskItemNodeViewOptions {
8
8
  api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
9
9
  placeholder?: string;
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [string, {
4
4
  'data-decision-local-id': any;
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -12,5 +12,15 @@ export interface Props {
12
12
  placeholder?: string;
13
13
  providerFactory: ProviderFactory;
14
14
  }
15
+ /**
16
+ *
17
+ * @param portalProviderAPI
18
+ * @param eventDispatcher
19
+ * @param providerFactory
20
+ * @param api
21
+ * @param intl
22
+ * @param placeholder
23
+ * @example
24
+ */
15
25
  export declare function taskItemNodeViewFactory(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined, intl?: IntlShape, placeholder?: string): (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
16
26
  export {};
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -6,4 +6,19 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
7
7
  import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
8
8
  import type { TaskDecisionPluginState } from '../types';
9
+ /**
10
+ *
11
+ * @param portalProviderAPI
12
+ * @param eventDispatcher
13
+ * @param providerFactory
14
+ * @param dispatch
15
+ * @param api
16
+ * @param getIntl
17
+ * @param useLongPressSelection
18
+ * @param hasEditPermission
19
+ * @param hasRequestedEditPermission
20
+ * @param requestToEditContent
21
+ * @param taskPlaceholder
22
+ * @example
23
+ */
9
24
  export declare function createPlugin(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined, getIntl: () => IntlShape, useLongPressSelection?: boolean, hasEditPermission?: boolean, hasRequestedEditPermission?: boolean, requestToEditContent?: () => void, taskPlaceholder?: string): SafePlugin<TaskDecisionPluginState>;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /// <reference types="react" />
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
11
11
  interface Props {
@@ -1,6 +1,6 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { NodeView } from '@atlaskit/editor-prosemirror/view';
3
+ import { type NodeView } from '@atlaskit/editor-prosemirror/view';
4
4
  /**
5
5
  *
6
6
  */
@@ -1,9 +1,9 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { NodeView } from '@atlaskit/editor-prosemirror/view';
6
- import { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
6
+ import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
7
7
  interface TaskItemNodeViewOptions {
8
8
  api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
9
9
  placeholder?: string;
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [
4
4
  string,
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -12,5 +12,15 @@ export interface Props {
12
12
  placeholder?: string;
13
13
  providerFactory: ProviderFactory;
14
14
  }
15
+ /**
16
+ *
17
+ * @param portalProviderAPI
18
+ * @param eventDispatcher
19
+ * @param providerFactory
20
+ * @param api
21
+ * @param intl
22
+ * @param placeholder
23
+ * @example
24
+ */
15
25
  export declare function taskItemNodeViewFactory(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined, intl?: IntlShape, placeholder?: string): (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
16
26
  export {};
@@ -1,4 +1,4 @@
1
- import { IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl-next';
2
2
  import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
@@ -6,4 +6,19 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
7
7
  import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
8
8
  import type { TaskDecisionPluginState } from '../types';
9
+ /**
10
+ *
11
+ * @param portalProviderAPI
12
+ * @param eventDispatcher
13
+ * @param providerFactory
14
+ * @param dispatch
15
+ * @param api
16
+ * @param getIntl
17
+ * @param useLongPressSelection
18
+ * @param hasEditPermission
19
+ * @param hasRequestedEditPermission
20
+ * @param requestToEditContent
21
+ * @param taskPlaceholder
22
+ * @example
23
+ */
9
24
  export declare function createPlugin(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined, getIntl: () => IntlShape, useLongPressSelection?: boolean, hasEditPermission?: boolean, hasRequestedEditPermission?: boolean, requestToEditContent?: () => void, taskPlaceholder?: string): SafePlugin<TaskDecisionPluginState>;
@@ -5,7 +5,7 @@
5
5
  * @jsx jsx
6
6
  */
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
- import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
11
11
  interface Props {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "5.1.8",
3
+ "version": "5.1.10",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,22 +37,22 @@
37
37
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
38
38
  "@atlaskit/analytics-next": "^11.0.0",
39
39
  "@atlaskit/css": "^0.10.0",
40
- "@atlaskit/editor-common": "^105.3.0",
40
+ "@atlaskit/editor-common": "^106.0.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
42
42
  "@atlaskit/editor-plugin-context-identifier": "^2.1.0",
43
- "@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
43
+ "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
44
44
  "@atlaskit/editor-plugin-type-ahead": "^2.7.0",
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
46
  "@atlaskit/editor-shared-styles": "^3.4.0",
47
47
  "@atlaskit/heading": "^5.2.0",
48
- "@atlaskit/icon": "^26.0.0",
48
+ "@atlaskit/icon": "^26.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/popup": "^4.2.0",
51
- "@atlaskit/primitives": "^14.7.0",
50
+ "@atlaskit/popup": "^4.3.0",
51
+ "@atlaskit/primitives": "^14.8.0",
52
52
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
53
53
  "@atlaskit/task-decision": "^19.2.0",
54
- "@atlaskit/tmp-editor-statsig": "^4.22.0",
55
- "@atlaskit/tokens": "^4.8.0",
54
+ "@atlaskit/tmp-editor-statsig": "^5.2.0",
55
+ "@atlaskit/tokens": "^4.9.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@compiled/react": "^0.18.3",
58
58
  "bind-event-listener": "^3.0.0"