@atlaskit/forge-react-types 0.42.13 → 0.42.15

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,21 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.42.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3685aa4e6cc0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3685aa4e6cc0) -
8
+ Add LinkMenuItem
9
+ - Updated dependencies
10
+
11
+ ## 0.42.14
12
+
13
+ ### Patch Changes
14
+
15
+ - [`7afc6234d7f52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7afc6234d7f52) -
16
+ Re-generate CodeBlock
17
+ - Updated dependencies
18
+
3
19
  ## 0.42.13
4
20
 
5
21
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CodeBlockProps
5
5
  *
6
- * @codegen <<SignedSource::c4fefc322bcdfa3334f37f02fb15f6e2>>
6
+ * @codegen <<SignedSource::b751350717245ec525ad68d203d493e7>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::4facd19886beaa22f9526f02019dc310>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::748d14fc9d5d2f63dbab15d6599bbdc3>>
9
9
  */
10
10
  type PlatformCodeBlockProps = {
11
11
  /**
@@ -20,6 +20,7 @@ type PlatformCodeBlockProps = {
20
20
  /**
21
21
  * Sets whether to display code line numbers or not.
22
22
  * @default true
23
+ * @deprecated Use `shouldShowLineNumbers` instead
23
24
  */
24
25
  showLineNumbers?: boolean;
25
26
  /**
@@ -32,7 +33,7 @@ type PlatformCodeBlockProps = {
32
33
  *
33
34
  * @default 'text'
34
35
  */
35
- language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
36
+ language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'TOML' | 'toml' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
36
37
  /**
37
38
  * Comma delimited lines to highlight.
38
39
  *
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextProps
5
5
  *
6
- * @codegen <<SignedSource::2cf1d1a11c89b10fdc65f27c51e6c7b4>>
6
+ * @codegen <<SignedSource::1c42fde750e32bfa08754b99f8b46fc8>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::45fcbf413ecc09a9102dc482b4fc9d70>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::da061e381ac179a40cf7f65f94f3b651>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { Text as PlatformText } from '@atlaskit/primitives/compiled';
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CodeBlockProps
5
5
  *
6
- * @codegen <<SignedSource::c4fefc322bcdfa3334f37f02fb15f6e2>>
6
+ * @codegen <<SignedSource::b751350717245ec525ad68d203d493e7>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::4facd19886beaa22f9526f02019dc310>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::748d14fc9d5d2f63dbab15d6599bbdc3>>
9
9
  */
10
10
  type PlatformCodeBlockProps = {
11
11
  /**
@@ -20,6 +20,7 @@ type PlatformCodeBlockProps = {
20
20
  /**
21
21
  * Sets whether to display code line numbers or not.
22
22
  * @default true
23
+ * @deprecated Use `shouldShowLineNumbers` instead
23
24
  */
24
25
  showLineNumbers?: boolean;
25
26
  /**
@@ -32,7 +33,7 @@ type PlatformCodeBlockProps = {
32
33
  *
33
34
  * @default 'text'
34
35
  */
35
- language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
36
+ language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'TOML' | 'toml' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
36
37
  /**
37
38
  * Comma delimited lines to highlight.
38
39
  *
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextProps
5
5
  *
6
- * @codegen <<SignedSource::2cf1d1a11c89b10fdc65f27c51e6c7b4>>
6
+ * @codegen <<SignedSource::1c42fde750e32bfa08754b99f8b46fc8>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::45fcbf413ecc09a9102dc482b4fc9d70>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::da061e381ac179a40cf7f65f94f3b651>>
9
9
  */
10
10
  import React from 'react';
11
11
  import { Text as PlatformText } from '@atlaskit/primitives/compiled';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.42.13",
3
+ "version": "0.42.15",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,18 +24,19 @@
24
24
  "team": "Forge UI"
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/button": "^23.3.0",
27
+ "@atlaskit/button": "^23.4.0",
28
28
  "@atlaskit/comment": "^13.0.0",
29
29
  "@atlaskit/datetime-picker": "^17.0.0",
30
30
  "@atlaskit/dynamic-table": "^18.2.0",
31
- "@atlaskit/form": "^12.0.0",
31
+ "@atlaskit/form": "^12.2.0",
32
32
  "@atlaskit/inline-edit": "^15.3.0",
33
33
  "@atlaskit/modal-dialog": "^14.3.0",
34
+ "@atlaskit/navigation-system": "^1.1.0",
34
35
  "@atlaskit/popup": "^4.3.0",
35
36
  "@atlaskit/primitives": "^14.11.0",
36
37
  "@atlaskit/progress-bar": "^4.0.0",
37
38
  "@atlaskit/progress-tracker": "^10.3.0",
38
- "@atlaskit/radio": "^8.1.0",
39
+ "@atlaskit/radio": "^8.2.0",
39
40
  "@atlaskit/section-message": "^8.5.0",
40
41
  "@atlaskit/select": "^21.2.0",
41
42
  "@atlaskit/spinner": "^19.0.0",
@@ -54,13 +55,12 @@
54
55
  },
55
56
  "devDependencies": {
56
57
  "@atlassian/codegen": "^0.1.0",
57
- "@atlassian/forge-ui": "^32.29.0",
58
+ "@atlassian/forge-ui": "^32.30.0",
58
59
  "@types/node": "~20.16.5",
59
60
  "lodash": "^4.17.21",
60
61
  "react": "^18.2.0",
61
62
  "ts-morph": "^17.0.0",
62
- "ts-node": "^10.9.1",
63
- "typescript": "~5.4.2"
63
+ "ts-node": "^10.9.1"
64
64
  },
65
65
  "scripts": {
66
66
  "codegen": "ts-node ./scripts/codegen-runner.ts",
@@ -68,14 +68,17 @@ const getBaseComponentSymbol = (componentSymbol: Symbol, sourceFile: SourceFile)
68
68
  */
69
69
  const getDependentTypeDeclarations = (baseComponentPropSymbol: Symbol, sourceFile: SourceFile) => {
70
70
  const allTypeAliases = sourceFile.getTypeAliases();
71
- const [usedTypes, otherTypes] = allTypeAliases.reduce((agg, typeAlias) => {
72
- if (typeAlias.getName() === baseComponentPropSymbol.getName()) {
73
- agg[0].push(typeAlias);
74
- } else {
75
- agg[1].push(typeAlias);
76
- }
77
- return agg;
78
- }, [[], []] as [TypeAliasDeclaration[], TypeAliasDeclaration[]]);
71
+ const [usedTypes, otherTypes] = allTypeAliases.reduce(
72
+ (agg, typeAlias) => {
73
+ if (typeAlias.getName() === baseComponentPropSymbol.getName()) {
74
+ agg[0].push(typeAlias);
75
+ } else {
76
+ agg[1].push(typeAlias);
77
+ }
78
+ return agg;
79
+ },
80
+ [[], []] as [TypeAliasDeclaration[], TypeAliasDeclaration[]],
81
+ );
79
82
 
80
83
  const [dependentTypes] = extractDependentTypeDeclarations(usedTypes, otherTypes);
81
84
  return dependentTypes;
@@ -84,7 +87,10 @@ const getDependentTypeDeclarations = (baseComponentPropSymbol: Symbol, sourceFil
84
87
  /**
85
88
  * recursively extract dependent type declarations from the current types and candidate types.
86
89
  */
87
- const extractDependentTypeDeclarations = (currentTypes: TypeAliasDeclaration[], candidateTypes: TypeAliasDeclaration[]): [TypeAliasDeclaration[], TypeAliasDeclaration[]] => {
90
+ const extractDependentTypeDeclarations = (
91
+ currentTypes: TypeAliasDeclaration[],
92
+ candidateTypes: TypeAliasDeclaration[],
93
+ ): [TypeAliasDeclaration[], TypeAliasDeclaration[]] => {
88
94
  const dependentTypesSet: Set<TypeAliasDeclaration> = new Set();
89
95
  for (const typeAlias of currentTypes) {
90
96
  const typeAliasDeclarationText = typeAlias.getText();
@@ -99,11 +105,11 @@ const extractDependentTypeDeclarations = (currentTypes: TypeAliasDeclaration[],
99
105
  }
100
106
  const dependentTypes = Array.from(dependentTypesSet);
101
107
  const otherTypes = candidateTypes.filter((typeAlias) => !dependentTypesSet.has(typeAlias));
102
- const [nextDependentTypes, nextOtherTypes] = extractDependentTypeDeclarations(dependentTypes, otherTypes);
103
- return [
104
- [...dependentTypes, ...nextDependentTypes],
105
- nextOtherTypes,
106
- ];
108
+ const [nextDependentTypes, nextOtherTypes] = extractDependentTypeDeclarations(
109
+ dependentTypes,
110
+ otherTypes,
111
+ );
112
+ return [[...dependentTypes, ...nextDependentTypes], nextOtherTypes];
107
113
  };
108
114
 
109
115
  /**
@@ -746,7 +752,7 @@ const generateComponentPropTypeSourceCodeWithSerializedType = (
746
752
  const dependentTypeCode = [
747
753
  ...dependentTypeDeclarations.map((typeAlias) => typeAlias.getText()),
748
754
  platformPropsTypeDeclarationName &&
749
- `\n// Serialized type\ntype ${platformPropsTypeDeclarationName} = ${typeDefCode};`,
755
+ `\n// Serialized type\ntype ${platformPropsTypeDeclarationName} = ${typeDefCode};`,
750
756
  ]
