@atlaskit/editor-extension-dropbox 5.0.4 → 5.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,19 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 5.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`d2f1426fe5b85`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2f1426fe5b85) -
14
+ [ux] ENGHEALTH-46817 Add feature gated a11y eslint fixes across editor packages
15
+ - Updated dependencies
16
+
3
17
  ## 5.0.4
4
18
 
5
19
  ### Patch Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "target": "es5",
6
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-extension-dropbox",
7
6
  "rootDir": "../",
@@ -45,6 +44,9 @@
45
44
  {
46
45
  "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
47
46
  },
47
+ {
48
+ "path": "../../tmp-editor-statsig/afm-cc/tsconfig.json"
49
+ },
48
50
  {
49
51
  "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
50
52
  },
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "target": "es5",
6
5
  "outDir": "../../../../../jira/tsDist/@atlaskit__editor-extension-dropbox/app",
7
6
  "rootDir": "../",
@@ -45,6 +44,9 @@
45
44
  {
46
45
  "path": "../../../design-system/primitives/afm-jira/tsconfig.json"
47
46
  },
47
+ {
48
+ "path": "../../tmp-editor-statsig/afm-jira/tsconfig.json"
49
+ },
48
50
  {
49
51
  "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
50
52
  },
package/dist/cjs/modal.js CHANGED
@@ -11,6 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
13
13
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
14
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
15
  var _constants = require("./constants");
15
16
  var _primitives = require("@atlaskit/primitives");
16
17
  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); }
@@ -90,18 +91,16 @@ var Modal = function Modal(_ref) {
90
91
  setIsOpen(false);
91
92
  _onClose();
92
93
  }
