@atlaskit/task-decision 21.8.23 → 21.8.25

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/task-decision
2
2
 
3
+ ## 21.8.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.8.24
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 21.8.23
4
16
 
5
17
  ### Patch Changes
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.fabricElementsChannel = exports.createAndFireEventInElementsChannel = void 0;
7
- var _analyticsNext = require("@atlaskit/analytics-next");
8
+ var _createAndFireEvents = _interopRequireDefault(require("@atlaskit/analytics-next/createAndFireEvents"));
8
9
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
9
10
 
10
11
  var fabricElementsChannel = exports.fabricElementsChannel = 'fabric-elements';
11
- var createAndFireEventInElementsChannel = exports.createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(fabricElementsChannel);
12
+ var createAndFireEventInElementsChannel = exports.createAndFireEventInElementsChannel = (0, _createAndFireEvents.default)(fabricElementsChannel);
@@ -14,7 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _TaskItem = _interopRequireDefault(require("./TaskItem"));
17
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
17
+ var _FabricElementsAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext");
18
18
  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); }
19
19
  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; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -167,7 +167,7 @@ var ResourcedTaskItem = exports.default = /*#__PURE__*/function (_PureComponent)
167
167
  isRenderer = _this$props3.isRenderer,
168
168
  isFocused = _this$props3.isFocused,
169
169
  inputRef = _this$props3.inputRef;
170
- return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
170
+ return /*#__PURE__*/_react.default.createElement(_FabricElementsAnalyticsContext.FabricElementsAnalyticsContext, {
171
171
  data: {
172
172
  objectAri: objectAri
173
173
  }
@@ -12,16 +12,16 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _reactIntl = require("react-intl");
15
- var _baseNew = require("@atlaskit/icon/base-new");
15
+ var _iconNew = require("@atlaskit/icon/components/icon-new");
16
16
  var _checkboxChecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-checked"));
17
17
  var _i18n = require("./i18n");
18
18
  var _Item = _interopRequireDefault(require("./Item"));
19
- var _analyticsNext = require("@atlaskit/analytics-next");
19
+ var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
20
20
  var _analytics = require("../analytics");
21
21
  var _useCallbackRef = require("use-callback-ref");
22
22
  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); }
23
23
  var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
24
- return /*#__PURE__*/_react.default.createElement(_baseNew.Icon, (0, _extends2.default)({
24
+ return /*#__PURE__*/_react.default.createElement(_iconNew.Icon, (0, _extends2.default)({
25
25
  dangerouslySetGlyph: "<rect width=\"12.5\" height=\"12.5\" x=\"1.75\" y=\"1.75\" stroke=\"currentcolor\" stroke-width=\"1.5\" rx=\"1.25\"/>"
26
26
  }, props));
27
27
  };
@@ -126,5 +126,5 @@ var TaskItem = function TaskItem(props) {
126
126
  checkBoxId: checkBoxId
127
127
  }, children);
128
128
  };