751
757
  .filter(Boolean)
752
758
  .join('\n');
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CodeBlockProps
5
5
  *
6
- * @codegen <<SignedSource::c4fefc322bcdfa3334f37f02fb15f6e2>>
6
+ * @codegen <<SignedSource::b751350717245ec525ad68d203d493e7>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::4facd19886beaa22f9526f02019dc310>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::748d14fc9d5d2f63dbab15d6599bbdc3>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -24,6 +24,7 @@ type PlatformCodeBlockProps = {
24
24
  /**
25
25
  * Sets whether to display code line numbers or not.
26
26
  * @default true
27
+ * @deprecated Use `shouldShowLineNumbers` instead
27
28
  */
28
29
  showLineNumbers?: boolean;
29
30
  /**
@@ -36,7 +37,7 @@ type PlatformCodeBlockProps = {
36
37
  *
37
38
  * @default 'text'
38
39
  */
39
- language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
40
+ language?: 'text' | 'PHP' | 'php' | 'php3' | 'php4' | 'php5' | 'Java' | 'java' | 'CSharp' | 'csharp' | 'c#' | 'Python' | 'python' | 'py' | 'JavaScript' | 'javascript' | 'js' | 'Html' | 'html' | 'xml' | 'C++' | 'c++' | 'cpp' | 'clike' | 'Ruby' | 'ruby' | 'rb' | 'duby' | 'Objective-C' | 'objective-c' | 'objectivec' | 'obj-c' | 'objc' | 'C' | 'c' | 'Swift' | 'swift' | 'TeX' | 'tex' | 'latex' | 'Shell' | 'shell' | 'bash' | 'sh' | 'ksh' | 'zsh' | 'Scala' | 'scala' | 'Go' | 'go' | 'ActionScript' | 'actionscript' | 'actionscript3' | 'as' | 'ColdFusion' | 'coldfusion' | 'JavaFX' | 'javafx' | 'jfx' | 'VbNet' | 'vbnet' | 'vb.net' | 'vfp' | 'clipper' | 'xbase' | 'JSON' | 'json' | 'MATLAB' | 'matlab' | 'Groovy' | 'groovy' | 'SQL' | 'sql' | 'postgresql' | 'postgres' | 'plpgsql' | 'psql' | 'postgresql-console' | 'postgres-console' | 'tsql' | 't-sql' | 'mysql' | 'sqlite' | 'R' | 'r' | 'Perl' | 'perl' | 'pl' | 'Lua' | 'lua' | 'Pascal' | 'pas' | 'pascal' | 'objectpascal' | 'delphi' | 'XML' | 'TypeScript' | 'typescript' | 'ts' | 'CoffeeScript' | 'coffeescript' | 'coffee-script' | 'coffee' | 'Haskell' | 'haskell' | 'hs' | 'Puppet' | 'puppet' | 'Arduino' | 'arduino' | 'Fortran' | 'fortran' | 'Erlang' | 'erlang' | 'erl' | 'PowerShell' | 'powershell' | 'posh' | 'ps1' | 'psm1' | 'Haxe' | 'haxe' | 'hx' | 'hxsl' | 'Elixir' | 'elixir' | 'ex' | 'exs' | 'Verilog' | 'verilog' | 'v' | 'Rust' | 'rust' | 'VHDL' | 'vhdl' | 'Sass' | 'sass' | 'OCaml' | 'ocaml' | 'Dart' | 'dart' | 'CSS' | 'css' | 'reStructuredText' | 'restructuredtext' | 'rst' | 'rest' | 'Kotlin' | 'kotlin' | 'D' | 'd' | 'Octave' | 'octave' | 'QML' | 'qbs' | 'qml' | 'Prolog' | 'prolog' | 'FoxPro' | 'foxpro' | 'purebasic' | 'Scheme' | 'scheme' | 'scm' | 'CUDA' | 'cuda' | 'cu' | 'Julia' | 'julia' | 'jl' | 'Racket' | 'racket' | 'rkt' | 'Ada' | 'ada' | 'ada95' | 'ada2005' | 'Tcl' | 'tcl' | 'Mathematica' | 'mathematica' | 'mma' | 'nb' | 'Autoit' | 'autoit' | 'StandardML' | 'standardmL' | 'sml' | 'standardml' | 'Objective-J' | 'objective-j' | 'objectivej' | 'obj-j' | 'objj' | 'Smalltalk' | 'smalltalk' | 'squeak' | 'st' | 'Vala' | 'vala' | 'vapi' | 'LiveScript' | 'livescript' | 'live-script' | 'XQuery' | 'xquery' | 'xqy' | 'xq' | 'xql' | 'xqm' | 'PlainText' | 'plaintext' | 'Yaml' | 'yaml' | 'yml' | 'GraphQL' | 'graphql' | 'AppleScript' | 'applescript' | 'Clojure' | 'clojure' | 'Diff' | 'diff' | 'VisualBasic' | 'visualbasic' | 'JSX' | 'jsx' | 'TSX' | 'tsx' | 'SplunkSPL' | 'splunk-spl' | 'Dockerfile' | 'docker' | 'dockerfile' | 'HCL' | 'hcl' | 'terraform' | 'NGINX' | 'nginx' | 'Protocol Buffers' | 'protobuf' | 'proto' | 'TOML' | 'toml' | 'Handlebars' | 'handlebars' | 'mustache' | 'Gherkin' | 'gherkin' | 'cucumber' | 'ABAP' | 'abap';
40
41
  /**
41
42
  * Comma delimited lines to highlight.
42
43
  *
@@ -0,0 +1,116 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Extract component prop types from UIKit 2 components - LinkMenuItemProps
5
+ *
6
+ * @codegen <<SignedSource::4a1f543c49be8d37af271ad72f46c373>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/link-menu-item/__generated__/index.partial.tsx <<SignedSource::8943197e8ce5439de1d6f88dda81d55b>>
9
+ */
10
+ /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
+
12
+ import React from 'react';
13
+ import { LinkMenuItem as PlatformLinkMenuItem } from '@atlaskit/navigation-system/side-nav-items/link-menu-item';
14
+
15
+ type PlatformLinkMenuItemProps = React.ComponentProps<typeof PlatformLinkMenuItem>;
16
+ type Element = string | number | boolean | React.ReactNode;
17
+
18
+ export type LinkMenuItemProps = Pick<
19
+ PlatformLinkMenuItemProps,
20
+ | 'children'
21
+ | 'testId'
22
+ | 'isContentTooltipDisabled'
23
+ | 'isDragging'
24
+ | 'hasDragIndicator'
25
+ | 'description'
26
+ | 'target'
27
+ | 'isSelected'
28
+ | 'href'
29
+ | 'elemBefore'
30
+ | 'elemAfter'
31
+ | 'actions'
32
+ | 'actionsOnHover'
33
+ | 'dropIndicator'
34
+ > & {
35
+ /**
36
+ * Called when the user has clicked on the trigger content.
37
+ */
38
+ onClick?: () => void;
39
+ /**
40
+ * `ReactNode` to be placed visually before the `children`.
41
+ *
42
+ * This `ReactNode` will be rendered visually on top of the main
43
+ * interactive element for the menu item. If this element does not
44
+ * contain an interactive element (`button` or `a`) then `pointer-events`
45
+ * will be set to `none` on this slot so that users can click through
46
+ * this element onto the main interactive element of the menu item.
47
+ *
48
+ * If you want to collapse the `elemBefore` so it takes up no space,
49
+ * then pass in the `COLLAPSE_ELEM_BEFORE` symbol. Keep in mind that
50
+ * collapsing the `elemBefore` can break visual alignment and
51
+ * will make it difficult for users to visually distinguish levels
52
+ * in the side navigation.
53
+ *
54
+ * @example
55
+ *
56
+ * ```tsx
57
+ * <MenuItemButton elemBefore={<HomeIcon label="home" />}>Home</MenuItemButton>
58
+ *
59
+ * // collapse the elemBefore
60
+ * <MenuItemButton elemBefore={COLLAPSE_ELEM_BEFORE}>Home</MenuItemButton>
61
+ * ```
62
+ */
63
+ elemBefore?: Element;
64
+ /**
65
+ * `ReactNode` to be placed visually after the `children`.
66
+ *
67
+ * It is intended for static content (e.g. a `Lozenge`).
68
+ *
69
+ * If both `elemAfter` and `actionsOnHover` are provided, `elemAfter` will
70
+ * not be displayed when the item is hovered over or expanded. This is
71
+ * because the `actionsOnHover` will be displayed instead.
72
+ *
73
+ * This `ReactNode` will be rendered visually on top of the main
74
+ * interactive element for the menu item. If this element does not
75
+ * contain an interactive element (`button` or `a`) then `pointer-events`
76
+ * will be set to `none` on this slot so that users can click through
77
+ * this element onto the main interactive element of the menu item.
78
+ */
79
+ elemAfter?: Element;
80
+ /**
81
+ * `ReactNode` to be placed visually after the `children`.
82
+ *
83
+ * It is intended for additional actions (e.g. IconButtons).
84
+ *
85
+ * They will not be rendered when the menu item is disabled.
86
+ */
87
+ actions?: Element;
88
+ /**
89
+ * `ReactNode` to be placed visually after the `children` and will
90
+ * only be displayed on hover or focus.
91
+ *
92
+ * It is intended for additional actions (e.g. IconButtons).
93
+ *
94
+ * This `ReactNode` will replace `elemAfter` on hover or focus.
95
+ *
96
+ * They will not be rendered when the menu item is disabled.
97
+ *
98
+ * This `ReactNode` will be rendered visually on top of the main
99
+ * interactive element for the menu item. If this element does not
100
+ * contain an interactive element (`button` or `a`) then `pointer-events`
101
+ * will be set to `none` on this slot so that users can click through
102
+ * this element onto the main interactive element of the menu item.
103
+ */
104
+ actionsOnHover?: Element;
105
+ /**
106
+ * A slot to render drop indicators for drag and drop operations on the menu item.
107
+ */
108
+ dropIndicator?: Element;
109
+ };
110
+
111
+ /**
112
+ * A menu item that is wrapped in an anchor tag <a>. This is the most common type of menu item, as most menu items are used to send people to another location.
113
+ *
114
+ * @see [LinkMenuItem](https://developer.atlassian.com/platform/forge/ui-kit/components/link-menu-item/) in UI Kit documentation for more information
115
+ */
116
+ export type TLinkMenuItem<T> = (props: LinkMenuItemProps) => T;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TextProps
5
5
  *
6
- * @codegen <<SignedSource::2cf1d1a11c89b10fdc65f27c51e6c7b4>>
6
+ * @codegen <<SignedSource::1c42fde750e32bfa08754b99f8b46fc8>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::45fcbf413ecc09a9102dc482b4fc9d70>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::da061e381ac179a40cf7f65f94f3b651>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
@@ -18,6 +18,8 @@ type OriginalPlatformProps = Pick<
18
18
  >;
19
19
  type PlatformTextProps = React.ComponentProps<typeof PlatformText>;
20
20
 
21
- export type TextProps = Omit<OriginalPlatformProps, 'as'> & { as?: OriginalPlatformProps['as'] | 'strike' };
21
+ export type TextProps = Omit<OriginalPlatformProps, 'as'> & {
22
+ as?: OriginalPlatformProps['as'] | 'strike';
23
+ };
22
24
 
23
25
  export type TText<T> = (props: TextProps) => T;