93
- }, (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(ModalBody, null, TEST_ONLY_src ?
94
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
95
- (0, _react2.jsx)("iframe", {
94
+ }, (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(ModalBody, null, TEST_ONLY_src ? (0, _react2.jsx)("iframe", {
96
95
  css: iframeStyle,
97
96
  name: _constants.DROPBOX_IFRAME_NAME,
97
+ title: (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
98
98
  frameBorder: 0,
99
99
  src: TEST_ONLY_src
100
- }) :
101
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
102
- (0, _react2.jsx)("iframe", {
100
+ }) : (0, _react2.jsx)("iframe", {
103
101
  css: iframeStyle,
104
102
  name: _constants.DROPBOX_IFRAME_NAME,
103
+ title: (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
105
104
  frameBorder: 0
106
105
  })))));
107
106
  };
@@ -7,6 +7,7 @@ import React, { useState } from 'react';
7
7
  import { jsx, css } from '@emotion/react';
8
8
  import ModalDialog, { ModalTransition, CloseButton, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
9
9
  import Heading from '@atlaskit/heading';
10
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
11
  import { DROPBOX_IFRAME_NAME } from './constants';
11
12
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
12
13
  import { xcss, Box } from '@atlaskit/primitives';
@@ -76,18 +77,16 @@ const Modal = ({
76
77
  setIsOpen(false);
77
78
  onClose();
78
79
  }
79
- }, jsx(Header, null), jsx(AKModalBody, null, jsx(ModalBody, null, TEST_ONLY_src ?
80
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
81
- jsx("iframe", {
80
+ }, jsx(Header, null), jsx(AKModalBody, null, jsx(ModalBody, null, TEST_ONLY_src ? jsx("iframe", {
82
81
  css: iframeStyle,
83
82
  name: DROPBOX_IFRAME_NAME,
83
+ title: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
84
84
  frameBorder: 0,
85
85
  src: TEST_ONLY_src
86
- }) :
87
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
88
- jsx("iframe", {
86
+ }) : jsx("iframe", {
89
87
  css: iframeStyle,
90
88
  name: DROPBOX_IFRAME_NAME,
89
+ title: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
91
90
  frameBorder: 0
92
91
  })))));
93
92
  };
package/dist/esm/modal.js CHANGED
@@ -8,6 +8,7 @@ import React, { useState } from 'react';
8
8
  import { jsx, css } from '@emotion/react';
9
9
  import ModalDialog, { ModalTransition, CloseButton, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
10
10
  import Heading from '@atlaskit/heading';
11
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
12
  import { DROPBOX_IFRAME_NAME } from './constants';
12
13
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
14
  import { xcss, Box } from '@atlaskit/primitives';
@@ -78,18 +79,16 @@ var Modal = function Modal(_ref) {
78
79
  setIsOpen(false);
79
80
  _onClose();
80
81
  }
81
- }, jsx(Header, null), jsx(AKModalBody, null, jsx(ModalBody, null, TEST_ONLY_src ?
82
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
83
- jsx("iframe", {
82
+ }, jsx(Header, null), jsx(AKModalBody, null, jsx(ModalBody, null, TEST_ONLY_src ? jsx("iframe", {
84
83
  css: iframeStyle,
85
84
  name: DROPBOX_IFRAME_NAME,
85
+ title: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
86
86
  frameBorder: 0,
87
87
  src: TEST_ONLY_src
88
- }) :
89
- // eslint-disable-next-line @atlassian/a11y/iframe-has-title
90
- jsx("iframe", {
88
+ }) : jsx("iframe", {
91
89
  css: iframeStyle,
92
90
  name: DROPBOX_IFRAME_NAME,
91
+ title: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? 'Dropbox file chooser' : undefined,
93
92
  frameBorder: 0
94
93
  })))));
95
94
  };
package/docs/README.tsx CHANGED
@@ -51,11 +51,11 @@ In the dropbox form, you will need to add the domains you wish the plugin to run
51
51
 
52
52
  ### Final important step
53
53
  ${(
54
- <>
55
- <p />
56
- <SectionMessage>Without this step, your extension will not render</SectionMessage>
57
- </>
58
- )}
54
+ <>
55
+ <p />
56
+ <SectionMessage>Without this step, your extension will not render</SectionMessage>
57
+ </>
58
+ )}
59
59
 
60
60
  As we are mounting the dropbox picker in an iframe, dropbox needs to whitelist the domains on which it will run. You will need to
61
61
  contact Anthony Marnell, or reach out to dropbox in the slack channel \`ext-dropbox-jira\` to dropbox directly. It may take a
@@ -64,13 +64,13 @@ few days to get the domains whitelisted for your app.
64
64
  In addition to this, you need to make sure your security permissions for \`X-Frame-Options\` and a \`Content-Security-Policy\`, otherwise dropbox will deny permissiones for the app.
65
65
 
66
66
  ${(
67
- <>
68
- <p />
69
- <SectionMessage>
70
- You should likely set up two apps, one for local testing, and one for production - make sure
71
- each has its needed domains allowed.
72
- </SectionMessage>
73
- </>
74
- )}
67
+ <>
68
+ <p />
69
+ <SectionMessage>
70
+ You should likely set up two apps, one for local testing, and one for production - make sure
71
+ each has its needed domains allowed.
72
+ </SectionMessage>
73
+ </>
74
+ )}
75
75
  `;
76
76
  export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "5.0.4",
3
+ "version": "5.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/"
@@ -34,17 +34,18 @@
34
34
  "@atlaskit/adf-utils": "^19.27.0",
35
35
  "@atlaskit/button": "^23.9.0",
36
36
  "@atlaskit/heading": "^5.3.0",
37
- "@atlaskit/icon": "^31.0.0",
38
- "@atlaskit/modal-dialog": "^14.10.0",
37
+ "@atlaskit/icon": "^32.0.0",
38
+ "@atlaskit/modal-dialog": "^14.11.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/primitives": "^18.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^29.6.0",
41
42
  "@atlaskit/tokens": "^11.0.0",
42
43
  "@babel/runtime": "^7.0.0",
43
44
  "@compiled/react": "^0.18.6",
44
45
  "@emotion/react": "^11.7.1"
45
46
  },
46
47
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^111.12.0",
48
+ "@atlaskit/editor-common": "^111.20.0",
48
49
  "react": "^18.2.0",
49
50
  "react-dom": "^18.2.0"
50
51
  },
package/tsconfig.json CHANGED
@@ -13,6 +13,5 @@
13
13
  "**/stories/*.tsx",
14
14
  "**/stories/**/*.ts",
15
15
  "**/stories/**/*.tsx"
16
- ],
17
- "compilerOptions": {}
16
+ ]
18
17
  }