@silexlabs/silex 3.5.1-2 → 3.5.1-3

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/.silex.js CHANGED
@@ -44,6 +44,9 @@ module.exports = async function(config, options) {
44
44
  }, {
45
45
  route: '/css/files/',
46
46
  path: nodeModules('@fontsource/ubuntu') + '/@fontsource/ubuntu/files/',
47
+ }, {
48
+ route: '/lottie-player/',
49
+ path: nodeModules('@lottiefiles/lottie-player') + '/@lottiefiles/lottie-player/dist/',
47
50
  }, {
48
51
  route: '/',
49
52
  path: join(__dirname, 'dist', 'client'),
@@ -0,0 +1,7 @@
1
+ import { Editor } from 'grapesjs';
2
+ /**
3
+ * Lottie animation block plugin for Silex
4
+ * Allows users to embed Lottie animations using the lottie-player web component
5
+ * Follows GrapesJS best practices for loading external scripts
6
+ */
7
+ export declare const lottiePlugin: (editor: Editor, opts?: {}) => void;
@@ -4000,7 +4000,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
4000
4000
  height: 100vh;
4001
4001
  z-index: 10;
4002
4002
  pointer-events: auto;
4003
- overflow: auto;
4003
+ overflow: hidden; /* settings scroll is on .settings-body */
4004
4004
  display: flex;
4005
4005
  flex-direction: column;
4006
4006
  }
@@ -4089,6 +4089,11 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
4089
4089
  min-height: 400px;
4090
4090
  height: auto;
4091
4091
  }
4092
+ .settings-dialog .CodeMirror-scroll {
4093
+ /* override codemirror default styles */
4094
+ overflow: hidden !important; /* on chrome, a horizontal scroll bar appears */
4095
+ padding-bottom: 150px;
4096
+ }
4092
4097
 
4093
4098
  button.silex-button,
4094
4099
  input.silex-button[type=button],
@@ -4314,9 +4319,6 @@ form.silex-form .silex-form__group.col2 {
4314
4319
  bottom: 0;
4315
4320
  left: 35px;
4316
4321
  right: var(--viewsPanelWidth);
4317
- display: flex;
4318
- justify-content: space-between;
4319
- align-items: center;
4320
4322
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
4321
4323
  height: 30px;
4322
4324
  }
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?401143"><style>body {
1
+ <!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?878908"><style>body {
2
2
  background-color: #444444;
3
3
  font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
4
4
  }
@@ -7,5 +7,5 @@
7
7
  transition: opacity 0.25s 0.25s ease-in-out;
8
8
  }
9
9
  </style></head><body class="silex-loading"><div class="silex-loader silex-dialog" role="status" aria-live="polite" aria-busy="true">Loading
10
- </div><link rel="stylesheet" type="text/css" href="css/admin.css?687300"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?687300"></script><script>silex.start()
10
+ </div><link rel="stylesheet" type="text/css" href="css/admin.css?611607"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?611607"></script><script>silex.start()
11
11
  // From here silex.config is available and Silex is getting started</script></body></html>