@silexlabs/silex 3.0.0-alpha.43 → 3.0.0-alpha.45

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 (102) hide show
  1. package/.env.default +18 -0
  2. package/dist/client/client/api.d.ts +6 -6
  3. package/dist/client/client/config.d.ts +26 -211
  4. package/dist/client/client/events.d.ts +2 -0
  5. package/dist/client/client/expose.d.ts +0 -1
  6. package/dist/client/client/grapesjs/LoginDialog.d.ts +1 -0
  7. package/dist/client/client/grapesjs/index.d.ts +3 -209
  8. package/dist/client/client/index.d.ts +1 -0
  9. package/dist/client/constants.d.ts +2 -3
  10. package/dist/client/css/admin.css +2 -0
  11. package/dist/client/js/main.js +47 -47
  12. package/dist/client/types.d.ts +7 -1
  13. package/dist/plugins/client/client/events.d.ts +2 -0
  14. package/dist/plugins/client/client/events.js +2 -0
  15. package/dist/plugins/client/client/events.js.map +1 -1
  16. package/dist/plugins/client/plugins/client/template.js +4 -4
  17. package/dist/plugins/client/plugins/client/template.js.map +1 -1
  18. package/dist/plugins/client/types.d.ts +7 -1
  19. package/dist/plugins/client/types.js +8 -0
  20. package/dist/plugins/client/types.js.map +1 -1
  21. package/dist/plugins/server/constants.d.ts +2 -3
  22. package/dist/plugins/server/constants.js +3 -4
  23. package/dist/plugins/server/constants.js.map +1 -1
  24. package/dist/plugins/server/plugins/server/FtpConnector.d.ts +17 -28
  25. package/dist/plugins/server/plugins/server/FtpConnector.js +16 -16
  26. package/dist/plugins/server/plugins/server/FtpConnector.js.map +1 -1
  27. package/dist/plugins/server/plugins/server/GitlabConnector.d.ts +81 -0
  28. package/dist/plugins/server/plugins/server/GitlabConnector.js +373 -0
  29. package/dist/plugins/server/plugins/server/GitlabConnector.js.map +1 -0
  30. package/dist/plugins/server/server/config.js +1 -1
  31. package/dist/plugins/server/server/config.js.map +1 -1
  32. package/dist/plugins/server/server/connectors/FsStorage.d.ts +13 -12
  33. package/dist/plugins/server/server/connectors/FsStorage.js +22 -15
  34. package/dist/plugins/server/server/connectors/FsStorage.js.map +1 -1
  35. package/dist/plugins/server/server/connectors/connectors.d.ts +5 -2
  36. package/dist/plugins/server/server/connectors/connectors.js +31 -3
  37. package/dist/plugins/server/server/connectors/connectors.js.map +1 -1
  38. package/dist/plugins/server/types.d.ts +7 -1
  39. package/dist/plugins/server/types.js +10 -1
  40. package/dist/plugins/server/types.js.map +1 -1
  41. package/dist/server/constants.js +3 -4
  42. package/dist/server/server/api/connectorApi.js +16 -11
  43. package/dist/server/server/api/publicationApi.js +18 -20
  44. package/dist/server/server/api/websiteApi.js +36 -40
  45. package/dist/server/server/cli.js +34 -16
  46. package/dist/server/server/config.js +1 -1
  47. package/dist/server/server/connectors/FsStorage.js +19 -15
  48. package/dist/server/server/connectors/connectors.js +27 -3
  49. package/dist/server/server/expose.js +27 -0
  50. package/dist/server/server/index.js +28 -2
  51. package/dist/server/types.js +10 -1
  52. package/package.json +4 -1
  53. package/src/css/_variables.scss +1 -0
  54. package/src/css/loader.scss +2 -0
  55. package/src/ts/client/api.ts +8 -11
  56. package/src/ts/client/config.ts +30 -14
  57. package/src/ts/client/events.ts +2 -0
  58. package/src/ts/client/expose.ts +0 -1
  59. package/src/ts/client/grapesjs/LoginDialog.ts +12 -1
  60. package/src/ts/client/grapesjs/PublicationManager.ts +1 -1
  61. package/src/ts/client/grapesjs/index.ts +8 -13
  62. package/src/ts/client/grapesjs/storage.ts +18 -10
  63. package/src/ts/client/index.ts +32 -14
  64. package/src/ts/constants.ts +2 -3
  65. package/src/ts/plugins/client/template.ts +4 -4
  66. package/src/ts/plugins/server/FtpConnector.test.ts +82 -0
  67. package/src/ts/plugins/server/FtpConnector.ts +30 -37
  68. package/src/ts/plugins/server/GitlabConnector.ts +434 -0
  69. package/src/ts/server/api/connectorApi.ts +31 -26
  70. package/src/ts/server/api/publicationApi.ts +23 -23
  71. package/src/ts/server/api/websiteApi.ts +42 -43
  72. package/src/ts/server/cli.ts +23 -11
  73. package/src/ts/server/config.ts +1 -1
  74. package/src/ts/server/connectors/FsStorage.test.ts +51 -0
  75. package/src/ts/server/connectors/FsStorage.ts +35 -25
  76. package/src/ts/server/connectors/connectors.ts +32 -4
  77. package/{dist/plugins/client/server/utils/validation.js → src/ts/server/expose.ts} +3 -18
  78. package/src/ts/server/index.ts +24 -2
  79. package/src/ts/types.ts +10 -1
  80. package/dist/plugins/client/constants.d.ts +0 -30
  81. package/dist/plugins/client/constants.js +0 -47
  82. package/dist/plugins/client/constants.js.map +0 -1
  83. package/dist/plugins/client/server/config.d.ts +0 -59
  84. package/dist/plugins/client/server/config.js +0 -178
  85. package/dist/plugins/client/server/config.js.map +0 -1
  86. package/dist/plugins/client/server/connectors/FsHosting.d.ts +0 -13
  87. package/dist/plugins/client/server/connectors/FsHosting.js +0 -51
  88. package/dist/plugins/client/server/connectors/FsHosting.js.map +0 -1
  89. package/dist/plugins/client/server/connectors/FsStorage.d.ts +0 -41
  90. package/dist/plugins/client/server/connectors/FsStorage.js +0 -220
  91. package/dist/plugins/client/server/connectors/FsStorage.js.map +0 -1
  92. package/dist/plugins/client/server/connectors/connectors.d.ts +0 -83
  93. package/dist/plugins/client/server/connectors/connectors.js +0 -91
  94. package/dist/plugins/client/server/connectors/connectors.js.map +0 -1
  95. package/dist/plugins/client/server/events.d.ts +0 -26
  96. package/dist/plugins/client/server/events.js +0 -12
  97. package/dist/plugins/client/server/events.js.map +0 -1
  98. package/dist/plugins/client/server/jobs.d.ts +0 -6
  99. package/dist/plugins/client/server/jobs.js +0 -67
  100. package/dist/plugins/client/server/jobs.js.map +0 -1
  101. package/dist/plugins/client/server/utils/validation.d.ts +0 -7
  102. package/dist/plugins/client/server/utils/validation.js.map +0 -1
