@atlaskit/editor-plugin-status 17.2.3 → 17.2.5

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-status
2
2
 
3
+ ## 17.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.2.3
4
16
 
5
17
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.verifyAndInsertStatus = exports.updateStatusWithAnalytics = exports.updateStatus = exports.setStatusPickerAt = exports.setFocusOnStatusInput = exports.removeStatus = exports.insertStatus = exports.createStatus = exports.commitStatusPicker = exports.DEFAULT_STATUS_NEW = exports.DEFAULT_STATUS = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _adfSchema = require("@atlaskit/adf-schema");
9
+ var _uuid = require("@atlaskit/adf-schema/uuid");
10
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
@@ -43,7 +43,7 @@ var verifyAndInsertStatus = exports.verifyAndInsertStatus = function verifyAndIn
43
43
  var createStatus = exports.createStatus = function createStatus(tr) {
44
44
  var annotationMarksForPos = (0, _utils.getAnnotationMarksForPos)(tr.selection.$head);
45
45
  var statusNode = tr.doc.type.schema.nodes.status.createChecked(_objectSpread(_objectSpread({}, (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? DEFAULT_STATUS_NEW : DEFAULT_STATUS), {}, {
46
- localId: _adfSchema.uuid.generate()
46
+ localId: _uuid.uuid.generate()
47
47
  }), null, annotationMarksForPos);
48
48
  return verifyAndInsertStatus(statusNode, tr, annotationMarksForPos);
49
49
  };
@@ -71,7 +71,7 @@ var updateStatus = exports.updateStatus = function updateStatus(status) {
71
71
  var schema = state.schema;
72
72
  var selectedStatus = status ? Object.assign(status, {
73
73
  text: status.text.trim(),
74
- localId: status.localId || _adfSchema.uuid.generate()
74
+ localId: status.localId || _uuid.uuid.generate()
75
75
  }) : status;
76
76
  var statusProps = _objectSpread(_objectSpread({}, (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? DEFAULT_STATUS_NEW : DEFAULT_STATUS), selectedStatus);
77
77
  var tr = state.tr;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.statusPlugin = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _adfSchema = require("@atlaskit/adf-schema");
10
+ var _status = require("@atlaskit/adf-schema/status");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _keymaps = require("@atlaskit/editor-common/keymaps");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
@@ -39,7 +39,7 @@ var statusPlugin = exports.statusPlugin = function statusPlugin(_ref) {
39
39
  nodes: function nodes() {
40
40
  return [{
41
41
  name: 'status',
42
- node: _adfSchema.status
42
+ node: _status.status
43
43
  }];
44
44
  },
45
45
  pmPlugins: function pmPlugins() {
@@ -1,4 +1,4 @@
1
- import { uuid } from '@atlaskit/adf-schema';
1
+ import { uuid } from '@atlaskit/adf-schema/uuid';
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
4
4
  import { getAnnotationMarksForPos } from '@atlaskit/editor-common/utils';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { status } from '@atlaskit/adf-schema';
2
+ import { status } from '@atlaskit/adf-schema/status';
3
3
  import { ACTION_SUBJECT_ID, ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { addInlineComment, ToolTipContent } from '@atlaskit/editor-common/keymaps';
5
5
  import { annotationMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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) { _defineProperty(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; }
4
- import { uuid } from '@atlaskit/adf-schema';
4
+ import { uuid } from '@atlaskit/adf-schema/uuid';
5
5
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
7
7
  import { getAnnotationMarksForPos } from '@atlaskit/editor-common/utils';
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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) { _defineProperty(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; }
4
4
  import React from 'react';
5
- import { status } from '@atlaskit/adf-schema';
5
+ import { status } from '@atlaskit/adf-schema/status';
6
6
  import { ACTION_SUBJECT_ID, ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { addInlineComment, ToolTipContent } from '@atlaskit/editor-common/keymaps';
8
8
  import { annotationMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-status",
3
- "version": "17.2.3",
3
+ "version": "17.2.5",
4
4
  "description": "Status plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  "@atlaskit/platform-feature-experiments": "^0.3.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.2.0",
36
36
  "@atlaskit/status": "^5.9.0",
37
- "@atlaskit/tmp-editor-statsig": "^171.0.0",
37
+ "@atlaskit/tmp-editor-statsig": "^173.0.0",
38
38
  "@atlaskit/tokens": "^16.11.0",
39
39
  "@atlaskit/visually-hidden": "^4.4.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "@atlaskit/editor-common": "^120.10.0",
44
+ "@atlaskit/editor-common": "^120.11.0",
45
45
  "react": "^18.2.0 || ^19.2.0",
46
46
  "react-dom": "^18.2.0 || ^19.2.0",
47
47
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -53,42 +53,6 @@
53
53
  "react-dom": "^19.2.0",
54
54
  "react-intl": "^7.0.0"
55
55
  },
56
- "techstack": {
57
- "@atlassian/frontend": {
58
- "code-structure": [
59
- "editor-plugin"
60
- ],
61
- "import-structure": [
62
- "atlassian-conventions"
63
- ],
64
- "circular-dependencies": [
65
- "file-and-folder-level"
66
- ]
67
- },
68
- "@repo/internal": {
69
- "dom-events": "use-bind-event-listener",
70
- "analytics": [
71
- "analytics-next"
72
- ],
73
- "design-tokens": [
74
- "color"
75
- ],
76
- "theming": [
77
- "react-context"
78
- ],
79
- "ui-components": [
80
- "lite-mode"
81
- ],
82
- "deprecation": "no-deprecated-imports",
83
- "styling": [
84
- "emotion",
85
- "emotion"
86
- ],
87
- "imports": [
88
- "import-no-extraneous-disable-for-examples-and-docs"
89
- ]
90
- }
91
- },
92
56
  "platform-feature-flags": {
93
57
  "platform-component-visual-refresh": {
94
58
  "type": "boolean"