@atlaskit/forge-react-types 0.55.0 → 0.56.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
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.56.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.56.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`a7751359d45b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a7751359d45b6) -
14
+ Add fullscreen size for uikit modal component
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 0.55.0
4
21
 
5
22
  ### Minor Changes
@@ -3,14 +3,19 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalProps
5
5
  *
6
- * @codegen <<SignedSource::fd2d23af87d0cac85d3be5580d3b709f>>
6
+ * @codegen <<SignedSource::8b63ca59b5ca961ff45b56f3e027461e>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/index.partial.tsx <<SignedSource::3bf621bc2d484c5789face984482559d>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/index.tsx <<SignedSource::d55078b8390dc6de58ffa9088dc9ede6>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformModalDialog from '@atlaskit/modal-dialog';
12
12
  type PlatformModalDialogProps = React.ComponentProps<typeof PlatformModalDialog>;
13
- export type ModalProps = Pick<PlatformModalDialogProps, 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'>;
13
+ export type ModalProps = Pick<PlatformModalDialogProps, 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'> & {
14
+ /** Icon URL to display next to the title only if title is supplied. Fallback is no icon. */
15
+ icon?: string;
16
+ /** Title for the modal header. If supplied, we will render a ModalHeader with a ModalTitle for them. Fallback to app name if not supplied for fullscreen modals. */
17
+ title?: string;
18
+ };
14
19
  /**
15
20
  * A modal dialog displays content that requires user interaction, in a layer above the page.
16
21
  *
@@ -3,14 +3,19 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalProps
5
5
  *
6
- * @codegen <<SignedSource::fd2d23af87d0cac85d3be5580d3b709f>>
6
+ * @codegen <<SignedSource::8b63ca59b5ca961ff45b56f3e027461e>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/index.partial.tsx <<SignedSource::3bf621bc2d484c5789face984482559d>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/index.tsx <<SignedSource::d55078b8390dc6de58ffa9088dc9ede6>>
9
9
  */
10
10
  import React from 'react';
11
11
  import PlatformModalDialog from '@atlaskit/modal-dialog';
12
12
  type PlatformModalDialogProps = React.ComponentProps<typeof PlatformModalDialog>;
13
- export type ModalProps = Pick<PlatformModalDialogProps, 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'>;
13
+ export type ModalProps = Pick<PlatformModalDialogProps, 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'> & {
14
+ /** Icon URL to display next to the title only if title is supplied. Fallback is no icon. */
15
+ icon?: string;
16
+ /** Title for the modal header. If supplied, we will render a ModalHeader with a ModalTitle for them. Fallback to app name if not supplied for fullscreen modals. */
17
+ title?: string;
18
+ };
14
19
  /**
15
20
  * A modal dialog displays content that requires user interaction, in a layer above the page.
16
21
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.55.0",
3
+ "version": "0.56.1",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,14 +28,14 @@
28
28
  "@atlaskit/form": "^15.3.0",
29
29
  "@atlaskit/inline-edit": "^15.6.0",
30
30
  "@atlaskit/modal-dialog": "^14.10.0",
31
- "@atlaskit/navigation-system": "^5.27.0",
31
+ "@atlaskit/navigation-system": "^5.28.0",
32
32
  "@atlaskit/popup": "^4.13.0",
33
33
  "@atlaskit/primitives": "^17.1.0",
34
34
  "@atlaskit/progress-bar": "^4.1.0",
35
35
  "@atlaskit/progress-tracker": "^10.4.0",
36
36
  "@atlaskit/radio": "^8.4.0",
37
37
  "@atlaskit/section-message": "^8.12.0",
38
- "@atlaskit/select": "^21.6.0",
38
+ "@atlaskit/select": "^21.7.0",
39
39
  "@atlaskit/spinner": "^19.0.0",
40
40
  "@atlaskit/tabs": "^18.3.0",
41
41
  "@atlaskit/tag": "^14.2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/textfield": "^8.2.0",
45
45
  "@atlaskit/tile": "^1.0.0",
46
46
  "@atlaskit/toggle": "^15.2.0",
47
- "@atlaskit/tokens": "^9.1.0",
47
+ "@atlaskit/tokens": "^10.0.0",
48
48
  "@atlaskit/tooltip": "^20.14.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@atlassian/codegen": "^0.1.0",
58
- "@atlassian/forge-ui": "^32.68.0",
58
+ "@atlassian/forge-ui": "^32.69.0",
59
59
  "@types/node": "~22.17.1",
60
60
  "lodash": "^4.17.21",
61
61
  "react": "^18.2.0",
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ModalProps
5
5
  *
6
- * @codegen <<SignedSource::fd2d23af87d0cac85d3be5580d3b709f>>
6
+ * @codegen <<SignedSource::8b63ca59b5ca961ff45b56f3e027461e>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/__generated__/index.partial.tsx <<SignedSource::3bf621bc2d484c5789face984482559d>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/modal/index.tsx <<SignedSource::d55078b8390dc6de58ffa9088dc9ede6>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -15,9 +15,21 @@ import PlatformModalDialog from '@atlaskit/modal-dialog';
15
15
  type PlatformModalDialogProps = React.ComponentProps<typeof PlatformModalDialog>;
16
16
 
17
17
  export type ModalProps = Pick<
18
- PlatformModalDialogProps,
19
- 'autoFocus' | 'children' | 'height' | 'width' | 'onClose' | 'shouldScrollInViewport' | 'label' | 'testId'
20
- >;
18
+ PlatformModalDialogProps,
19
+ | 'autoFocus'
20
+ | 'children'
21
+ | 'height'
22
+ | 'width'
23
+ | 'onClose'
24
+ | 'shouldScrollInViewport'
25
+ | 'label'
26
+ | 'testId'
27
+ > & {
28
+ /** Icon URL to display next to the title only if title is supplied. Fallback is no icon. */
29
+ icon?: string;
30
+ /** Title for the modal header. If supplied, we will render a ModalHeader with a ModalTitle for them. Fallback to app name if not supplied for fullscreen modals. */
31
+ title?: string;
32
+ };
21
33
 
22
34
  /**
23
35
  * A modal dialog displays content that requires user interaction, in a layer above the page.