package/.env.default ADDED
@@ -0,0 +1,18 @@
1
+ SILEX_EXPRESS_JSON_LIMIT=1mb
2
+ SILEX_EXPRESS_TEXT_LIMIT=10mb
3
+ SILEX_EXPRESS_URLENCODED_LIMIT=1mb
4
+ SILEX_SESSION_NAME=silex-session
5
+ SILEX_SESSION_SECRET=replace this session secret in env vars
6
+ SILEX_PORT=6805 # 6805 is the date of sexual revolution started in paris france 8-)
7
+ SILEX_HOST=localhost
8
+ SILEX_PROTOCOL=http
9
+ SILEX_DEBUG=FALSE
10
+ SILEX_CONFIG=
11
+ SILEX_SSL_PORT=
12
+ SILEX_FORCE_HTTPS=
13
+ SILEX_SSL_PRIVATE_KEY=
14
+ SILEX_SSL_CERTIFICATE=
15
+ SILEX_FORCE_HTTPS_TRUST_XFP_HEADER=
16
+ SILEX_CORS_URL=
17
+ SILEX_CLIENT_CONFIG=
18
+ SILEX_FS_ROOT=
@@ -10,15 +10,11 @@ export declare enum ApiRoute {
10
10
  WEBSITE_DELETE = "/api/website/",
11
11
  WEBSITE_CREATE = "/api/website/",
12
12
  WEBSITE_LIST = "/api/website/",
13
- WEBSITE_ASSETS_READ = "/api/websiteassets/:path",
14
- WEBSITE_ASSETS_WRITE = "/api/websiteassets",
13
+ WEBSITE_ASSETS_READ = "/api/website/assets",
14
+ WEBSITE_ASSETS_WRITE = "/api/website/assets",
15
15
  WEBSITE_META_READ = "/api/website/meta",
16
16
  WEBSITE_META_WRITE = "/api/website/meta"
17
17
  }
