@atlaskit/adf-schema 36.8.5 → 36.9.0
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
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
});
|
7
7
|
exports.toJSON = exports.mention = exports.USER_TYPES = void 0;
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
|
+
var _utils = require("../../utils");
|
9
10
|
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; }
|
10
11
|
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; }
|
11
12
|
var USER_TYPES = exports.USER_TYPES = /*#__PURE__*/function (USER_TYPES) {
|
@@ -46,7 +47,7 @@ var mention = exports.mention = {
|
|
46
47
|
id: dom.getAttribute('data-mention-id') || mention.attrs.id.default,
|
47
48
|
text: dom.textContent || mention.attrs.text.default,
|
48
49
|
accessLevel: dom.getAttribute('data-access-level') || mention.attrs.accessLevel.default,
|
49
|
-
localId:
|
50
|
+
localId: _utils.uuid.generate()
|
50
51
|
};
|
51
52
|
var userType = dom.getAttribute('data-user-type');
|
52
53
|
if (USER_TYPES[userType]) {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { uuid } from '../../utils';
|
1
2
|
export let USER_TYPES = /*#__PURE__*/function (USER_TYPES) {
|
2
3
|
USER_TYPES["DEFAULT"] = "DEFAULT";
|
3
4
|
USER_TYPES["SPECIAL"] = "SPECIAL";
|
@@ -38,7 +39,7 @@ export const mention = {
|
|
38
39
|
id: dom.getAttribute('data-mention-id') || mention.attrs.id.default,
|
39
40
|
text: dom.textContent || mention.attrs.text.default,
|
40
41
|
accessLevel: dom.getAttribute('data-access-level') || mention.attrs.accessLevel.default,
|
41
|
-
localId:
|
42
|
+
localId: uuid.generate()
|
42
43
|
};
|
43
44
|
const userType = dom.getAttribute('data-user-type');
|
44
45
|
if (USER_TYPES[userType]) {
|
@@ -1,6 +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 '../../utils';
|
4
5
|
export var USER_TYPES = /*#__PURE__*/function (USER_TYPES) {
|
5
6
|
USER_TYPES["DEFAULT"] = "DEFAULT";
|
6
7
|
USER_TYPES["SPECIAL"] = "SPECIAL";
|
@@ -41,7 +42,7 @@ export var mention = {
|
|
41
42
|
id: dom.getAttribute('data-mention-id') || mention.attrs.id.default,
|
42
43
|
text: dom.textContent || mention.attrs.text.default,
|
43
44
|
accessLevel: dom.getAttribute('data-access-level') || mention.attrs.accessLevel.default,
|
44
|
-
localId:
|
45
|
+
localId: uuid.generate()
|
45
46
|
};
|
46
47
|
var userType = dom.getAttribute('data-user-type');
|
47
48
|
if (USER_TYPES[userType]) {
|
package/package.json
CHANGED