@atlaskit/media-ui 30.6.0 → 30.6.1
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
|
@@ -26,6 +26,7 @@ var TimeSaver = exports.TimeSaver = /*#__PURE__*/function () {
|
|
|
26
26
|
get: function get() {
|
|
27
27
|
if (this.config && localStorage) {
|
|
28
28
|
try {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
29
30
|
var fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
30
31
|
if (fileDefaultTime) {
|
|
31
32
|
return JSON.parse(fileDefaultTime);
|
|
@@ -39,6 +40,7 @@ var TimeSaver = exports.TimeSaver = /*#__PURE__*/function () {
|
|
|
39
40
|
set: function set(time) {
|
|
40
41
|
if (this.config && localStorage) {
|
|
41
42
|
try {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
42
44
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
43
45
|
} catch (e) {
|
|
44
46
|
// Nothing to do, storing hasn't happened.
|
|
@@ -12,6 +12,7 @@ export class TimeSaver {
|
|
|
12
12
|
get defaultTime() {
|
|
13
13
|
if (this.config && localStorage) {
|
|
14
14
|
try {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
15
16
|
const fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
16
17
|
if (fileDefaultTime) {
|
|
17
18
|
return JSON.parse(fileDefaultTime);
|
|
@@ -25,6 +26,7 @@ export class TimeSaver {
|
|
|
25
26
|
set defaultTime(time) {
|
|
26
27
|
if (this.config && localStorage) {
|
|
27
28
|
try {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
28
30
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
29
31
|
} catch (e) {
|
|
30
32
|
// Nothing to do, storing hasn't happened.
|
|
@@ -19,6 +19,7 @@ export var TimeSaver = /*#__PURE__*/function () {
|
|
|
19
19
|
get: function get() {
|
|
20
20
|
if (this.config && localStorage) {
|
|
21
21
|
try {
|
|
22
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
22
23
|
var fileDefaultTime = localStorage.getItem(getDefaultTimeLocalStorageKey(this.config.contentId));
|
|
23
24
|
if (fileDefaultTime) {
|
|
24
25
|
return JSON.parse(fileDefaultTime);
|
|
@@ -32,6 +33,7 @@ export var TimeSaver = /*#__PURE__*/function () {
|
|
|
32
33
|
set: function set(time) {
|
|
33
34
|
if (this.config && localStorage) {
|
|
34
35
|
try {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-web-storage-usage -- existing usage
|
|
35
37
|
localStorage.setItem(getDefaultTimeLocalStorageKey(this.config.contentId), JSON.stringify(time));
|
|
36
38
|
} catch (e) {
|
|
37
39
|
// Nothing to do, storing hasn't happened.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "30.6.
|
|
3
|
+
"version": "30.6.1",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/css": "^1.0.0",
|
|
39
39
|
"@atlaskit/flag": "^18.1.0",
|
|
40
40
|
"@atlaskit/form": "^16.1.0",
|
|
41
|
-
"@atlaskit/icon": "^
|
|
41
|
+
"@atlaskit/icon": "^37.0.0",
|
|
42
42
|
"@atlaskit/icon-file-type": "^8.1.0",
|
|
43
43
|
"@atlaskit/locale": "^5.0.0",
|
|
44
44
|
"@atlaskit/media-client": "^37.2.0",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"@atlaskit/media-state": "^3.0.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
50
|
-
"@atlaskit/primitives": "^20.
|
|
50
|
+
"@atlaskit/primitives": "^20.5.0",
|
|
51
51
|
"@atlaskit/range": "^11.1.0",
|
|
52
52
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
53
53
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
54
|
-
"@atlaskit/select": "^22.
|
|
54
|
+
"@atlaskit/select": "^22.5.0",
|
|
55
55
|
"@atlaskit/spinner": "^20.1.0",
|
|
56
56
|
"@atlaskit/theme": "^26.1.0",
|
|
57
|
-
"@atlaskit/tokens": "^15.
|
|
57
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
58
58
|
"@atlaskit/tooltip": "^23.1.0",
|
|
59
|
-
"@atlaskit/width-detector": "^6.
|
|
59
|
+
"@atlaskit/width-detector": "^6.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@compiled/react": "^0.20.0",
|
|
62
62
|
"@emotion/styled": "^11.0.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/media-test-data": "^4.0.0",
|
|
80
80
|
"@atlaskit/ssr": "workspace:^",
|
|
81
81
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
82
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
83
|
-
"@atlassian/testing-library": "^0.
|
|
82
|
+
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
83
|
+
"@atlassian/testing-library": "^0.11.0",
|
|
84
84
|
"@testing-library/jest-dom": "^6.4.5",
|
|
85
85
|
"@testing-library/react": "^16.3.0",
|
|
86
86
|
"@types/blueimp-load-image": "^5.16.3",
|