129
- var _default_1 = (0, _analyticsNext.withAnalyticsEvents)()(TaskItem);
129
+ var _default_1 = (0, _withAnalyticsEvents.default)()(TaskItem);
130
130
  var _default = exports.default = _default_1;
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
  require("./TaskList.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
12
+ var _FabricElementsAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext");
13
13
  var _i18n = require("./i18n");
14
14
  var _reactIntl = require("react-intl");
15
15
  var listStyles = null;
@@ -35,7 +35,7 @@ var TaskList = function TaskList(_ref) {
35
35
  "aria-label": formatMessage(_i18n.messages.fieldsetLabel),
36
36
  className: (0, _runtime.ax)(["_2mzuglyw _19bvidpf _j6mf1b66"])
37
37
  }, _react.default.Children.map(children, function (child, idx) {
38
- return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
38
+ return /*#__PURE__*/_react.default.createElement(_FabricElementsAnalyticsContext.FabricElementsAnalyticsContext, {
39
39
  data: {
40
40
  listLocalId: listId,
41
41
  listSize: listSize,
@@ -1,4 +1,4 @@
1
1
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
2
- import { createAndFireEvent } from '@atlaskit/analytics-next';
2
+ import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
3
3
  export const fabricElementsChannel = 'fabric-elements';
4
4
  export const createAndFireEventInElementsChannel = createAndFireEvent(fabricElementsChannel);
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { PureComponent } from 'react';
4
4
  import TaskItem from './TaskItem';
5
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
5
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
6
6
  export default class ResourcedTaskItem extends PureComponent {
7
7
  constructor(props) {
8
8
  super(props);
@@ -4,11 +4,11 @@ import "./TaskItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useMemo, useRef } from 'react';
6
6
  import { useIntl } from 'react-intl';
7
- import { Icon } from '@atlaskit/icon/base-new';
7
+ import { Icon } from '@atlaskit/icon/components/icon-new';
8
8
  import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
9
9
  import { messages } from './i18n';
10
10
  import Item from './Item';
11
- import { withAnalyticsEvents } from '@atlaskit/analytics-next';
11
+ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
12
12
  import { createAndFireEventInElementsChannel } from '../analytics';
13
13
  import { useMergeRefs } from 'use-callback-ref';
14
14
  const CheckboxUncheckedIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
@@ -2,7 +2,7 @@
2
2
  import "./TaskList.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
5
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
6
6
  import { messages } from './i18n';
7
7
  import { useIntl } from 'react-intl';
8
8
  const listStyles = null;
@@ -1,4 +1,4 @@
1
1
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
2
- import { createAndFireEvent } from '@atlaskit/analytics-next';
2
+ import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
3
3
  export var fabricElementsChannel = 'fabric-elements';
4
4
  export var createAndFireEventInElementsChannel = createAndFireEvent(fabricElementsChannel);
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
11
11
  import React from 'react';
12
12
  import { PureComponent } from 'react';
13
13
  import TaskItem from './TaskItem';
14
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
14
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
15
15
  var ResourcedTaskItem = /*#__PURE__*/function (_PureComponent) {
16
16
  function ResourcedTaskItem(props) {
17
17
  var _this;
@@ -4,11 +4,11 @@ import "./TaskItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useMemo, useRef } from 'react';
6
6
  import { useIntl } from 'react-intl';
7
- import { Icon } from '@atlaskit/icon/base-new';
7
+ import { Icon } from '@atlaskit/icon/components/icon-new';
8
8
  import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
9
9
  import { messages } from './i18n';
10
10
  import Item from './Item';
11
- import { withAnalyticsEvents } from '@atlaskit/analytics-next';
11
+ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
12
12
  import { createAndFireEventInElementsChannel } from '../analytics';
13
13
  import { useMergeRefs } from 'use-callback-ref';
14
14
  var CheckboxUncheckedIcon = function CheckboxUncheckedIcon(props) {
@@ -2,7 +2,7 @@
2
2
  import "./TaskList.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
5
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
6
6
  import { messages } from './i18n';
7
7
  import { useIntl } from 'react-intl';
8
8
  var listStyles = null;
@@ -1,3 +1,5 @@
1
- import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
1
+ import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
2
+ import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
3
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
4
  export declare const fabricElementsChannel = "fabric-elements";
3
5
  export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React, { type Ref } from 'react';
6
6
  import { type Appearance, type ContentRef } from '../types';
7
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
8
8
  export interface Props {
9
9
  appearance?: Appearance;
10
10
  children?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/task-decision",
3
- "version": "21.8.23",
3
+ "version": "21.8.25",
4
4
  "description": "Tasks and decisions react components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/analytics-next": "^12.3.0",
57
57
  "@atlaskit/icon": "^37.5.0",
58
58
  "@atlaskit/react-compiler-gating": "^0.2.0",
59
- "@atlaskit/tmp-editor-statsig": "^158.0.0",
59
+ "@atlaskit/tmp-editor-statsig": "^160.0.0",
60
60
  "@atlaskit/tokens": "^16.8.0",
61
61
  "@atlaskit/util-service-support": "^7.2.0",
62
62
  "@babel/runtime": "^7.0.0",