@atlaskit/media-avatar-picker 25.0.5 → 25.0.6
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 +6 -0
- package/dist/cjs/avatar-list/index.js +1 -1
- package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/cjs/avatar-picker-dialog/index.js +1 -1
- package/dist/cjs/image-cropper/index.js +1 -1
- package/dist/cjs/image-navigator/dragZone.js +1 -1
- package/dist/cjs/image-navigator/index.js +1 -1
- package/dist/cjs/image-navigator/slider.js +1 -1
- package/dist/cjs/image-placer/containerWrapper.js +1 -1
- package/dist/cjs/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/cjs/image-placer/imageWrapper.js +1 -1
- package/dist/cjs/image-placer/index.js +1 -1
- package/dist/cjs/image-placer/margin.js +1 -1
- package/dist/cjs/predefined-avatar-list/index.js +1 -1
- package/dist/cjs/predefined-avatar-view/index.js +1 -1
- package/dist/es2019/avatar-list/index.js +1 -1
- package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/es2019/avatar-picker-dialog/index.js +1 -1
- package/dist/es2019/image-cropper/index.js +1 -1
- package/dist/es2019/image-navigator/dragZone.js +1 -1
- package/dist/es2019/image-navigator/index.js +1 -1
- package/dist/es2019/image-navigator/slider.js +1 -1
- package/dist/es2019/image-placer/containerWrapper.js +1 -1
- package/dist/es2019/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/es2019/image-placer/imageWrapper.js +1 -1
- package/dist/es2019/image-placer/index.js +1 -1
- package/dist/es2019/image-placer/margin.js +1 -1
- package/dist/es2019/predefined-avatar-list/index.js +1 -1
- package/dist/es2019/predefined-avatar-view/index.js +1 -1
- package/dist/esm/avatar-list/index.js +1 -1
- package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +1 -1
- package/dist/esm/avatar-picker-dialog/index.js +1 -1
- package/dist/esm/image-cropper/index.js +1 -1
- package/dist/esm/image-navigator/dragZone.js +1 -1
- package/dist/esm/image-navigator/index.js +1 -1
- package/dist/esm/image-navigator/slider.js +1 -1
- package/dist/esm/image-placer/containerWrapper.js +1 -1
- package/dist/esm/image-placer/imagePlacerErrorWrapper.js +1 -1
- package/dist/esm/image-placer/imageWrapper.js +1 -1
- package/dist/esm/image-placer/index.js +1 -1
- package/dist/esm/image-placer/margin.js +1 -1
- package/dist/esm/predefined-avatar-list/index.js +1 -1
- package/dist/esm/predefined-avatar-view/index.js +1 -1
- package/example-helpers/StatefulAvatarPickerDialog.tsx +4 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import "./SubmitErrorDialog.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./containerWrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import "./imagePlacerErrorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* SubmitErrorDialog.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import "./SubmitErrorDialog.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* dragZone.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* dragZone.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["showBorder", "isDroppingFile", "children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* slider.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* slider.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* containerWrapper.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["width", "height", "margin", "children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imagePlacerErrorWrapper.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import "./imagePlacerErrorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* imageWrapper.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["x", "y", "width", "height", "transform"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* margin.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* margin.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -179,15 +179,19 @@ export default class StatefulAvatarPickerDialog extends React.Component<
|
|
|
179
179
|
{this.renderPicker()}
|
|
180
180
|
{imagePreviewSourceViaDataURIAPI !== '' ? (
|
|
181
181
|
<React.Fragment>
|
|
182
|
+
{/* eslint-disable-next-line @atlaskit/design-system/use-primitives-text */}
|
|
182
183
|
<p>onImagePickedDataURI(dataUri: string)</p>
|
|
183
184
|
<img src={imagePreviewSourceViaDataURIAPI} alt={altText || undefined} />
|
|
185
|
+
{/* eslint-disable-next-line @atlaskit/design-system/use-primitives-text */}
|
|
184
186
|
{requireAltText && <p>Alt text: {altText}</p>}
|
|
185
187
|
</React.Fragment>
|
|
186
188
|
) : null}
|
|
187
189
|
{imagePreviewSourceViaFileAPI !== '' ? (
|
|
188
190
|
<React.Fragment>
|
|
191
|
+
{/* eslint-disable-next-line @atlaskit/design-system/use-primitives-text */}
|
|
189
192
|
<p>onImagePicked(selectedImage: File, crop: CropProperties)</p>
|
|
190
193
|
<img src={imagePreviewSourceViaFileAPI} alt={altText || undefined} />
|
|
194
|
+
{/* eslint-disable-next-line @atlaskit/design-system/use-primitives-text */}
|
|
191
195
|
{requireAltText && <p>Alt text: {altText}</p>}
|
|
192
196
|
</React.Fragment>
|
|
193
197
|
) : null}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-avatar-picker",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.6",
|
|
4
4
|
"description": "A component to select, drag and resize image avatars. It also provides a default list of predefined avatars.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@atlaskit/css": "^0.7.0",
|
|
40
40
|
"@atlaskit/flag": "^15.8.0",
|
|
41
41
|
"@atlaskit/form": "^11.0.0",
|
|
42
|
-
"@atlaskit/icon": "^23.
|
|
43
|
-
"@atlaskit/media-ui": "^27.
|
|
44
|
-
"@atlaskit/modal-dialog": "^12.
|
|
42
|
+
"@atlaskit/icon": "^23.3.0",
|
|
43
|
+
"@atlaskit/media-ui": "^27.3.0",
|
|
44
|
+
"@atlaskit/modal-dialog": "^12.19.0",
|
|
45
45
|
"@atlaskit/primitives": "^13.3.0",
|
|
46
46
|
"@atlaskit/range": "^8.0.0",
|
|
47
47
|
"@atlaskit/spinner": "^16.3.0",
|
|
48
48
|
"@atlaskit/textfield": "^6.7.0",
|
|
49
49
|
"@atlaskit/theme": "^14.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^
|
|
50
|
+
"@atlaskit/tokens": "^3.0.0",
|
|
51
51
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@compiled/react": "^0.18.1",
|