@silexlabs/silex 3.7.0-canary.1 → 3.7.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.
package/README.md CHANGED
@@ -52,7 +52,7 @@ This command will run Silex in a Docker container.
52
52
  First, install Silex as a dev dependency in your project:
53
53
 
54
54
  ```bash
55
- npm install --save-dev @silexlabs/silex
55
+ yarn add -D @silexlabs/silex
56
56
  ```
57
57
 
58
58
  Then, you can run Silex with the `silex` command in your `package.json` scripts:
@@ -78,7 +78,7 @@ $ npx silex --client-config=./examples/client-config-transformers.js --server-co
78
78
  Or like this:
79
79
 
80
80
  ```sh
81
- $ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_SERVER_CONFIG=`pwd`/examples/server-config-plugins.js npm run start:debug
81
+ $ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_SERVER_CONFIG=`pwd`/examples/server-config-plugins.js yarn run start:debug
82
82
  ```
83
83
 
84
84
  ## Development
@@ -93,17 +93,17 @@ To contribute to this project:
93
93
 
94
94
  2. **Install Dependencies**:
95
95
  ```bash
96
- npm install
96
+ yarn install
97
97
  ```
98
98
 
99
99
  3. **Build the Project**:
100
100
  ```bash
101
- npm run build
101
+ yarn run build
102
102
  ```
103
103
 
104
104
  4. **Start Development Server**:
105
105
  ```bash
106
- npm run start:debug
106
+ yarn run start:debug
107
107
  ```
108
108
 
109
109
  ## Contributing
@@ -0,0 +1,15 @@
1
+ import { Editor } from 'grapesjs';
2
+ /**
3
+ * Remap `body` selectors to the wrapper in the canvas iframe.
4
+ *
5
+ * Iframe DOM: <body> → <div.wrapper> → [page components]. So `body > .x` and
6
+ * friends can't match user components from the iframe body — they live under
7
+ * the wrapper div. We add `.silex-page-body` to the wrapper (DOM-only) and
8
+ * rewrite every CssRule's selector text from `body` to `.silex-page-body`
9
+ * before it's injected, via the official `css:mount:before` event.
10
+ *
11
+ * The CssComposer model is untouched — publication still outputs `body`.
12
+ */
13
+ export declare const BODY_CANVAS_CLASS = "silex-page-body";
14
+ export declare const BODY_TAG_SELECTOR_RE: RegExp;
15
+ export default function bodyRemapPlugin(editor: Editor): void;
@@ -2431,6 +2431,10 @@ span.CodeMirror-selectedtext {
2431
2431
  padding: 5px 0 0;
2432
2432
  }
2433
2433
 
2434
+ .gjs-sm-property__border-radius .gjs-sm-property__border-bottom-right-radius {
2435
+ order: 4;
2436
+ }
2437
+
2434
2438
  .gjs-sm-stack #gjs-sm-add {
2435
2439
  background: none;
2436
2440
  border: none;
@@ -4229,9 +4233,6 @@ textarea:focus {
4229
4233
  .gjs-editor-cont input[id$=filter-styles].gjs-field {
4230
4234
  border-radius: 9999px;
4231
4235
  background-color: var(--gjs-primary-darker);
4232
- border: 1px solid var(--silex-border-color-strong);
4233
- padding: 5px 12px;
4234
- font-size: 11px;
4235
4236
  }
4236
4237
 
4237
4238
  .gjs-clm-tags {
@@ -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?310261"><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?588525"><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?594904"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?594904"></script><script>silex.start()
10
+ </div><link rel="stylesheet" type="text/css" href="css/admin.css?696736"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?696736"></script><script>silex.start()
11
11
  // From here silex.config is available and Silex is getting started</script></body></html>