@atlaskit/editor-extension-dropbox 16.0.9 → 16.1.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/editor-extension-dropbox
2
2
 
3
+ ## 16.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c7ac8f1cd5f6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c7ac8f1cd5f6b) -
8
+ Add ModalTitle usage behind platform_dst_modal-dialog-use-modal-title (adds
9
+ @atlaskit/platform-feature-flags).
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 16.0.9
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,11 @@
1
+ import { snapshot } from '@af/visual-regression';
2
+
3
+ import DropboxModalOpen from '../../examples/dropbox-modal.vr.ap';
4
+
5
+ snapshot(DropboxModalOpen, {
6
+ description: 'Dropbox modal title',
7
+ drawsOutsideBounds: true,
8
+ featureFlags: {
9
+ 'platform_dst_modal-dialog-use-modal-title': [true, false],
10
+ },
11
+ });
@@ -1,4 +1,4 @@
1
- /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
package/dist/cjs/modal.js CHANGED
@@ -14,6 +14,8 @@ var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/mo
14
14
  var _closeButton = require("@atlaskit/modal-dialog/close-button");
15
15
  var _hooks = require("@atlaskit/modal-dialog/hooks");
16
16
  var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
17
+ var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
17
19
  var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
18
20
  var _constants = require("./constants");
19
21
  var _primitives = require("@atlaskit/primitives");
@@ -69,7 +71,10 @@ var Header = function Header() {
69
71
  css: spacingDivStyle
70
72
  }), (0, _react2.jsx)(_primitives.Box, {
71
73
  xcss: headingStyle
72
- }, (0, _react2.jsx)(_heading.default, {
74
+ }, (0, _fg.fg)('platform_dst_modal-dialog-use-modal-title') ? (0, _react2.jsx)(_modalTitle.default, null, (0, _react2.jsx)(_heading.default, {
75
+ size: "xsmall",
76
+ as: "span"
77
+ }, "Dropbox")) : (0, _react2.jsx)(_heading.default, {
73
78
  id: titleId,
74
79
  size: "xsmall"
75
80
  }, "Dropbox")), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_closeButton.CloseButton, {
@@ -1,4 +1,4 @@
1
- /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./DropboxIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -10,6 +10,8 @@ import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
10
10
  import { CloseButton } from '@atlaskit/modal-dialog/close-button';
11
11
  import { useModal } from '@atlaskit/modal-dialog/hooks';
12
12
  import AKModalBody from '@atlaskit/modal-dialog/modal-body';
13
+ import ModalTitle from '@atlaskit/modal-dialog/modal-title';
14
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
13
15
  import Heading from '@atlaskit/heading/heading';
14
16
  import { DROPBOX_IFRAME_NAME } from './constants';
15
17
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
@@ -57,7 +59,10 @@ const Header = () => {
57
59
  css: spacingDivStyle
58
60
  }), jsx(Box, {
59
61
  xcss: headingStyle
60
- }, jsx(Heading, {
62
+ }, fg('platform_dst_modal-dialog-use-modal-title') ? jsx(ModalTitle, null, jsx(Heading, {
63
+ size: "xsmall",
64
+ as: "span"
65
+ }, "Dropbox")) : jsx(Heading, {
61
66
  id: titleId,
62
67
  size: "xsmall"
63
68
  }, "Dropbox")), jsx("div", null, jsx(CloseButton, {
@@ -1,4 +1,4 @@
1
- /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* DropboxIcon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./DropboxIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
package/dist/esm/modal.js CHANGED
@@ -11,6 +11,8 @@ import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
11
11
  import { CloseButton } from '@atlaskit/modal-dialog/close-button';
12
12
  import { useModal } from '@atlaskit/modal-dialog/hooks';
13
13
  import AKModalBody from '@atlaskit/modal-dialog/modal-body';
14
+ import ModalTitle from '@atlaskit/modal-dialog/modal-title';
15
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
14
16
  import Heading from '@atlaskit/heading/heading';
15
17
  import { DROPBOX_IFRAME_NAME } from './constants';
16
18
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
@@ -57,7 +59,10 @@ var Header = function Header() {
57
59
  css: spacingDivStyle
58
60
  }), jsx(Box, {
59
61
  xcss: headingStyle
60
- }, jsx(Heading, {
62
+ }, fg('platform_dst_modal-dialog-use-modal-title') ? jsx(ModalTitle, null, jsx(Heading, {
63
+ size: "xsmall",
64
+ as: "span"
65
+ }, "Dropbox")) : jsx(Heading, {
61
66
  id: titleId,
62
67
  size: "xsmall"
63
68
  }, "Dropbox")), jsx("div", null, jsx(CloseButton, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "16.0.9",
3
+ "version": "16.1.0",
4
4
  "description": "A an atlassian editor extension to add a native dropbox picker",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,6 +36,7 @@
36
36
  "@atlaskit/heading": "^7.2.0",
37
37
  "@atlaskit/modal-dialog": "^16.6.0",
38
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
39
+ "@atlaskit/platform-feature-flags": "^2.2.0",
39
40
  "@atlaskit/primitives": "^22.5.0",
40
41
  "@atlaskit/react-compiler-gating": "^0.2.0",
41
42
  "@atlaskit/section-message": "^10.2.0",
@@ -46,15 +47,22 @@
46
47
  "@emotion/react": "^11.7.1"
47
48
  },
48
49
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^122.8.0",
50
+ "@atlaskit/editor-common": "^122.9.0",
50
51
  "react": "^18.2.0 || ^19.2.0",
51
52
  "react-dom": "^18.2.0 || ^19.2.0"
52
53
  },
53
54
  "devDependencies": {
55
+ "@af/visual-regression": "workspace:^",
54
56
  "@atlassian/experiment-test-utils": "^0.2.0",
55
57
  "@atlassian/structured-docs-types": "workspace:^",
56
58
  "@atlassian/workbench": "workspace:*",
57
59
  "react": "^19.2.0",
58
60
  "react-dom": "^19.2.0"
61
+ },
62
+ "platform-feature-flags": {
63
+ "platform_dst_modal-dialog-use-modal-title": {
64
+ "type": "boolean",
65
+ "referenceOnly": true
66
+ }
59
67
  }
60
68
  }