@atlaskit/media-test-helpers 29.1.0 → 29.2.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
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/media-test-helpers
2
2
 
3
+ ## 29.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8bf4fdb8ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bf4fdb8ed4) - add renderWithIntl helper
8
+ - [`8742dbe70bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8742dbe70bd) - MEX-1102 Removed lodash dependencies from media component and converted all to local functions (lightweight helpers)
9
+ - [`94539e589cc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/94539e589cc) - MEX-1105 Migrated @atlaskit/button to @atlaskit/button/standard-button
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 29.1.0
4
16
 
5
17
  ### Minor Changes
@@ -37,7 +37,7 @@ var _popup = _interopRequireDefault(require("@atlaskit/popup"));
37
37
 
38
38
  var _checkbox = require("@atlaskit/checkbox");
39
39
 
40
- var _debounce = _interopRequireDefault(require("lodash/debounce"));
40
+ var _mediaCommon = require("@atlaskit/media-common");
41
41
 
42
42
  var _templateObject;
43
43
 
@@ -83,7 +83,7 @@ var TextFieldItem = function TextFieldItem(_ref3) {
83
83
  value = _ref3.value,
84
84
  isNumber = _ref3.isNumber,
85
85
  onChange = _ref3.onChange;
86
- var fieldChanged = (0, _debounce.default)(function (newValue) {
86
+ var fieldChanged = (0, _mediaCommon.debounce)(function (newValue) {
87
87
  var formattedValue = isNumber ? isNaN(Number(newValue)) ? 0 : Number(newValue) : newValue;
88
88
  (0, _helpers.setLocalFeatureFlag)(name, formattedValue);
89
89
  onChange();
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.matchMethod = exports.exactMatchUrl = exports.exactMatchHeaders = exports.exactMatchBody = exports.exactMatch = void 0;
9
7
 
10
- var _matches = _interopRequireDefault(require("lodash/matches"));
8
+ var _mediaCommon = require("@atlaskit/media-common");
11
9
 
12
10
  var matchMethod = function matchMethod(req, data) {
13
11
  return data.method ? data.method === req.method() : true;
@@ -16,20 +14,20 @@ var matchMethod = function matchMethod(req, data) {
16
14
  exports.matchMethod = matchMethod;
17
15
 
18
16
  var exactMatchUrl = function exactMatchUrl(req, data) {
19
- return data.url ? (0, _matches.default)(data.url)(req.url()) : true;
17
+ return data.url ? (0, _mediaCommon.matches)(data.url)(req.url()) : true;
20
18
  };
21
19
 
22
20
  exports.exactMatchUrl = exactMatchUrl;
23
21
 
24
22
  var exactMatchHeaders = function exactMatchHeaders(req, data) {
25
- return data.headers ? (0, _matches.default)(data.headers)(req.headers()) : true;
23
+ return data.headers ? (0, _mediaCommon.matches)(data.headers)(req.headers()) : true;
26
24
  };
27
25
 
28
26
  exports.exactMatchHeaders = exactMatchHeaders;
29
27
 
30
28
  var exactMatchBody = function exactMatchBody(req, data) {
31
29
  try {
32
- return data.body ? (0, _matches.default)(JSON.parse(data.body))(JSON.parse(req.body() || '{}')) : true;
30
+ return data.body ? (0, _mediaCommon.matches)(JSON.parse(data.body))(JSON.parse(req.body() || '{}')) : true;
33
31
  } catch (e) {
34
32
  return false;
35
33
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "29.1.0"
3
+ "version": "29.2.0"
4
4
  }
@@ -9,7 +9,7 @@ import Tooltip from '@atlaskit/tooltip';
9
9
  import styled from '@emotion/styled';
10
10
  import Popup from '@atlaskit/popup';
11
11
  import { Checkbox } from '@atlaskit/checkbox';
12
- import debounce from 'lodash/debounce';
12
+ import { debounce } from '@atlaskit/media-common';
13
13
 
14
14
  const camelCaseToSentenceCase = text => {
15
15
  var result = text.replace(/([A-Z])/g, ' $1');
@@ -1,4 +1,4 @@
1
- import matches from 'lodash/matches';
1
+ import { matches } from '@atlaskit/media-common';
2
2
  export const matchMethod = (req, data) => {
3
3
  return data.method ? data.method === req.method() : true;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "29.1.0"
3
+ "version": "29.2.0"
4
4
  }
@@ -15,7 +15,7 @@ import Tooltip from '@atlaskit/tooltip';
15
15
  import styled from '@emotion/styled';
16
16
  import Popup from '@atlaskit/popup';
17
17
  import { Checkbox } from '@atlaskit/checkbox';
18
- import debounce from 'lodash/debounce';
18
+ import { debounce } from '@atlaskit/media-common';
19
19
 
20
20
  var camelCaseToSentenceCase = function camelCaseToSentenceCase(text) {
21
21
  var result = text.replace(/([A-Z])/g, ' $1');
@@ -1,4 +1,4 @@
1
- import matches from 'lodash/matches';
1
+ import { matches } from '@atlaskit/media-common';
2
2
  export var matchMethod = function matchMethod(req, data) {
3
3
  return data.method ? data.method === req.method() : true;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "29.1.0"
3
+ "version": "29.2.0"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "29.1.0",
3
+ "version": "29.2.0",
4
4
  "description": "Collection of test helpers used in media component stories and specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,15 +19,15 @@
19
19
  "releaseModel": "scheduled"
20
20
  },
21
21
  "dependencies": {
22
- "@atlaskit/button": "^16.0.0",
22
+ "@atlaskit/button": "^16.2.0",
23
23
  "@atlaskit/checkbox": "^12.2.0",
24
24
  "@atlaskit/icon": "^21.10.0",
25
25
  "@atlaskit/locale": "^2.1.0",
26
- "@atlaskit/media-client": "^14.3.0",
27
- "@atlaskit/media-common": "^2.10.0",
26
+ "@atlaskit/media-client": "^14.4.0",
27
+ "@atlaskit/media-common": "^2.11.0",
28
28
  "@atlaskit/media-core": "^32.2.0",
29
- "@atlaskit/media-picker": "^59.0.0",
30
- "@atlaskit/media-ui": "^19.0.0",
29
+ "@atlaskit/media-picker": "^59.1.0",
30
+ "@atlaskit/media-ui": "^20.0.0",
31
31
  "@atlaskit/popup": "^1.3.0",
32
32
  "@atlaskit/textfield": "^5.0.1",
33
33
  "@atlaskit/tooltip": "^17.5.0",
@@ -37,7 +37,6 @@
37
37
  "enzyme": "^3.10.0",
38
38
  "exenv": "^1.2.2",
39
39
  "kakapo": "^4.0.6",
40
- "lodash": "^4.17.21",
41
40
  "mock-socket": "^9.0.3",
42
41
  "react-intl-next": "npm:react-intl@^5.18.1",
43
42
  "react-redux": "^5.1.2",
package/typings/uuid.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module 'uuid/*';