@silexlabs/silex 3.0.0-alpha.32 → 3.0.0-alpha.36
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/LICENSE +661 -203
- package/README.md +4 -2
- package/dist/client/client/config.d.ts +258 -0
- package/dist/client/client/expose.d.ts +3 -0
- package/dist/client/client/grapesjs/blocks.d.ts +1 -0
- package/dist/client/client/grapesjs/eleventy.d.ts +1 -0
- package/dist/client/client/grapesjs/index.d.ts +237 -0
- package/dist/client/client/grapesjs/internal-links.d.ts +1 -0
- package/dist/client/client/grapesjs/new-page-dialog.d.ts +2 -0
- package/dist/client/client/grapesjs/openImport.d.ts +4 -0
- package/dist/client/client/grapesjs/page-panel.d.ts +3 -0
- package/dist/client/client/grapesjs/project-bar.d.ts +1 -0
- package/dist/client/client/grapesjs/publish.d.ts +18 -0
- package/dist/client/client/grapesjs/rich-text.d.ts +1 -0
- package/dist/client/client/grapesjs/semantic.d.ts +1 -0
- package/dist/client/client/grapesjs/settings.d.ts +2 -0
- package/dist/client/client/grapesjs/symbolDialogs.d.ts +3 -0
- package/dist/client/client/grapesjs/template.d.ts +1 -0
- package/dist/client/client/index.d.ts +4 -0
- package/dist/client/client/utils.d.ts +1 -0
- package/dist/client/constants.d.ts +4 -0
- package/dist/client/events.d.ts +2 -0
- package/dist/client/js/main.js +53 -53
- package/dist/client/js/main.js.LICENSE.txt +2 -24
- package/dist/client/page.d.ts +2 -0
- package/dist/client/types.d.ts +99 -0
- package/dist/server/index.js +12 -2
- package/dist/types.js +1 -1
- package/package.json +42 -35
- package/src/plugins/DefaultBackend.js +29 -8
- package/src/ts/client/config.ts +17 -0
- package/src/ts/client/expose.ts +17 -1
- package/src/ts/client/grapesjs/blocks.ts +17 -0
- package/src/ts/client/grapesjs/eleventy.ts +17 -0
- package/src/ts/client/grapesjs/index.ts +44 -18
- package/src/ts/client/grapesjs/internal-links.test.ts +17 -0
- package/src/ts/client/grapesjs/internal-links.ts +17 -0
- package/src/ts/client/grapesjs/new-page-dialog.ts +17 -0
- package/src/ts/client/grapesjs/openImport.ts +17 -0
- package/src/ts/client/grapesjs/page-panel.ts +17 -0
- package/src/ts/client/grapesjs/project-bar.ts +17 -0
- package/src/ts/client/grapesjs/publish.ts +17 -0
- package/src/ts/client/grapesjs/rich-text.ts +17 -0
- package/src/ts/client/grapesjs/semantic.ts +17 -0
- package/src/ts/client/grapesjs/settings.ts +17 -0
- package/src/ts/client/grapesjs/symbolDialogs.ts +18 -1
- package/src/ts/client/grapesjs/template.ts +17 -0
- package/src/ts/client/index.ts +18 -0
- package/src/ts/client/utils.ts +17 -0
- package/src/ts/constants.ts +17 -0
- package/src/ts/events.ts +17 -0
- package/src/ts/externs.ts +17 -0
- package/src/ts/page.ts +17 -0
- package/src/ts/server/cli.ts +18 -0
- package/src/ts/server/config.ts +17 -0
- package/src/ts/server/express.ts +17 -0
- package/src/ts/server/index.ts +24 -3
- package/src/ts/server/utils/BackwardCompat.ts +17 -0
- package/src/ts/types.ts +17 -0
- package/.dockerignore +0 -5
- package/.editorconfig +0 -14
- package/.eslintrc.json +0 -43
- package/.github/FUNDING.yml +0 -13
- package/.github/workflows/docker-hub-publish.yml +0 -36
- package/.github/workflows/npm-publish.yml +0 -19
- package/.github/workflows/test.yml +0 -26
- package/.nvmrc +0 -1
- package/.silex.js +0 -12
- package/CODE_OF_CONDUCT.md +0 -128
- package/CONTRIBUTING.md +0 -131
- package/Dockerfile +0 -15
- package/directus.silex.js +0 -7
- package/jest.config.js +0 -10
- package/logos/logo_by_ceubri/silex-icon-2018@200px.png +0 -0
- package/logos/logo_by_ceubri/silex-icon-2018@4x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white-transp.pdf +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white.jpg +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white.pdf +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white@0.5x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white@0.75x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white@4x.jpg +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018-white@4x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018.ai +5 -2521
- package/logos/logo_by_ceubri/silex-logo-2018.jpg +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018.pdf +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018@0.5x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018@0.75x.png +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018@4x.jpg +0 -0
- package/logos/logo_by_ceubri/silex-logo-2018@4x.png +0 -0
- package/logos/silexlabs.png +0 -0
- package/public/assets/container.png +0 -0
- package/public/assets/favicon.png +0 -0
- package/public/assets/logo-silex-small.png +0 -0
- package/public/robots.txt +0 -2
- package/public/silex.js +0 -25
- package/tsconfig-server-debug.json +0 -20
- package/tsconfig-server-release.json +0 -20
- package/tsconfig.jest.json +0 -9
- package/tsconfig.json +0 -27
- package/webpack.config.js +0 -28
- package/webpack.debug.config.js +0 -8
package/README.md
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
+
Brought to you by [Alex Hoyau](https://www.patreon.com/lexoyo) and [Silex contributors](https://github.com/silexlabs/Silex/graphs/contributors).
|
|
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)
|
|
8
|
+
|
|
5
9
|
## About Silex, live web creation.
|
|
6
10
|
|
|
7
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.
|
|
8
12
|
|
|
9
13
|
Silex lets you create websites without coding, but it also has built-in editors for HTML, CSS, and JavaScript for when you need more control. It is used by freelancers and web studios to make real websites for real clients. Also Silex can generate templates or be integrated in a nodejs project, it has a plugin system and can integrate with headleass CMS and static site generators, it is part of the JSAMStack ecosystem since the v3.
|
|
10
14
|
|
|
11
|
-
Brought to you by [Alex Hoyau](https://www.patreon.com/lexoyo) and [Silex contributors](https://github.com/silexlabs/Silex/graphs/contributors).
|
|
12
|
-
|
|
13
15
|
Useful links
|
|
14
16
|
|
|
15
17
|
* [Official website](https://www.silex.me/)
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { Config, Plugin } from '@silexlabs/silex-plugins';
|
|
2
|
+
export declare class SilexConfig extends Config {
|
|
3
|
+
/**
|
|
4
|
+
* debug mode
|
|
5
|
+
*/
|
|
6
|
+
debug: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* language for I18n module
|
|
9
|
+
*/
|
|
10
|
+
lang: string;
|
|
11
|
+
/**
|
|
12
|
+
* Grapesjs config
|
|
13
|
+
*/
|
|
14
|
+
editor: {
|
|
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
|
+
remote: {
|
|
33
|
+
urlStore: string;
|
|
34
|
+
urlLoad: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
plugins: any[];
|
|
39
|
+
pluginsOpts: {
|
|
40
|
+
[x: number]: {
|
|
41
|
+
blocks: string[];
|
|
42
|
+
category: string;
|
|
43
|
+
panels?: undefined;
|
|
44
|
+
appendTo?: undefined;
|
|
45
|
+
rootUrl?: undefined;
|
|
46
|
+
id?: undefined;
|
|
47
|
+
cmdOpenNewPageDialog?: undefined;
|
|
48
|
+
cmdOpenSettings?: undefined;
|
|
49
|
+
enableCount?: undefined;
|
|
50
|
+
enablePerformance?: undefined;
|
|
51
|
+
onError?: undefined;
|
|
52
|
+
blockLabel?: undefined;
|
|
53
|
+
blockCustomCode?: undefined;
|
|
54
|
+
api_key?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
panels: ({
|
|
57
|
+
id: string;
|
|
58
|
+
className: string;
|
|
59
|
+
attributes: {
|
|
60
|
+
title: string;
|
|
61
|
+
containerClassName?: undefined;
|
|
62
|
+
};
|
|
63
|
+
link: string;
|
|
64
|
+
command: string;
|
|
65
|
+
buttons?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
className: string;
|
|
69
|
+
attributes: {
|
|
70
|
+
title: string;
|
|
71
|
+
containerClassName: string;
|
|
72
|
+
};
|
|
73
|
+
command: string;
|
|
74
|
+
link?: undefined;
|
|
75
|
+
buttons?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
id: string;
|
|
78
|
+
className: string;
|
|
79
|
+
attributes: {
|
|
80
|
+
title: string;
|
|
81
|
+
containerClassName: string;
|
|
82
|
+
};
|
|
83
|
+
command: string;
|
|
84
|
+
buttons: {
|
|
85
|
+
id: string;
|
|
86
|
+
className: string;
|
|
87
|
+
label: string;
|
|
88
|
+
command: string;
|
|
89
|
+
}[];
|
|
90
|
+
link?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
className: string;
|
|
94
|
+
attributes: {
|
|
95
|
+
title: string;
|
|
96
|
+
containerClassName: string;
|
|
97
|
+
};
|
|
98
|
+
command: string;
|
|
99
|
+
buttons: {
|
|
100
|
+
className: string;
|
|
101
|
+
command: string;
|
|
102
|
+
text: string;
|
|
103
|
+
}[];
|
|
104
|
+
link?: undefined;
|
|
105
|
+
} | {
|
|
106
|
+
id: string;
|
|
107
|
+
className: string;
|
|
108
|
+
attributes: {
|
|
109
|
+
title: string;
|
|
110
|
+
containerClassName?: undefined;
|
|
111
|
+
};
|
|
112
|
+
command: any;
|
|
113
|
+
link?: undefined;
|
|
114
|
+
buttons?: undefined;
|
|
115
|
+
} | {
|
|
116
|
+
id: string;
|
|
117
|
+
attributes: {
|
|
118
|
+
title?: undefined;
|
|
119
|
+
containerClassName?: undefined;
|
|
120
|
+
};
|
|
121
|
+
className: string;
|
|
122
|
+
link?: undefined;
|
|
123
|
+
command?: undefined;
|
|
124
|
+
buttons?: undefined;
|
|
125
|
+
})[];
|
|
126
|
+
blocks?: undefined;
|
|
127
|
+
category?: undefined;
|
|
128
|
+
appendTo?: undefined;
|
|
129
|
+
rootUrl?: undefined;
|
|
130
|
+
id?: undefined;
|
|
131
|
+
cmdOpenNewPageDialog?: undefined;
|
|
132
|
+
cmdOpenSettings?: undefined;
|
|
133
|
+
enableCount?: undefined;
|
|
134
|
+
enablePerformance?: undefined;
|
|
135
|
+
onError?: undefined;
|
|
136
|
+
blockLabel?: undefined;
|
|
137
|
+
blockCustomCode?: undefined;
|
|
138
|
+
api_key?: undefined;
|
|
139
|
+
} | {
|
|
140
|
+
appendTo: string;
|
|
141
|
+
rootUrl: string;
|
|
142
|
+
id: string;
|
|
143
|
+
blocks?: undefined;
|
|
144
|
+
category?: undefined;
|
|
145
|
+
panels?: undefined;
|
|
146
|
+
cmdOpenNewPageDialog?: undefined;
|
|
147
|
+
cmdOpenSettings?: undefined;
|
|
148
|
+
enableCount?: undefined;
|
|
149
|
+
enablePerformance?: undefined;
|
|
150
|
+
onError?: undefined;
|
|
151
|
+
blockLabel?: undefined;
|
|
152
|
+
blockCustomCode?: undefined;
|
|
153
|
+
api_key?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
cmdOpenNewPageDialog: string;
|
|
156
|
+
cmdOpenSettings: string;
|
|
157
|
+
appendTo: string;
|
|
158
|
+
blocks?: undefined;
|
|
159
|
+
category?: undefined;
|
|
160
|
+
panels?: undefined;
|
|
161
|
+
rootUrl?: undefined;
|
|
162
|
+
id?: undefined;
|
|
163
|
+
enableCount?: undefined;
|
|
164
|
+
enablePerformance?: undefined;
|
|
165
|
+
onError?: undefined;
|
|
166
|
+
blockLabel?: undefined;
|
|
167
|
+
blockCustomCode?: undefined;
|
|
168
|
+
api_key?: undefined;
|
|
169
|
+
} | {
|
|
170
|
+
enableCount: boolean;
|
|
171
|
+
enablePerformance: boolean;
|
|
172
|
+
blocks?: undefined;
|
|
173
|
+
category?: undefined;
|
|
174
|
+
panels?: undefined;
|
|
175
|
+
appendTo?: undefined;
|
|
176
|
+
rootUrl?: undefined;
|
|
177
|
+
id?: undefined;
|
|
178
|
+
cmdOpenNewPageDialog?: undefined;
|
|
179
|
+
cmdOpenSettings?: undefined;
|
|
180
|
+
onError?: undefined;
|
|
181
|
+
blockLabel?: undefined;
|
|
182
|
+
blockCustomCode?: undefined;
|
|
183
|
+
api_key?: undefined;
|
|
184
|
+
} | {
|
|
185
|
+
onError: (errors: any) => void;
|
|
186
|
+
blocks?: undefined;
|
|
187
|
+
category?: undefined;
|
|
188
|
+
panels?: undefined;
|
|
189
|
+
appendTo?: undefined;
|
|
190
|
+
rootUrl?: undefined;
|
|
191
|
+
id?: undefined;
|
|
192
|
+
cmdOpenNewPageDialog?: undefined;
|
|
193
|
+
cmdOpenSettings?: undefined;
|
|
194
|
+
enableCount?: undefined;
|
|
195
|
+
enablePerformance?: undefined;
|
|
196
|
+
blockLabel?: undefined;
|
|
197
|
+
blockCustomCode?: undefined;
|
|
198
|
+
api_key?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
blockLabel: string;
|
|
201
|
+
blockCustomCode: {
|
|
202
|
+
category: string;
|
|
203
|
+
};
|
|
204
|
+
blocks?: undefined;
|
|
205
|
+
category?: undefined;
|
|
206
|
+
panels?: undefined;
|
|
207
|
+
appendTo?: undefined;
|
|
208
|
+
rootUrl?: undefined;
|
|
209
|
+
id?: undefined;
|
|
210
|
+
cmdOpenNewPageDialog?: undefined;
|
|
211
|
+
cmdOpenSettings?: undefined;
|
|
212
|
+
enableCount?: undefined;
|
|
213
|
+
enablePerformance?: undefined;
|
|
214
|
+
onError?: undefined;
|
|
215
|
+
api_key?: undefined;
|
|
216
|
+
} | {
|
|
217
|
+
appendTo: string;
|
|
218
|
+
blocks?: undefined;
|
|
219
|
+
category?: undefined;
|
|
220
|
+
panels?: undefined;
|
|
221
|
+
rootUrl?: undefined;
|
|
222
|
+
id?: undefined;
|
|
223
|
+
cmdOpenNewPageDialog?: undefined;
|
|
224
|
+
cmdOpenSettings?: undefined;
|
|
225
|
+
enableCount?: undefined;
|
|
226
|
+
enablePerformance?: undefined;
|
|
227
|
+
onError?: undefined;
|
|
228
|
+
blockLabel?: undefined;
|
|
229
|
+
blockCustomCode?: undefined;
|
|
230
|
+
api_key?: undefined;
|
|
231
|
+
} | {
|
|
232
|
+
api_key: string;
|
|
233
|
+
blocks?: undefined;
|
|
234
|
+
category?: undefined;
|
|
235
|
+
panels?: undefined;
|
|
236
|
+
appendTo?: undefined;
|
|
237
|
+
rootUrl?: undefined;
|
|
238
|
+
id?: undefined;
|
|
239
|
+
cmdOpenNewPageDialog?: undefined;
|
|
240
|
+
cmdOpenSettings?: undefined;
|
|
241
|
+
enableCount?: undefined;
|
|
242
|
+
enablePerformance?: undefined;
|
|
243
|
+
onError?: undefined;
|
|
244
|
+
blockLabel?: undefined;
|
|
245
|
+
blockCustomCode?: undefined;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Client config url
|
|
251
|
+
* This is the url of the config file which is a plugin
|
|
252
|
+
*/
|
|
253
|
+
clientConfigUrl: string;
|
|
254
|
+
/**
|
|
255
|
+
* GrapesJs plugins
|
|
256
|
+
*/
|
|
257
|
+
grapesJsPlugins: Plugin[];
|
|
258
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blocksPlugin: (editor: any, opts: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const eleventyPlugin: any;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
export declare function getEditorConfig(id: string, rootUrl: string): {
|
|
2
|
+
container: string;
|
|
3
|
+
height: string;
|
|
4
|
+
showOffsets: boolean;
|
|
5
|
+
showDevices: boolean;
|
|
6
|
+
layerManager: {
|
|
7
|
+
appendTo: string;
|
|
8
|
+
};
|
|
9
|
+
blockManager: {
|
|
10
|
+
appendTo: string;
|
|
11
|
+
};
|
|
12
|
+
assetManager: {
|
|
13
|
+
upload: string;
|
|
14
|
+
};
|
|
15
|
+
storageManager: {
|
|
16
|
+
autoload: boolean;
|
|
17
|
+
type: string;
|
|
18
|
+
options: {
|
|
19
|
+
remote: {
|
|
20
|
+
urlStore: string;
|
|
21
|
+
urlLoad: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
plugins: any[];
|
|
26
|
+
pluginsOpts: {
|
|
27
|
+
[x: number]: {
|
|
28
|
+
blocks: string[];
|
|
29
|
+
category: string;
|
|
30
|
+
panels?: undefined;
|
|
31
|
+
appendTo?: undefined;
|
|
32
|
+
rootUrl?: undefined;
|
|
33
|
+
id?: undefined;
|
|
34
|
+
cmdOpenNewPageDialog?: undefined;
|
|
35
|
+
cmdOpenSettings?: undefined;
|
|
36
|
+
enableCount?: undefined;
|
|
37
|
+
enablePerformance?: undefined;
|
|
38
|
+
onError?: undefined;
|
|
39
|
+
blockLabel?: undefined;
|
|
40
|
+
blockCustomCode?: undefined;
|
|
41
|
+
api_key?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
panels: ({
|
|
44
|
+
id: string;
|
|
45
|
+
className: string;
|
|
46
|
+
attributes: {
|
|
47
|
+
title: string;
|
|
48
|
+
containerClassName?: undefined;
|
|
49
|
+
};
|
|
50
|
+
link: string;
|
|
51
|
+
command: string;
|
|
52
|
+
buttons?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
id: string;
|
|
55
|
+
className: string;
|
|
56
|
+
attributes: {
|
|
57
|
+
title: string;
|
|
58
|
+
containerClassName: string;
|
|
59
|
+
};
|
|
60
|
+
command: string;
|
|
61
|
+
link?: undefined;
|
|
62
|
+
buttons?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
className: string;
|
|
66
|
+
attributes: {
|
|
67
|
+
title: string;
|
|
68
|
+
containerClassName: string;
|
|
69
|
+
};
|
|
70
|
+
command: string;
|
|
71
|
+
buttons: {
|
|
72
|
+
id: string;
|
|
73
|
+
className: string;
|
|
74
|
+
label: string;
|
|
75
|
+
command: string;
|
|
76
|
+
}[];
|
|
77
|
+
link?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
id: string;
|
|
80
|
+
className: string;
|
|
81
|
+
attributes: {
|
|
82
|
+
title: string;
|
|
83
|
+
containerClassName: string;
|
|
84
|
+
};
|
|
85
|
+
command: string;
|
|
86
|
+
buttons: {
|
|
87
|
+
className: string;
|
|
88
|
+
command: string;
|
|
89
|
+
text: string;
|
|
90
|
+
}[];
|
|
91
|
+
link?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
id: string;
|
|
94
|
+
className: string;
|
|
95
|
+
attributes: {
|
|
96
|
+
title: string;
|
|
97
|
+
containerClassName?: undefined;
|
|
98
|
+
};
|
|
99
|
+
command: any;
|
|
100
|
+
link?: undefined;
|
|
101
|
+
buttons?: undefined;
|
|
102
|
+
} | {
|
|
103
|
+
id: string;
|
|
104
|
+
attributes: {
|
|
105
|
+
title?: undefined;
|
|
106
|
+
containerClassName?: undefined;
|
|
107
|
+
};
|
|
108
|
+
className: string;
|
|
109
|
+
link?: undefined;
|
|
110
|
+
command?: undefined;
|
|
111
|
+
buttons?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
blocks?: undefined;
|
|
114
|
+
category?: undefined;
|
|
115
|
+
appendTo?: undefined;
|
|
116
|
+
rootUrl?: undefined;
|
|
117
|
+
id?: undefined;
|
|
118
|
+
cmdOpenNewPageDialog?: undefined;
|
|
119
|
+
cmdOpenSettings?: undefined;
|
|
120
|
+
enableCount?: undefined;
|
|
121
|
+
enablePerformance?: undefined;
|
|
122
|
+
onError?: undefined;
|
|
123
|
+
blockLabel?: undefined;
|
|
124
|
+
blockCustomCode?: undefined;
|
|
125
|
+
api_key?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
appendTo: string;
|
|
128
|
+
rootUrl: string;
|
|
129
|
+
id: string;
|
|
130
|
+
blocks?: undefined;
|
|
131
|
+
category?: undefined;
|
|
132
|
+
panels?: undefined;
|
|
133
|
+
cmdOpenNewPageDialog?: undefined;
|
|
134
|
+
cmdOpenSettings?: undefined;
|
|
135
|
+
enableCount?: undefined;
|
|
136
|
+
enablePerformance?: undefined;
|
|
137
|
+
onError?: undefined;
|
|
138
|
+
blockLabel?: undefined;
|
|
139
|
+
blockCustomCode?: undefined;
|
|
140
|
+
api_key?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
cmdOpenNewPageDialog: string;
|
|
143
|
+
cmdOpenSettings: string;
|
|
144
|
+
appendTo: string;
|
|
145
|
+
blocks?: undefined;
|
|
146
|
+
category?: undefined;
|
|
147
|
+
panels?: undefined;
|
|
148
|
+
rootUrl?: undefined;
|
|
149
|
+
id?: undefined;
|
|
150
|
+
enableCount?: undefined;
|
|
151
|
+
enablePerformance?: undefined;
|
|
152
|
+
onError?: undefined;
|
|
153
|
+
blockLabel?: undefined;
|
|
154
|
+
blockCustomCode?: undefined;
|
|
155
|
+
api_key?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
enableCount: boolean;
|
|
158
|
+
enablePerformance: boolean;
|
|
159
|
+
blocks?: undefined;
|
|
160
|
+
category?: undefined;
|
|
161
|
+
panels?: undefined;
|
|
162
|
+
appendTo?: undefined;
|
|
163
|
+
rootUrl?: undefined;
|
|
164
|
+
id?: undefined;
|
|
165
|
+
cmdOpenNewPageDialog?: undefined;
|
|
166
|
+
cmdOpenSettings?: undefined;
|
|
167
|
+
onError?: undefined;
|
|
168
|
+
blockLabel?: undefined;
|
|
169
|
+
blockCustomCode?: undefined;
|
|
170
|
+
api_key?: undefined;
|
|
171
|
+
} | {
|
|
172
|
+
onError: (errors: any) => void;
|
|
173
|
+
blocks?: undefined;
|
|
174
|
+
category?: undefined;
|
|
175
|
+
panels?: undefined;
|
|
176
|
+
appendTo?: undefined;
|
|
177
|
+
rootUrl?: undefined;
|
|
178
|
+
id?: undefined;
|
|
179
|
+
cmdOpenNewPageDialog?: undefined;
|
|
180
|
+
cmdOpenSettings?: undefined;
|
|
181
|
+
enableCount?: undefined;
|
|
182
|
+
enablePerformance?: undefined;
|
|
183
|
+
blockLabel?: undefined;
|
|
184
|
+
blockCustomCode?: undefined;
|
|
185
|
+
api_key?: undefined;
|
|
186
|
+
} | {
|
|
187
|
+
blockLabel: string;
|
|
188
|
+
blockCustomCode: {
|
|
189
|
+
category: string;
|
|
190
|
+
};
|
|
191
|
+
blocks?: undefined;
|
|
192
|
+
category?: undefined;
|
|
193
|
+
panels?: undefined;
|
|
194
|
+
appendTo?: undefined;
|
|
195
|
+
rootUrl?: undefined;
|
|
196
|
+
id?: undefined;
|
|
197
|
+
cmdOpenNewPageDialog?: undefined;
|
|
198
|
+
cmdOpenSettings?: undefined;
|
|
199
|
+
enableCount?: undefined;
|
|
200
|
+
enablePerformance?: undefined;
|
|
201
|
+
onError?: undefined;
|
|
202
|
+
api_key?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
appendTo: string;
|
|
205
|
+
blocks?: undefined;
|
|
206
|
+
category?: undefined;
|
|
207
|
+
panels?: undefined;
|
|
208
|
+
rootUrl?: undefined;
|
|
209
|
+
id?: undefined;
|
|
210
|
+
cmdOpenNewPageDialog?: undefined;
|
|
211
|
+
cmdOpenSettings?: undefined;
|
|
212
|
+
enableCount?: undefined;
|
|
213
|
+
enablePerformance?: undefined;
|
|
214
|
+
onError?: undefined;
|
|
215
|
+
blockLabel?: undefined;
|
|
216
|
+
blockCustomCode?: undefined;
|
|
217
|
+
api_key?: undefined;
|
|
218
|
+
} | {
|
|
219
|
+
api_key: string;
|
|
220
|
+
blocks?: undefined;
|
|
221
|
+
category?: undefined;
|
|
222
|
+
panels?: undefined;
|
|
223
|
+
appendTo?: undefined;
|
|
224
|
+
rootUrl?: undefined;
|
|
225
|
+
id?: undefined;
|
|
226
|
+
cmdOpenNewPageDialog?: undefined;
|
|
227
|
+
cmdOpenSettings?: undefined;
|
|
228
|
+
enableCount?: undefined;
|
|
229
|
+
enablePerformance?: undefined;
|
|
230
|
+
onError?: undefined;
|
|
231
|
+
blockLabel?: undefined;
|
|
232
|
+
blockCustomCode?: undefined;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
export declare function initEditor(config: any, grapesJsPlugins: any): void;
|
|
237
|
+
export declare function getEditor(): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const internalLinksPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const projectBarPlugin: (editor: any, opts: any) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const cmdPublish = "publish-open-dialog";
|
|
2
|
+
export declare const publishPlugin: any;
|
|
3
|
+
export declare function getDialogElements(): {
|
|
4
|
+
dialog: Element;
|
|
5
|
+
primary: Element;
|
|
6
|
+
secondary: Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const STATUS_NONE = "STATUS_NONE";
|
|
9
|
+
export declare const STATUS_PENDING = "STATUS_PENDING";
|
|
10
|
+
export declare const STATUS_ERROR = "STATUS_ERROR";
|
|
11
|
+
export declare const STATUS_SUCCESS = "STATUS_SUCCESS";
|
|
12
|
+
export declare let status: string;
|
|
13
|
+
export declare let open: boolean;
|
|
14
|
+
export declare function closeDialog(editor: any): Promise<void>;
|
|
15
|
+
export declare function toggleDialog(editor: any): Promise<void>;
|
|
16
|
+
export declare function openDialog(editor: any): Promise<void>;
|
|
17
|
+
export declare function startPublication(editor: any): Promise<void>;
|
|
18
|
+
export declare function trackProgress(editor: any, statusUrl: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const richTextPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const semanticPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const templatePlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function onAll(editor: any, cbk: any): void;
|