@silexlabs/silex 3.0.0-alpha.122 → 3.0.0-alpha.124

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 (43) hide show
  1. package/.env.default +1 -1
  2. package/README.md +25 -9
  3. package/dist/client/client/grapesjs/project-bar.d.ts +16 -0
  4. package/dist/client/css/admin.css +5 -0
  5. package/dist/client/js/main.js +156 -83
  6. package/dist/client/js/main.js.LICENSE.txt +11 -1
  7. package/dist/client/types.d.ts +2 -1
  8. package/dist/plugins/client/client/config.js +19 -2
  9. package/dist/plugins/client/client/config.js.map +1 -1
  10. package/dist/plugins/client/client/grapesjs/index.js +11 -11
  11. package/dist/plugins/client/client/grapesjs/index.js.map +1 -1
  12. package/dist/plugins/client/client/grapesjs/project-bar.d.ts +16 -0
  13. package/dist/plugins/client/client/grapesjs/project-bar.js +72 -68
  14. package/dist/plugins/client/client/grapesjs/project-bar.js.map +1 -1
  15. package/dist/plugins/client/types.d.ts +2 -1
  16. package/dist/plugins/client/types.js +1 -0
  17. package/dist/plugins/client/types.js.map +1 -1
  18. package/dist/plugins/server/server/config.js +3 -3
  19. package/dist/plugins/server/server/config.js.map +1 -1
  20. package/dist/plugins/server/server/connectors/FsHosting.js +1 -0
  21. package/dist/plugins/server/server/connectors/FsHosting.js.map +1 -1
  22. package/dist/plugins/server/server/connectors/FsStorage.js +1 -0
  23. package/dist/plugins/server/server/connectors/FsStorage.js.map +1 -1
  24. package/dist/plugins/server/types.d.ts +2 -1
  25. package/dist/plugins/server/types.js +1 -0
  26. package/dist/plugins/server/types.js.map +1 -1
  27. package/dist/server/server/cli.js +5 -5
  28. package/dist/server/server/config.js +3 -3
  29. package/dist/server/server/connectors/FsHosting.js +1 -0
  30. package/dist/server/server/connectors/FsStorage.js +1 -0
  31. package/dist/server/types.js +1 -0
  32. package/package.json +22 -22
  33. package/src/ts/client/config.ts +20 -2
  34. package/src/ts/client/grapesjs/index.ts +11 -11
  35. package/src/ts/client/grapesjs/internal-links.test.ts +1 -5
  36. package/src/ts/client/grapesjs/project-bar.ts +82 -64
  37. package/src/ts/client/index.ts +1 -0
  38. package/src/ts/client/publication-transformers.test.ts +1 -4
  39. package/src/ts/server/cli.ts +4 -4
  40. package/src/ts/server/config.ts +4 -4
  41. package/src/ts/server/connectors/FsHosting.ts +1 -0
  42. package/src/ts/server/connectors/FsStorage.ts +1 -0
  43. package/src/ts/types.ts +1 -0
package/.env.default CHANGED
@@ -8,7 +8,7 @@ SILEX_PORT=6805 # 6805 is the date of sexual revolution started in paris france
8
8
  SILEX_HOST=localhost
9
9
  SILEX_PROTOCOL=http
10
10
  SILEX_DEBUG=FALSE
11
- SILEX_CONFIG=
11
+ SILEX_SERVER_CONFIG=
12
12
  SILEX_SSL_PORT=
13
13
  SILEX_FORCE_HTTPS=