18
- export declare class ApiError extends Error {
19
- readonly code: number;
20
- constructor(message: string, code: number);
21
- }
22
18
  export declare function getUser({ type, connectorId }: {
23
19
  type: ConnectorType;
24
20
  connectorId?: ConnectorId;
@@ -75,6 +71,10 @@ export declare function websiteAssetsLoad({ path, websiteId, connectorId }: {
75
71
  websiteId: WebsiteId;
76
72
  connectorId: ConnectorId;
77
73
  }): Promise<string>;
74
+ /**
75
+ * Not used directly, grapesjs handles the upload
76
+ * @see assetManager in src/ts/client/grapesjs/index.ts
77
+ */
78
78
  export declare function websiteAssetsSave({ websiteId, connectorId, files }: {
79
79
  websiteId: WebsiteId;
80
80
  connectorId: ConnectorId;
@@ -1,228 +1,43 @@
1
- import { Config, Plugin } from '@silexlabs/silex-plugins';
2
- export declare class SilexConfig extends Config {
1
+ import { Config } from '@silexlabs/silex-plugins';
2
+ import { ConnectorId, WebsiteId } from '../types';
3
+ import { EditorConfig } from 'grapesjs';
4
+ /**
5
+ * @fileoverview Silex client side config
6
+ */
7
+ export declare class ClientConfig extends Config {
3
8
  /**
4
- * debug mode
9
+ * The website to load
10
+ * This is the id of the website in the storage connector
5
11
  */
6
- debug: boolean;
12
+ websiteId: WebsiteId;
13
+ /**
14
+ * The storage connector to use
15
+ * If not found in the URL and the user is not logged in to any storage, use the first storage
16
+ */
17
+ storageId: ConnectorId;
7
18
  /**
8
19
  * language for I18n module
9
20
  */
10
21
  lang: string;
22
+ /**
23
+ * root url of Silex app
24
+ */
25
+ rootUrl: string;
26
+ /**
27
+ * debug mode
28
+ */
29
+ debug: boolean;
11
30
  /**
12
31
  * Grapesjs config
13
32
  */
14
- grapesJsConfig: {
15
- container: string;
16
- height: string;
17
- showOffsets: boolean;
18
- showDevices: boolean;
19
- layerManager: {
20
- appendTo: string;
21
- };
22
- blockManager: {
23
- appendTo: string;
24
- };
25
- assetManager: {
26
- upload: string;
27
- };
28
- storageManager: {
29
- autoload: boolean;
30
- type: string;
31
- options: {
32
- connector: {
33
- id: string;
34
- connectorId: string;
35
- };
36
- };
37
- };
38
- cssIcons: string;
39
- plugins: any[];
40
- pluginsOpts: {
41
- [x: number]: import("./grapesjs/PublicationManager").PublicationManagerOptions | import("./grapesjs/LoginDialog").LoginDialogOptions | {
42
- blocks: string[];
43
- category: string;
44
- panels?: undefined;
45
- cmdOpenNewPageDialog?: undefined;
46
- cmdOpenSettings?: undefined;
47
- appendTo?: undefined;
48
- enableCount?: undefined;
49
- enablePerformance?: undefined;
50
- onError?: undefined;
51
- blockLabel?: undefined;
52
- blockCustomCode?: undefined;
53
- api_key?: undefined;
54
- } | {
55
- panels: ({
56
- id: string;
57
- className: string;
58
- attributes: {
59
- title: string;
60
- containerClassName?: undefined;
61
- };
62
- link: string;
63
- command: string;
64
- buttons?: undefined;
65
- } | {
66
- id: string;
67
- className: string;
68
- attributes: {
69
- title: string;
70
- containerClassName: string;
71
- };
72
- command: string;
73
- link?: undefined;
74
- buttons?: undefined;
75
- } | {
76
- id: string;
77
- className: string;
78
- attributes: {
79
- title: string;
80
- containerClassName: string;
81
- };
82
- command: string;
83
- buttons: {
84
- id: string;
85
- className: string;
86
- label: string;
87
- command: string;
88
- }[];
89
- link?: undefined;
90
- } | {
91
- id: string;
92
- className: string;
93
- attributes: {
94
- title: string;
95
- containerClassName: string;
96
- };
97
- command: string;
98
- buttons: {
99
- className: string;
100
- command: string;
101
- text: string;
102
- }[];
103
- link?: undefined;
104
- } | {
105
- id: string;
106
- className: string;
107
- attributes: {
108
- title: string;
109
- containerClassName?: undefined;
110
- };
111
- command: any;
112
- link?: undefined;
113
- buttons?: undefined;
114
- } | {
115
- id: string;
116
- attributes: {
117
- title?: undefined;
118
- containerClassName?: undefined;
119
- };
120
- className: string;
121
- link?: undefined;
122
- command?: undefined;
123
- buttons?: undefined;
124
- })[];
125
- blocks?: undefined;
126
- category?: undefined;
127
- cmdOpenNewPageDialog?: undefined;
128
- cmdOpenSettings?: undefined;
129
- appendTo?: undefined;
130
- enableCount?: undefined;
131
- enablePerformance?: undefined;
132
- onError?: undefined;
133
- blockLabel?: undefined;
134
- blockCustomCode?: undefined;
135
- api_key?: undefined;
136
- } | {
137
- cmdOpenNewPageDialog: string;
138
- cmdOpenSettings: string;
139
- appendTo: string;
140
- blocks?: undefined;
141
- category?: undefined;
142
- panels?: undefined;
143
- enableCount?: undefined;
144
- enablePerformance?: undefined;
145
- onError?: undefined;
146
- blockLabel?: undefined;
147
- blockCustomCode?: undefined;
148
- api_key?: undefined;
149
- } | {
150
- enableCount: boolean;
151
- enablePerformance: boolean;
152
- blocks?: undefined;
153
- category?: undefined;
154
- panels?: undefined;
155
- cmdOpenNewPageDialog?: undefined;
156
- cmdOpenSettings?: undefined;
157
- appendTo?: undefined;
158
- onError?: undefined;
159
- blockLabel?: undefined;
160
- blockCustomCode?: undefined;
161
- api_key?: undefined;
162
- } | {
163
- onError: (errors: any) => void;
164
- blocks?: undefined;
165
- category?: undefined;
166
- panels?: undefined;
167
- cmdOpenNewPageDialog?: undefined;
168
- cmdOpenSettings?: undefined;
169
- appendTo?: undefined;
170
- enableCount?: undefined;
171
- enablePerformance?: undefined;
172
- blockLabel?: undefined;
173
- blockCustomCode?: undefined;
174
- api_key?: undefined;
175
- } | {
176
- blockLabel: string;
177
- blockCustomCode: {
178
- category: string;
179
- };
180
- blocks?: undefined;
181
- category?: undefined;
182
- panels?: undefined;
183
- cmdOpenNewPageDialog?: undefined;
184
- cmdOpenSettings?: undefined;
185
- appendTo?: undefined;
186
- enableCount?: undefined;
187
- enablePerformance?: undefined;
188
- onError?: undefined;
189
- api_key?: undefined;
190
- } | {
191
- appendTo: string;
192
- blocks?: undefined;
193
- category?: undefined;
194
- panels?: undefined;
195
- cmdOpenNewPageDialog?: undefined;
196
- cmdOpenSettings?: undefined;
197
- enableCount?: undefined;
198
- enablePerformance?: undefined;
199
- onError?: undefined;
200
- blockLabel?: undefined;
201
- blockCustomCode?: undefined;
202
- api_key?: undefined;
203
- } | {
204
- api_key: string;
205
- blocks?: undefined;
206
- category?: undefined;
207
- panels?: undefined;
208
- cmdOpenNewPageDialog?: undefined;
209
- cmdOpenSettings?: undefined;
210
- appendTo?: undefined;
211
- enableCount?: undefined;
212
- enablePerformance?: undefined;
213
- onError?: undefined;
214
- blockLabel?: undefined;
215
- blockCustomCode?: undefined;
216
- };
217
- };
218
- };
33
+ grapesJsConfig: EditorConfig;
219
34
  /**
220
35
  * Client config url
221
36
  * This is the url of the config file which is a plugin
222
37
  */
223
38
  clientConfigUrl: string;
224
39
  /**
225
- * GrapesJs plugins
40
+ * Init GrapesJS config which depend on the config file properties
226
41
  */
227
- grapesJsPlugins: Plugin[];
42
+ initGrapesConfig(): void;
228
43
  }
@@ -1,6 +1,8 @@
1
1
  export declare enum ClientEvent {
2
2
  STARTUP_START = "silex:startup:start",
3
3
  STARTUP_END = "silex:startup:end",
4
+ GRAPESJS_START = "silex:grapesjs:start",
5
+ GRAPESJS_END = "silex:grapesjs:end",
4
6
  PUBLISH_START = "silex:publish:start",
5
7
  PUBLISH_DATA = "silex:publish:data",
6
8
  PUBLISH_END = "silex:publish:end",
@@ -1,4 +1,3 @@
1
- export * from './index';
2
1
  export * from './grapesjs/index';
3
2
  export * from './config';
4
3
  export * as constants from '../constants';
@@ -2,6 +2,7 @@ import { Editor } from 'grapesjs';
2
2
  import { ConnectorId, ConnectorType, ConnectorUser } from '../../types';
3
3
  import { WebsiteId } from '../../types';
4
4
  export declare const cmdLogin = "silex:auth:login";
5
+ export declare const cmdLogout = "silex:auth:logout";
5
6
  export declare const eventLoggingIn = "silex:auth:logging-in";
6
7
  export declare const eventLoggedIn = "silex:auth:logged-in";
7
8
  export declare const eventLoginFailed = "silex:auth:login-failed";
@@ -1,211 +1,5 @@
1
- import { Editor } from 'grapesjs';
2
- import { LoginDialogOptions } from './LoginDialog';
3
- import { PublicationManagerOptions } from './PublicationManager';
1
+ import { Editor, EditorConfig } from 'grapesjs';
4
2
  import { ConnectorId, WebsiteId } from '../../types';
5
- export declare function getEditorConfig(id: WebsiteId, connectorId: ConnectorId, rootUrl: string): {
6
- container: string;
7
- height: string;
8
- showOffsets: boolean;
9
- showDevices: boolean;
10
- layerManager: {
11
- appendTo: string;
12
- };
13
- blockManager: {
14
- appendTo: string;
15
- };
16
- assetManager: {
17
- upload: string;
18
- };
19
- storageManager: {
20
- autoload: boolean;
21
- type: string;
22
- options: {
23
- connector: {
24
- id: string;
25
- connectorId: string;
26
- };
27
- };
28
- };
29
- cssIcons: string;
30
- plugins: any[];
31
- pluginsOpts: {
32
- [x: number]: PublicationManagerOptions | LoginDialogOptions | {
33
- blocks: string[];
34
- category: string;
35
- panels?: undefined;
36
- cmdOpenNewPageDialog?: undefined;
37
- cmdOpenSettings?: undefined;
38
- appendTo?: undefined;
39
- enableCount?: undefined;
40
- enablePerformance?: undefined;
41
- onError?: undefined;
42
- blockLabel?: undefined;
43
- blockCustomCode?: undefined;
44
- api_key?: undefined;
45
- } | {
46
- panels: ({
47
- id: string;
48
- className: string;
49
- attributes: {
50
- title: string;
51
- containerClassName?: undefined;
52
- };
53
- link: string;
54
- command: string;
55
- buttons?: undefined;
56
- } | {
57
- id: string;
58
- className: string;
59
- attributes: {
60
- title: string;
61
- containerClassName: string;
62
- };
63
- command: string;
64
- link?: undefined;
65
- buttons?: undefined;
66
- } | {
67
- id: string;
68
- className: string;
69
- attributes: {
70
- title: string;
71
- containerClassName: string;
72
- };
73
- command: string;
74
- buttons: {
75
- id: string;
76
- className: string;
77
- label: string;
78
- command: string;
79
- }[];
80
- link?: undefined;
81
- } | {
82
- id: string;
83
- className: string;
84
- attributes: {
85
- title: string;
86
- containerClassName: string;
87
- };
88
- command: string;
89
- buttons: {
90
- className: string;
91
- command: string;
92
- text: string;
93
- }[];
94
- link?: undefined;
95
- } | {
96
- id: string;
97
- className: string;
98
- attributes: {
99
- title: string;
100
- containerClassName?: undefined;
101
- };
102
- command: any;
103
- link?: undefined;
104
- buttons?: undefined;
105
- } | {
106
- id: string;
107
- attributes: {
108
- title?: undefined;
109
- containerClassName?: undefined;
110
- };
111
- className: string;
112
- link?: undefined;
113
- command?: undefined;
114
- buttons?: undefined;
115
- })[];
116
- blocks?: undefined;
117
- category?: undefined;
118
- cmdOpenNewPageDialog?: undefined;
119
- cmdOpenSettings?: undefined;
120
- appendTo?: undefined;
121
- enableCount?: undefined;
122
- enablePerformance?: undefined;
123
- onError?: undefined;
124
- blockLabel?: undefined;
125
- blockCustomCode?: undefined;
126
- api_key?: undefined;
127
- } | {
128
- cmdOpenNewPageDialog: string;
129
- cmdOpenSettings: string;
130
- appendTo: string;
131
- blocks?: undefined;
132
- category?: undefined;
133
- panels?: undefined;
134
- enableCount?: undefined;
135
- enablePerformance?: undefined;
136
- onError?: undefined;
137
- blockLabel?: undefined;
138
- blockCustomCode?: undefined;
139
- api_key?: undefined;
140
- } | {
141
- enableCount: boolean;
142
- enablePerformance: boolean;
143
- blocks?: undefined;
144
- category?: undefined;
145
- panels?: undefined;
146
- cmdOpenNewPageDialog?: undefined;
147
- cmdOpenSettings?: undefined;
148
- appendTo?: undefined;
149
- onError?: undefined;
150
- blockLabel?: undefined;
151
- blockCustomCode?: undefined;
152
- api_key?: undefined;
153
- } | {
154
- onError: (errors: any) => void;
155
- blocks?: undefined;
156
- category?: undefined;
157
- panels?: undefined;
158
- cmdOpenNewPageDialog?: undefined;
159
- cmdOpenSettings?: undefined;
160
- appendTo?: undefined;
161
- enableCount?: undefined;
162
- enablePerformance?: undefined;
163
- blockLabel?: undefined;
164
- blockCustomCode?: undefined;
165
- api_key?: undefined;
166
- } | {
167
- blockLabel: string;
168
- blockCustomCode: {
169
- category: string;
170
- };
171
- blocks?: undefined;
172
- category?: undefined;
173
- panels?: undefined;
174
- cmdOpenNewPageDialog?: undefined;
175
- cmdOpenSettings?: undefined;
176
- appendTo?: undefined;
177
- enableCount?: undefined;
178
- enablePerformance?: undefined;
179
- onError?: undefined;
180
- api_key?: undefined;
181
- } | {
182
- appendTo: string;
183
- blocks?: undefined;
184
- category?: undefined;
185
- panels?: undefined;
186
- cmdOpenNewPageDialog?: undefined;
187
- cmdOpenSettings?: undefined;
188
- enableCount?: undefined;
189
- enablePerformance?: undefined;
190
- onError?: undefined;
191
- blockLabel?: undefined;
192
- blockCustomCode?: undefined;
193
- api_key?: undefined;
194
- } | {
195
- api_key: string;
196
- blocks?: undefined;
197
- category?: undefined;
198
- panels?: undefined;
199
- cmdOpenNewPageDialog?: undefined;
200
- cmdOpenSettings?: undefined;
201
- appendTo?: undefined;
202
- enableCount?: undefined;
203
- enablePerformance?: undefined;
204
- onError?: undefined;
205
- blockLabel?: undefined;
206
- blockCustomCode?: undefined;
207
- };
208
- };
209
- };
210
- export declare function initEditor(config: any, grapesJsPlugins: any): Promise<Editor>;
3
+ export declare function getEditorConfig(id: WebsiteId, connectorId: ConnectorId, rootUrl: string): EditorConfig;
4
+ export declare function initEditor(config: EditorConfig): Promise<Editor>;
211
5
  export declare function getEditor(): Editor;
@@ -1,3 +1,4 @@
1
+ export * from './expose';
1
2
  /**
2
3
  * Start Silex, called from host HTML page with window.silex.start()
3
4
  */
@@ -4,7 +4,6 @@
4
4
  export declare const WEBSITE_DATA_FILE = "website.json";
5
5
  export declare const WEBSITE_META_DATA_FILE = "meta.json";
6
6
  export declare const DEFAULT_WEBSITE_ID = "default";
7
- export declare const DEFAULT_CONNECTOR_ID = "";
8
7
  export declare const DEFAULT_LANGUAGE = "en";
9
8
  export declare const CLIENT_CONFIG_FILE_NAME = "silex.js";
10
9
  export declare const API_PATH = "/api";
@@ -24,7 +23,7 @@ export declare const API_WEBSITE_WRITE = "/";
24
23
  export declare const API_WEBSITE_CREATE = "/";
25
24
  export declare const API_WEBSITE_DELETE = "/";
26
25
  export declare const API_WEBSITE_LIST = "/";
27
- export declare const API_WEBSITE_ASSETS_READ = "assets/:path";
28
- export declare const API_WEBSITE_ASSETS_WRITE = "assets";
26
+ export declare const API_WEBSITE_ASSET_READ = "/assets";
27
+ export declare const API_WEBSITE_ASSETS_WRITE = "/assets";
29
28
  export declare const API_WEBSITE_META_READ = "/meta";
30
29
  export declare const API_WEBSITE_META_WRITE = "/meta";
@@ -4021,6 +4021,8 @@ form.silex-form .silex-form__group.col2 {
4021
4021
  color: #ddd;
4022
4022
  justify-content: center;
4023
4023
  align-items: center;
4024
+ background-color: #444;
4025
+ z-index: 10;
4024
4026
  }
4025
4027
 
4026
4028
  .silex-main {