Documentation or Guide on taskDecisionProvider for editor-core?

Hi, is there a documentation or guide on TaskDecisionProvider for editor-core, any pointer on the unsubscribeRecentUpdates, notifyRecentUpdates, toggleTask, subscribe, andunsubscribe functions work would be great. They look like lifecycle hooks but I’m not entirely sure how they work. I understand that the @atlaskit/editor-core component is now marked for Atlassian internal development but we already have features built on top on it before so I’ll appreciate any help I could get.

7 Likes

Hi @yongchong.long ,

I don’t think there’s any publicly available documentation. Also note the warning on the editor component:

I suspect this warning also extends to less thorough documentation, but I’ll follow up with the team just in case they can provide something.

Regards,
Dugald

2 Likes

Yup I’m aware of the warning. Thanks for the follow-up, it’ll be great to have any sort of pointer on how it works.

Hi @yongchong.long ,

I think the most relevant documentation is as follows:

Regards,
Dugald

1 Like

Hi @dmorrow,

https://atlaskit.atlassian.com/packages/editor/editor-core is what I mentioned in my question, which itself points to https://atlaskit.atlassian.com/packages/elements/task-decision that documents the component itself, not TaskDecisionProvider. The closest thing I can find is getMockTaskDecisionResource in the example, imported from @atlaskit/util-data-test.