yapp 2.1.13 → 2.2.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.
Files changed (100) hide show
  1. package/README.md +2 -2
  2. package/example.js +614 -392
  3. package/lib/colours.js +1 -1
  4. package/lib/constants.js +1 -1
  5. package/lib/defaults.js +4 -2
  6. package/lib/element/scrollable.js +309 -0
  7. package/lib/example/constants.js +1 -1
  8. package/lib/example/div/columns.js +1 -1
  9. package/lib/example/div/sizeable/left.js +1 -1
  10. package/lib/example/div/sizeable/middle.js +1 -1
  11. package/lib/example/div/sizeable/right.js +1 -1
  12. package/lib/example/div/sizeable/top.js +1 -1
  13. package/lib/example/div/splitter/horizontal.js +1 -1
  14. package/lib/example/div/splitter/vertical.js +1 -1
  15. package/lib/example/input.js +1 -1
  16. package/lib/example/subHeading.js +1 -1
  17. package/lib/example/textarea/bnf.js +1 -1
  18. package/lib/example/textarea/lexicalEntries.js +1 -1
  19. package/lib/example/textarea/parseTree.js +1 -1
  20. package/lib/example/textarea/tokens.js +3 -3
  21. package/lib/example/textarea.js +1 -1
  22. package/lib/example/view/javascript.js +1 -1
  23. package/lib/example/view/json.js +1 -1
  24. package/lib/example/view/xml.js +1 -1
  25. package/lib/example/view.js +2 -5
  26. package/lib/example/yapp.js +77 -3
  27. package/lib/example.js +1 -1
  28. package/lib/gutter.js +1 -1
  29. package/lib/index.js +1 -1
  30. package/lib/languages.js +1 -1
  31. package/lib/lexer/javascript.js +3 -3
  32. package/lib/lexer/json.js +3 -3
  33. package/lib/lexer/plainText.js +3 -3
  34. package/lib/lexer/xml.js +3 -3
  35. package/lib/lineNumbers.js +1 -1
  36. package/lib/mixins/style.js +68 -0
  37. package/lib/parser/javascript.js +1 -1
  38. package/lib/parser/json.js +1 -1
  39. package/lib/parser/plainText.js +1 -1
  40. package/lib/parser/xml.js +1 -1
  41. package/lib/plugin/javascript.js +1 -1
  42. package/lib/plugin/json.js +1 -1
  43. package/lib/plugin/plainText.js +1 -1
  44. package/lib/plugin/xml.js +1 -1
  45. package/lib/plugin.js +1 -1
  46. package/lib/prettyPrinter.js +46 -26
  47. package/lib/processor/javascript.js +1 -1
  48. package/lib/processor/json.js +1 -1
  49. package/lib/processor/plainText.js +1 -1
  50. package/lib/processor/xml.js +1 -1
  51. package/lib/processor.js +5 -5
  52. package/lib/renderYappStyles.js +1 -1
  53. package/lib/richTextarea.js +21 -21
  54. package/lib/scheme/colour.js +1 -1
  55. package/lib/scheme/syntax/default.js +1 -1
  56. package/lib/scheme/syntax/javaScript.js +1 -1
  57. package/lib/scheme/syntax/json.js +1 -1
  58. package/lib/scheme/syntax/xml.js +1 -1
  59. package/lib/style/firaCode.js +1 -1
  60. package/lib/style/syntax/default.js +1 -1
  61. package/lib/style/syntax/javaScript.js +1 -1
  62. package/lib/style/syntax/json.js +1 -1
  63. package/lib/style/syntax/xml.js +1 -1
  64. package/lib/style/syntax.js +1 -1
  65. package/lib/styles.js +1 -1
  66. package/lib/syntax.js +16 -7
  67. package/lib/token/nonSignificant/comment/multiLine/endOf.js +1 -1
  68. package/lib/token/nonSignificant/comment/multiLine/middleOf.js +1 -1
  69. package/lib/token/nonSignificant/comment/multiLine/startOf.js +1 -1
  70. package/lib/token/nonSignificant/comment/singleLine.js +1 -1
  71. package/lib/token/significant/argument.js +1 -1
  72. package/lib/token/significant/attribute.js +1 -1
  73. package/lib/token/significant/comment.js +1 -1
  74. package/lib/token/significant/error.js +1 -1
  75. package/lib/token/significant/jsx.js +1 -1
  76. package/lib/token/significant/name.js +1 -1
  77. package/lib/token/significant/string.js +1 -1
  78. package/lib/token/significant/variable.js +1 -1
  79. package/lib/tokenTypes.js +1 -1
  80. package/lib/utilities/content.js +1 -1
  81. package/lib/utilities/css.js +1 -1
  82. package/lib/utilities/plugin.js +1 -1
  83. package/lib/utilities/properties.js +1 -1
  84. package/lib/utilities/rules.js +3 -3
  85. package/lib/utilities/scrollbarThickness.js +1 -1
  86. package/lib/utilities/tokens.js +1 -1
  87. package/lib/yapp.js +41 -58
  88. package/package.json +7 -7
  89. package/src/defaults.js +1 -0
  90. package/src/element/{bounded/scrollable.js → scrollable.js} +1 -11
  91. package/src/example/view.js +1 -1
  92. package/src/example/yapp.js +7 -2
  93. package/src/mixins/style.js +97 -0
  94. package/src/prettyPrinter.js +54 -33
  95. package/src/richTextarea.js +28 -20
  96. package/src/syntax.js +14 -3
  97. package/src/yapp.js +58 -56
  98. package/lib/element/bounded/scrollable.js +0 -317
  99. package/lib/element/bounded.js +0 -164
  100. package/src/element/bounded.js +0 -32
package/README.md CHANGED
@@ -299,9 +299,9 @@ renderStyle(firaCodeStyle(host)); // Only needed for Fira Code support.
299
299
  ```
300
300
  In fact the above is just what the `renderYappStyles()` function does. In leaving out the syntax style, which includes the defaults, you have clean slate to work with.
301
301
 
302
- ### Fancy scrollbars and hidden gutters
302
+ ### Hidden scrollbars and gutters, and fancy scrollbars
303
303
 
304
- You can hide the gutter and enable fancy scrollbars with the `hiddenGutter` and `fancyScrollbars` JSX attributes, respectively. These can also be included as options. Fancy scrollbars have hidden tracks and thinner, rounded thumbs. They look something like old Mac scrollbars. Appearances will only differ on WebKit browsers such as Chrome and Safari because the styles make use of the `-webkit` prefix.
304
+ You can hide the scrollbars and gutter with the `hiddenScrollbars` and `hiddenGutter` JSX attributes, respectively, and enable fancy scrollbars with the `fancyScrollbars` JSX attribute. These attributes can also be included as options. Fancy scrollbars have hidden tracks and thinner, rounded thumbs. They look something like old Mac scrollbars. Appearances will only differ on WebKit browsers such as Chrome and Safari because the styles make use of the `-webkit` prefix.
305
305
 
306
306
  ## Plugins
307
307