@atlaskit/editor-plugin-tasks-and-decisions 18.0.13 → 18.0.15

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,21 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 18.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+ - Updated dependencies
12
+
13
+ ## 18.0.14
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 18.0.13
4
20
 
5
21
  ### Patch Changes
@@ -14,7 +14,7 @@ var _model = require("@atlaskit/editor-prosemirror/model");
14
14
  var _state = require("@atlaskit/editor-prosemirror/state");
15
15
  var _transform = require("@atlaskit/editor-prosemirror/transform");
16
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
18
18
  var _pluginKey = require("./plugin-key");
19
19
  var _types = require("./types");
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -39,7 +39,7 @@ var generateAnalyticsPayload = function generateAnalyticsPayload(listType, conte
39
39
  objectId = contextData.objectId;
40
40
  userContext = contextData.userContext;
41
41
  }
42
- var resolvedInputMethod = (0, _platformFeatureFlags.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
42
+ var resolvedInputMethod = (0, _fg.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
43
43
  return {
44
44
  action: _analytics.ACTION.INSERTED,
45
45
  actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
@@ -7,7 +7,7 @@ exports.flattenTaskList = flattenTaskList;
7
7
  exports.rebuildTaskList = rebuildTaskList;
8
8
  var _adfSchema = require("@atlaskit/adf-schema");
9
9
  var _lists = require("@atlaskit/editor-common/lists");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
12
12
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -77,7 +77,7 @@ function flattenTaskListImpl(options) {
77
77
  * Only selected items have their depth adjusted by indentDelta.
78
78
  */
79
79
  function flattenTaskList(options) {
80
- if ((0, _platformFeatureFlags.fg)('platform_editor_flexible_list_normalization_fix')) {
80
+ if ((0, _fg.fg)('platform_editor_flexible_list_normalization_fix')) {
81
81
  return flattenTaskListImpl(options);
82
82
  }
83
83
  var _options$doc$type$sch = options.doc.type.schema.nodes,
@@ -19,7 +19,7 @@ var _ui = require("@atlaskit/editor-common/ui");
19
19
  var _uiReact = require("@atlaskit/editor-common/ui-react");
20
20
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
21
21
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
22
- var _heading = _interopRequireDefault(require("@atlaskit/heading"));
22
+ var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
23
23
  var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
24
24
  var _compiled = require("@atlaskit/primitives/compiled");
25
25
  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); }
@@ -17,7 +17,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
17
17
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _react = _interopRequireWildcard(require("react"));
20
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
20
+ var _FabricElementsAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext");
21
21
  var _taskDecision = require("@atlaskit/task-decision");
22
22
  var _excluded = ["contextIdentifierProvider"];
23
23
  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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
@@ -122,7 +122,7 @@ var TaskItemWithProviders = exports.default = /*#__PURE__*/function (_Component)
122
122
  var _ref = this.state.resolvedContextProvider || {},
123
123
  objectId = _ref.objectId;
124
124
  var userContext = objectId ? 'edit' : 'new';
125
- return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext
125
+ return /*#__PURE__*/_react.default.createElement(_FabricElementsAnalyticsContext.FabricElementsAnalyticsContext
126
126
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
127
127
  , {
128
128
  data: {
@@ -11,13 +11,13 @@ var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
15
15
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
16
  var TaskListMenuItem = exports.TaskListMenuItem = function TaskListMenuItem(_ref) {
17
17
  var api = _ref.api;
18
18
  var _useIntl = (0, _reactIntl.useIntl)(),
19
19
  formatMessage = _useIntl.formatMessage;
20
- var isMarkdownToolbarEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-markdown-mode', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_markdown_compatible_toolbar');
20
+ var isMarkdownToolbarEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-markdown-mode', 'isEnabled', true) && (0, _fg.fg)('platform_editor_markdown_compatible_toolbar');
21
21
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['taskDecision', 'markdownMode'], function (states) {
22
22
  var _states$taskDecisionS, _states$markdownModeS, _states$markdownModeS2, _states$markdownModeS3;
23
23
  return {
@@ -6,7 +6,7 @@ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
6
6
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
8
8
  import { findParentNodeOfType, hasParentNodeOfType, replaceParentNodeOfType, safeInsert, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
9
- import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { stateKey } from './plugin-key';
11
11
  import { ACTIONS } from './types';
12
12
  const getContextData = (contextProvider = {}) => {
@@ -1,6 +1,6 @@
1
1
  import { uuid } from '@atlaskit/adf-schema';
2
2
  import { flattenList as flattenListBase } from '@atlaskit/editor-common/lists';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  /**
6
6
  * Flattens a taskList into one item per task item, recording which items the
@@ -13,7 +13,7 @@ import { Popup } from '@atlaskit/editor-common/ui';
13
13
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
14
14
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
15
15
  import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
16
- import Heading from '@atlaskit/heading';
16
+ import Heading from '@atlaskit/heading/heading';
17
17
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
18
18
  import { Box, Pressable, Stack } from '@atlaskit/primitives/compiled';
19
19
  const PopupWithListeners = withOuterListeners(Popup);
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React, { Component } from 'react';
4
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
4
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
5
5
  import { ResourcedTaskItem } from '@atlaskit/task-decision';
6
6
  // eslint-disable-next-line @repo/internal/react/no-class-components
7
7
  export default class TaskItemWithProviders extends Component {
@@ -4,7 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
4
4
  import { formatShortcut, toggleTaskList } from '@atlaskit/editor-common/keymaps';
5
5
  import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
6
6
  import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint, TaskIcon } from '@atlaskit/editor-toolbar';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
9
  export const TaskListMenuItem = ({
10
10
  api
@@ -9,7 +9,7 @@ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
9
9
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
10
10
  import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
11
11
  import { findParentNodeOfType, hasParentNodeOfType, replaceParentNodeOfType, safeInsert, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
12
- import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
13
13
  import { stateKey } from './plugin-key';
14
14
  import { ACTIONS } from './types';
15
15
  var getContextData = function getContextData() {
@@ -3,7 +3,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
3
3
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
4
  import { uuid } from '@atlaskit/adf-schema';
5
5
  import { flattenList as flattenListBase } from '@atlaskit/editor-common/lists';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
7
 
8
8
  /**
9
9
  * Flattens a taskList into one item per task item, recording which items the
@@ -14,7 +14,7 @@ import { Popup } from '@atlaskit/editor-common/ui';
14
14
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
15
15
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
16
16
  import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
17
- import Heading from '@atlaskit/heading';
17
+ import Heading from '@atlaskit/heading/heading';
18
18
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
19
19
  import { Box, Pressable, Stack } from '@atlaskit/primitives/compiled';
20
20
  var PopupWithListeners = withOuterListeners(Popup);
@@ -12,7 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
14
  import React, { Component } from 'react';
15
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
15
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
16
16
  import { ResourcedTaskItem } from '@atlaskit/task-decision';
17
17
  // eslint-disable-next-line @repo/internal/react/no-class-components
18
18
  var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
@@ -4,7 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
4
4
  import { formatShortcut, toggleTaskList } from '@atlaskit/editor-common/keymaps';
5
5
  import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
6
6
  import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint, TaskIcon } from '@atlaskit/editor-toolbar';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
9
  export var TaskListMenuItem = function TaskListMenuItem(_ref) {
10
10
  var api = _ref.api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "18.0.13",
3
+ "version": "18.0.15",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/primitives": "^22.4.0",
43
43
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
44
44
  "@atlaskit/task-decision": "^21.8.0",
45
- "@atlaskit/tmp-editor-statsig": "^158.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^159.0.0",
46
46
  "@atlaskit/tokens": "^16.8.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@compiled/react": "^1.0.2",