@atlaskit/editor-extension-dropbox 4.0.5 → 4.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e17d0ffc75cdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e17d0ffc75cdd) -
8
+ Migrating custom icons behind feature flag.
9
+
3
10
  ## 4.0.5
4
11
 
5
12
  ### Patch Changes
@@ -38,6 +38,9 @@
38
38
  {
39
39
  "path": "../../../design-system/modal-dialog/afm-cc/tsconfig.json"
40
40
  },
41
+ {
42
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
43
+ },
41
44
  {
42
45
  "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
43
46
  },
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__editor-extension-dropbox/app",
6
+ "outDir": "../../../../../jira/tsDist/@atlaskit__editor-extension-dropbox/app",
7
7
  "rootDir": "../",
8
8
  "composite": true
9
9
  },
@@ -0,0 +1,7 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bsb1tcg{width:24px}
3
+ ._1reo15vq{overflow-x:hidden}
4
+ ._4t3i1tcg{height:24px}
5
+ ._lcxvglyw{pointer-events:none}
6
+ ._lswuvuon{fill:var(--ds-surface,#fff)}
7
+ ._syaz1a75{color:#0061ff}
@@ -1,20 +1,40 @@
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
10
+ require("./DropboxIcon.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
9
13
  var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ 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); }
16
+ var svgStyles = null;
10
17
  var _default = exports.default = function _default() {
11
- return /*#__PURE__*/_react.default.createElement("span", {
18
+ return /*#__PURE__*/React.createElement("span", {
12
19
  "data-vc": 'icon-editor-dropbox',
13
20
  "aria-hidden": true
14
- }, /*#__PURE__*/_react.default.createElement(_svg.default, {
21
+ }, (0, _platformFeatureFlags.fg)('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement("svg", {
22
+ viewBox: "0 0 24 24",
23
+ "aria-label": "dropbox-icon",
24
+ role: "img",
25
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw _syaz1a75 _1bsb1tcg _4t3i1tcg"])
26
+ }, /*#__PURE__*/React.createElement("path", {
27
+ fill: "currentcolor",
28
+ "fill-rule": "evenodd",
29
+ d: "M7 3 2 6.202l5 3.202-5 3.202 5 3.202 5-3.202 5 3.202 5-3.202-5-3.202 5-3.202L17 3l-5 3.202zm5 3.202 5 3.202-5 3.202-5-3.202zm0 13.875-5-3.202 5-3.202 5 3.202z",
30
+ "clip-rule": "evenodd"
31
+ })) :
32
+ /*#__PURE__*/
33
+ // eslint-disable-next-line @atlaskit/design-system/no-custom-icons, @atlaskit/design-system/ensure-design-token-usage
34
+ React.createElement(_svg.default, {
15
35
  primaryColor: "#0061FF",
16
36
  label: "dropbox-icon"
17
- }, /*#__PURE__*/_react.default.createElement("path", {
37
+ }, /*#__PURE__*/React.createElement("path", {
18
38
  fill: "currentcolor",
19
39
  "fill-rule": "evenodd",
20
40
  d: "M7 3 2 6.202l5 3.202-5 3.202 5 3.202 5-3.202 5 3.202 5-3.202-5-3.202 5-3.202L17 3l-5 3.202zm5 3.202 5 3.202-5 3.202-5-3.202zm0 13.875-5-3.202 5-3.202 5 3.202z",
@@ -0,0 +1,7 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bsb1tcg{width:24px}
3
+ ._1reo15vq{overflow-x:hidden}
4
+ ._4t3i1tcg{height:24px}
5
+ ._lcxvglyw{pointer-events:none}
6
+ ._lswuvuon{fill:var(--ds-surface,#fff)}
7
+ ._syaz1a75{color:#0061ff}
@@ -1,10 +1,28 @@
1
- import React from 'react';
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./DropboxIcon.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
2
5
  import SVG from '@atlaskit/icon/svg';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
+ const svgStyles = null;
3
8
  export default (() => {
4
9
  return /*#__PURE__*/React.createElement("span", {
5
10
  "data-vc": 'icon-editor-dropbox',
6
11
  "aria-hidden": true
7
- }, /*#__PURE__*/React.createElement(SVG, {
12
+ }, fg('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement("svg", {
13
+ viewBox: "0 0 24 24",
14
+ "aria-label": "dropbox-icon",
15
+ role: "img",
16
+ className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw _syaz1a75 _1bsb1tcg _4t3i1tcg"])
17
+ }, /*#__PURE__*/React.createElement("path", {
18
+ fill: "currentcolor",
19
+ "fill-rule": "evenodd",
20
+ d: "M7 3 2 6.202l5 3.202-5 3.202 5 3.202 5-3.202 5 3.202 5-3.202-5-3.202 5-3.202L17 3l-5 3.202zm5 3.202 5 3.202-5 3.202-5-3.202zm0 13.875-5-3.202 5-3.202 5 3.202z",
21
+ "clip-rule": "evenodd"
22
+ })) :
23
+ /*#__PURE__*/
24
+ // eslint-disable-next-line @atlaskit/design-system/no-custom-icons, @atlaskit/design-system/ensure-design-token-usage
25
+ React.createElement(SVG, {
8
26
  primaryColor: "#0061FF",
9
27
  label: "dropbox-icon"
10
28
  }, /*#__PURE__*/React.createElement("path", {
@@ -0,0 +1,7 @@
1
+ ._18m915vq{overflow-y:hidden}
2
+ ._1bsb1tcg{width:24px}
3
+ ._1reo15vq{overflow-x:hidden}
4
+ ._4t3i1tcg{height:24px}
5
+ ._lcxvglyw{pointer-events:none}
6
+ ._lswuvuon{fill:var(--ds-surface,#fff)}
7
+ ._syaz1a75{color:#0061ff}
@@ -1,10 +1,28 @@
1
- import React from 'react';
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./DropboxIcon.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
2
5
  import SVG from '@atlaskit/icon/svg';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
+ var svgStyles = null;
3
8
  export default (function () {
4
9
  return /*#__PURE__*/React.createElement("span", {
5
10
  "data-vc": 'icon-editor-dropbox',
6
11
  "aria-hidden": true
7
- }, /*#__PURE__*/React.createElement(SVG, {
12
+ }, fg('platform-custom-icon-migration') ? /*#__PURE__*/React.createElement("svg", {
13
+ viewBox: "0 0 24 24",
14
+ "aria-label": "dropbox-icon",
15
+ role: "img",
16
+ className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw _syaz1a75 _1bsb1tcg _4t3i1tcg"])
17
+ }, /*#__PURE__*/React.createElement("path", {
18
+ fill: "currentcolor",
19
+ "fill-rule": "evenodd",
20
+ d: "M7 3 2 6.202l5 3.202-5 3.202 5 3.202 5-3.202 5 3.202 5-3.202-5-3.202 5-3.202L17 3l-5 3.202zm5 3.202 5 3.202-5 3.202-5-3.202zm0 13.875-5-3.202 5-3.202 5 3.202z",
21
+ "clip-rule": "evenodd"
22
+ })) :
23
+ /*#__PURE__*/
24
+ // eslint-disable-next-line @atlaskit/design-system/no-custom-icons, @atlaskit/design-system/ensure-design-token-usage
25
+ React.createElement(SVG, {
8
26
  primaryColor: "#0061FF",
9
27
  label: "dropbox-icon"
10
28
  }, /*#__PURE__*/React.createElement("path", {
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
1
+ declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
1
+ declare const _default: () => JSX.Element;
3
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "A an atlassian editor extension to add a native dropbox picker",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,14 +35,16 @@
35
35
  "@atlaskit/button": "^23.6.0",
36
36
  "@atlaskit/heading": "^5.2.0",
37
37
  "@atlaskit/icon": "^29.0.0",
38
- "@atlaskit/modal-dialog": "^14.6.0",
39
- "@atlaskit/primitives": "^16.1.0",
40
- "@atlaskit/tokens": "^8.0.0",
38
+ "@atlaskit/modal-dialog": "^14.7.0",
39
+ "@atlaskit/platform-feature-flags": "^1.1.0",
40
+ "@atlaskit/primitives": "^16.4.0",
41
+ "@atlaskit/tokens": "^8.4.0",
41
42
  "@babel/runtime": "^7.0.0",
43
+ "@compiled/react": "^0.18.6",
42
44
  "@emotion/react": "^11.7.1"
43
45
  },
44
46
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^110.27.0",
47
+ "@atlaskit/editor-common": "^110.39.0",
46
48
  "react": "^18.2.0",
47
49
  "react-dom": "^18.2.0"
48
50
  },
@@ -56,5 +58,10 @@
56
58
  "emotion"
57
59
  ]
58
60
  }
61
+ },
62
+ "platform-feature-flags": {
63
+ "platform-custom-icon-migration": {
64
+ "type": "boolean"
65
+ }
59
66
  }
60
67
  }