14
14
  SILEX_SSL_PRIVATE_KEY=
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- [![status of silex.me instance](https://monitoshi.lexoyo.me/badge/1525963562293-6552)](https://editor.silex.me)
1
+ [![status of silex.me instance](https://monitoshi.lexoyo.me/badge/1525963562293-6552)](https://v3.silex.me)
2
2
 
3
3
  ![Silex UI](https://github.com/silexlabs/www.silex.me/raw/gh-pages/assets/silex-ui.gif)
4
4
 
5
5
  Brought to you by [Alex Hoyau](https://www.patreon.com/lexoyo) and [Silex contributors](https://github.com/silexlabs/Silex/graphs/contributors).
6
6
 
7
- You can help make Silex sustainable by being part of the community, contributing documentation or making a financial contribution. [Let's chat - every little bit helps!](https://github.com/silexlabs/Silex/discussions)
7
+ Help make Silex sustainable by being [part of the community](https://community.silex.me/), [contributing documentation](https://docs.silex.me/), [making a financial contribution](https://opencollective.com/silex), [report bugs](https://github.com/silexlabs/Silex/issues).
8
8
 
9
- ## About Silex, live web creation.
9
+ ## Silex
10
10
 
11
11
  Silex is a no-code tool for building websites. It also lets you code when needed. It can be used online, offline or in a JAMStack project.
12
12
 
@@ -48,13 +48,15 @@ There is a desktop application that you can install on your computer which may b
48
48
 
49
49
  You can also run Silex locally or on your server using `npx`, `npm`, or `Docker`.
50
50
 
51
+ Check the [developer docs](https://docs.silex.me/en/dev) for configuration options and integration with your js projects.
52
+
51
53
  #### Using npx
52
54
 
53
55
  ```bash
54
56
  npx @silexlabs/silex
55
57
  ```
56
58
 
57
- This command will run Silex with the entry point being `src/ts/server/cli.ts`.
59
+ This command will run Silex with default config.
58
60
 
59
61
  #### Using Docker
60
62
 
@@ -62,7 +64,7 @@ This command will run Silex with the entry point being `src/ts/server/cli.ts`.
62
64
  docker run -p 6805:6805 silexlabs/silex
63
65
  ```
64
66
 
65
- This command will run Silex in a Docker container with the entry point being `src/ts/server/index.ts`.
67
+ This command will run Silex in a Docker container.
66
68
 
67
69
  #### Using npm
68
70
 
@@ -72,16 +74,30 @@ First, install Silex as a dev dependency in your project:
72
74
  npm install --save-dev @silexlabs/silex
73
75
  ```
74
76
 
75
- Then, you can run Silex with the `silex` command. The entry point is `src/ts/server/cli.ts`.
77
+ Then, you can run Silex with the `silex` command in your `package.json` scripts:
78
+
79
+ ```json
80
+ {
81
+ "scripts": {
82
+ "start": "silex"
83
+ }
84
+ }
85
+ ```
76
86
 
77
87
  ## Configuration
78
88
 
79
- You can configure Silex using environment variables and command-line options. All available options can be found in `src/ts/server/cli.ts`.
89
+ You can configure Silex using environment variables and command-line options. All available options can be found in the [developer docs](https://docs.silex.me/en/dev) as well as in the code: [`src/ts/server/cli.ts`](./src/ts/server/cli.ts).
90
+
91
+ Check the example config files - which are the same as plugins in Silex, in the [`examples/`](./examples/) folder. To test these configs, start Silex locally like this:
92
+
93
+ ```sh
94
+ $ npx silex --client-config=./examples/client-config-transformers.js --server-config=`pwd`/examples/server-config-plugins.js
95
+ ```
80
96
 
81
- There are config files (same as plugins) in the `examples/` folder. To start Silex locally with these config:
97
+ Or like this:
82
98
 
83
99
  ```sh
84
- $ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_CONFIG=`pwd`/examples/server-config-plugins.js npm run start:debug
100
+ $ SILEX_CLIENT_CONFIG=./examples/client-config-transformers.js SILEX_SERVER_CONFIG=`pwd`/examples/server-config-plugins.js npm run start:debug
85
101
  ```
86
102
 
87
103
  ## Contributing
@@ -1 +1,17 @@
1
+ import { Editor } from 'grapesjs';
2
+ export interface PanelObject {
3
+ command: string | ((editor: Editor) => void);
4
+ text: string;
5
+ className: string;
6
+ attributes: {
7
+ title?: string;
8
+ containerClassName?: string;
9
+ };
10
+ buttons?: {
11
+ command: string;
12
+ text: string;
13
+ className: string;
14
+ }[];
15
+ }
1
16
  export declare const projectBarPlugin: (editor: any, opts: any) => void;
17
+ export declare function addButton(editor: Editor, panel: PanelObject): void;
@@ -1916,6 +1916,11 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
1916
1916
  width: 100%;
1917
1917
  height: 100%;
1918
1918
  }
1919
+ .gjs-cv-canvas__spots {
1920
+ position: absolute;
1921
+ pointer-events: none;
1922
+ z-index: 1;
1923
+ }
1919
1924
  .gjs-cv-canvas .gjs-ghost {
1920
1925
  display: none;
1921
1926
  pointer-events: none;