frappe-ui 0.1.86 → 0.1.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frappe-ui",
3
- "version": "0.1.86",
3
+ "version": "0.1.87",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -44,6 +44,9 @@ let componentStyles = {
44
44
  "[data-theme='dark'] [type='checkbox']:checked": {
45
45
  'background-image': `url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%230F0F0F' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`,
46
46
  },
47
+ "[data-theme='dark'] img": {
48
+ filter: 'brightness(.8) contrast(1.2)',
49
+ },
47
50
  }
48
51
 
49
52
  module.exports = plugin(
@@ -2,6 +2,7 @@ import showdown from 'showdown'
2
2
 
3
3
  export function markdownToHTML(text) {
4
4
  const converter = new showdown.Converter()
5
+ converter.setFlavor('github')
5
6
  return converter.makeHtml(text)
6
7
  }
7
8
 
package/vite.js CHANGED
@@ -3,8 +3,8 @@ const fs = require('fs')
3
3
 
4
4
  module.exports = function proxyOptions({
5
5
  port = 8080,
6
- source = '^/(app|login|api|assets|files)',
7
- } = {}) {
6
+ source = '^/(app|login|api|assets|files|private)',
7
+ } = {}) {
8
8
  const config = getCommonSiteConfig()
9
9
  const webserver_port = config ? config.webserver_port : 8000
10
10
  if (!config) {
@@ -17,7 +17,7 @@ module.exports = function proxyOptions({
17
17
  router: function (req) {
18
18
  const site_name = req.headers.host.split(':')[0]
19
19
  return `http://${site_name}:${webserver_port}`
20
- }
20
+ },
21
21
  }
22
22
  return {
23
23
  name: 'frappeui-vite-plugin',