@atlaskit/editor-plugin-card 11.5.0 → 11.5.2

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-card
2
2
 
3
+ ## 11.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.5.0
4
16
 
5
17
  ### Minor Changes
@@ -28,7 +28,7 @@ var _utils2 = require("../pm-plugins/utils");
28
28
  var _genericCard = require("./genericCard");
29
29
  function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
30
30
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
31
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
31
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
32
32
  // eslint-disable-next-line @repo/internal/react/no-class-components
33
33
  var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
34
34
  function BlockCardComponent(props) {
@@ -159,6 +159,7 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
159
159
  args[_key] = arguments[_key];
160
160
  }
161
161
  _this2 = _callSuper(this, BlockCard, [].concat(args));
162
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
162
163
  (0, _defineProperty2.default)(_this2, "id", (0, _v.default)());
163
164
  (0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
164
165
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -36,7 +36,7 @@ function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototyp
36
36
  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; }
37
37
  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; }
38
38
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
39
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
39
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
40
40
  var selector = function selector(states) {
41
41
  var _states$widthState, _states$widthState2, _states$editorDisable;
42
42
  return {
@@ -440,6 +440,7 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
440
440
  args[_key] = arguments[_key];
441
441
  }
442
442
  _this2 = _callSuper(this, EmbedCard, [].concat(args));
443
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
443
444
  (0, _defineProperty2.default)(_this2, "id", (0, _v.default)());
444
445
  (0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
445
446
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -26,6 +26,8 @@ var _toolbar = require("../ui/toolbar");
26
26
  var _genericCard = require("./genericCard");
27
27
  var _inlineCardWithAwareness = require("./inlineCardWithAwareness");
28
28
  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); }
29
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
30
+
29
31
  var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_ref) {
30
32
  var node = _ref.node,
31
33
  cardContext = _ref.cardContext,
@@ -45,6 +47,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
45
47
  var _node$attrs = node.attrs,
46
48
  url = _node$attrs.url,
47
49
  data = _node$attrs.data;
50
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
48
51
  var refId = (0, _react.useRef)((0, _v.default)());
49
52
  (0, _react.useEffect)(function () {
50
53
  var id = refId.current;
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import rafSchedule from 'raf-schd';
4
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
5
  import uuid from 'uuid/v4';
5
6
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
6
7
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
@@ -136,6 +137,7 @@ const WrappedBlockCard = Card(BlockCardComponent, UnsupportedBlock);
136
137
  export class BlockCard extends ReactNodeView {
137
138
  constructor(...args) {
138
139
  super(...args);
140
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
139
141
  _defineProperty(this, "id", uuid());
140
142
  _defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
141
143
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import React from 'react';
4
4
  import rafSchedule from 'raf-schd';
5
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
6
  import uuid from 'uuid/v4';
6
7
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
7
8
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -423,6 +424,7 @@ const WrappedEmbedCard = Card(WrappedEmbedCardWithCondition, UnsupportedBlock);
423
424
  export class EmbedCard extends ReactNodeView {
424
425
  constructor(...args) {
425
426
  super(...args);
427
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
426
428
  _defineProperty(this, "id", uuid());
427
429
  _defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
428
430
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
3
3
  import rafSchedule from 'raf-schd';
4
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
5
  import uuid from 'uuid/v4';
5
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -36,6 +37,7 @@ export const InlineCard = /*#__PURE__*/memo(({
36
37
  url,
37
38
  data
38
39
  } = node.attrs;
40
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
39
41
  const refId = useRef(uuid());
40
42
  useEffect(() => {
41
43
  const id = refId.current;
@@ -10,6 +10,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import rafSchedule from 'raf-schd';
13
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
13
14
  import uuid from 'uuid/v4';
14
15
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
15
16
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
@@ -153,6 +154,7 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
153
154
  args[_key] = arguments[_key];
154
155
  }
155
156
  _this2 = _callSuper(this, BlockCard, [].concat(args));
157
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
156
158
  _defineProperty(_this2, "id", uuid());
157
159
  _defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
158
160
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -13,6 +13,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
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 from 'react';
15
15
  import rafSchedule from 'raf-schd';
16
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
16
17
  import uuid from 'uuid/v4';
17
18
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
18
19
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -433,6 +434,7 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
433
434
  args[_key] = arguments[_key];
434
435
  }
435
436
  _this2 = _callSuper(this, EmbedCard, [].concat(args));
437
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
436
438
  _defineProperty(_this2, "id", uuid());
437
439
  _defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
438
440
  divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
3
3
  import rafSchedule from 'raf-schd';
4
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
5
  import uuid from 'uuid/v4';
5
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -34,6 +35,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
34
35
  var _node$attrs = node.attrs,
35
36
  url = _node$attrs.url,
36
37
  data = _node$attrs.data;
38
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
37
39
  var refId = useRef(uuid());
38
40
  useEffect(function () {
39
41
  var id = refId.current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "11.5.0",
3
+ "version": "11.5.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,9 +31,9 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^51.3.2",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
- "@atlaskit/button": "^23.5.0",
34
+ "@atlaskit/button": "^23.6.0",
35
35
  "@atlaskit/custom-steps": "^0.16.0",
36
- "@atlaskit/editor-card-provider": "^6.0.0",
36
+ "@atlaskit/editor-card-provider": "^6.1.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
38
38
  "@atlaskit/editor-plugin-base": "^7.2.0",
39
39
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
@@ -46,9 +46,9 @@
46
46
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
47
47
  "@atlaskit/editor-plugin-width": "^7.0.0",
48
48
  "@atlaskit/editor-prosemirror": "7.0.0",
49
- "@atlaskit/editor-shared-styles": "^3.8.0",
49
+ "@atlaskit/editor-shared-styles": "^3.9.0",
50
50
  "@atlaskit/frontend-utilities": "^3.2.0",
51
- "@atlaskit/icon": "^28.5.0",
51
+ "@atlaskit/icon": "^29.0.0",
52
52
  "@atlaskit/link": "^3.2.0",
53
53
  "@atlaskit/link-analytics": "^11.0.0",
54
54
  "@atlaskit/link-client-extension": "^6.0.0",
@@ -63,8 +63,8 @@
63
63
  "@atlaskit/prosemirror-history": "^0.2.0",
64
64
  "@atlaskit/smart-card": "^43.6.0",
65
65
  "@atlaskit/theme": "^21.0.0",
66
- "@atlaskit/tmp-editor-statsig": "^13.28.0",
67
- "@atlaskit/tokens": "^7.1.0",
66
+ "@atlaskit/tmp-editor-statsig": "^13.35.0",
67
+ "@atlaskit/tokens": "^8.0.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
70
70
  "lodash": "^4.17.21",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^3.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^110.22.0",
76
+ "@atlaskit/editor-common": "^110.27.0",
77
77
  "@atlaskit/link-provider": "^4.0.0",
78
78
  "react": "^18.2.0",
79
79
  "react-intl-next": "npm:react-intl@^5.18.1"