@atlaskit/code 14.3.3 → 14.3.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,24 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 14.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
8
+
9
+ ## 14.3.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`46824ff1acd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46824ff1acd) - [ux] `<CodeBlock />`s with no content no longer vertically collapse, and maintain their intended minimum height
14
+ - Updated dependencies
15
+
16
+ ## 14.3.4
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 14.3.3
4
23
 
5
24
  ### Patch Changes
@@ -297,6 +297,10 @@ var getCodeBlockStyles = function getCodeBlockStyles(theme) {
297
297
  '& code:last-of-type': {
298
298
  paddingRight: "".concat(_constants2.SPACING, "px !important"),
299
299
  flex: '1 0 auto'
300
+ },
301
+ // Prevents empty code blocks from vertically collapsing
302
+ 'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
303
+ content: '" "'
300
304
  }
301
305
  });
302
306
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.3.3",
3
+ "version": "14.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -268,6 +268,10 @@ export const getCodeBlockStyles = theme => (highlightedStartText, highlightedEnd
268
268
  '& code:last-of-type': {
269
269
  paddingRight: `${SPACING}px !important`,
270
270
  flex: '1 0 auto'
271
+ },
272
+ // Prevents empty code blocks from vertically collapsing
273
+ 'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
274
+ content: '" "'
271
275
  }
272
276
  });
273
277
  export const getCodeStyles = globalTheme => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.3.3",
3
+ "version": "14.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -280,6 +280,10 @@ export var getCodeBlockStyles = function getCodeBlockStyles(theme) {
280
280
  '& code:last-of-type': {
281
281
  paddingRight: "".concat(SPACING, "px !important"),
282
282
  flex: '1 0 auto'
283
+ },
284
+ // Prevents empty code blocks from vertically collapsing
285
+ 'code > span:only-child:empty:before, code > span:only-child > span:only-child:empty:before': {
286
+ content: '" "'
283
287
  }
284
288
  });
285
289
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.3.3",
3
+ "version": "14.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1,2 @@
1
- export declare const normalizeLanguage: import("memoize-one").MemoizedFn<(language?: "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" | "ABAP" | "abap" | "LiveScript" | "livescript" | "live-script" | "XQuery" | "xquery" | "xqy" | "xq" | "xql" | "xqm" | "PlainText" | "text" | "plaintext" | "Yaml" | "yaml" | "yml" | "GraphQL" | "graphql" | "AppleScript" | "applescript" | "Clojure" | "clojure" | "Diff" | "diff" | "VisualBasic" | "visualbasic" | "JSX" | "jsx" | "TSX" | "tsx" | "SplunkSPL" | "splunk-spl" | undefined) => string>;
1
+ import { SupportedLanguages } from '../types';
2
+ export declare const normalizeLanguage: import("memoize-one").MemoizedFn<(language?: SupportedLanguages | undefined) => string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.3.3",
3
+ "version": "14.3.6",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,9 +25,9 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/codemod-utils": "^3.4.0",
28
+ "@atlaskit/codemod-utils": "^4.0.0",
29
29
  "@atlaskit/theme": "^12.1.0",
30
- "@atlaskit/tokens": "^0.7.0",
30
+ "@atlaskit/tokens": "^0.9.0",
31
31
  "@atlaskit/tooltip": "^17.5.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/core": "^10.0.9",
@@ -38,7 +38,7 @@
38
38
  "react": "^16.8.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@atlaskit/button": "^16.2.0",
41
+ "@atlaskit/button": "^16.3.0",
42
42
  "@atlaskit/docs": "^9.0.0",
43
43
  "@atlaskit/section-message": "^6.0.0",
44
44
  "@atlaskit/ssr": "*",
@@ -51,7 +51,7 @@
51
51
  "jscodeshift": "^0.13.0",
52
52
  "prismjs": "^1.25.0",
53
53
  "react-dom": "^16.8.0",
54
- "typescript": "3.9.6"
54
+ "typescript": "4.2.4"
55
55
  },
56
56
  "keywords": [
57
57
  "atlaskit",