@silexlabs/silex 3.0.0-alpha.148 → 3.0.0-alpha.150
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/dist/client/client/config.d.ts +12 -0
- package/dist/client/client/publication-transformers.d.ts +3 -3
- package/dist/client/constants.d.ts +1 -0
- package/dist/client/css/admin.css +259 -194
- package/dist/client/js/main.js +45 -45
- package/dist/plugins/server/constants.d.ts +1 -0
- package/dist/plugins/server/constants.js +8 -1
- package/dist/plugins/server/constants.js.map +1 -1
- package/dist/server/constants.js +7 -1
- package/package.json +16 -16
- package/src/ts/client/config.ts +14 -0
- package/src/ts/client/grapesjs/css-props.ts +73 -27
- package/src/ts/client/grapesjs/index.ts +2 -1
- package/src/ts/client/grapesjs/settings.ts +3 -12
- package/src/ts/client/publication-transformers.test.ts +4 -4
- package/src/ts/client/publication-transformers.ts +17 -13
- package/src/ts/constants.ts +10 -0
- package/dist/plugins/server/plugins/server/AuthPlugin.d.ts +0 -1
- package/dist/plugins/server/plugins/server/AuthPlugin.js +0 -40
- package/dist/plugins/server/plugins/server/AuthPlugin.js.map +0 -1
- package/src/ts/plugins/server/AuthPlugin.ts +0 -38
|
@@ -54,6 +54,18 @@ export declare class ClientConfig extends Config {
|
|
|
54
54
|
* This is the url of the config file which is a plugin
|
|
55
55
|
*/
|
|
56
56
|
clientConfigUrl: string;
|
|
57
|
+
/**
|
|
58
|
+
* Google fonts API key, see this doc to get an API key: https://developers.google.com/fonts/docs/developer_api#APIKey
|
|
59
|
+
* @default Test key for local dev
|
|
60
|
+
*/
|
|
61
|
+
fontsApiKey: string;
|
|
62
|
+
/**
|
|
63
|
+
* Google fonts server or a free privacy-friendly drop-in replacement for Google Fonts or a proxy server to speed up the load and protect privacy
|
|
64
|
+
* @see https://github.com/coollabsio/fonts
|
|
65
|
+
* @see https://fontlay.com/
|
|
66
|
+
* @default Google Fonts
|
|
67
|
+
*/
|
|
68
|
+
fontsServerUrl: string;
|
|
57
69
|
/**
|
|
58
70
|
* Init GrapesJS config which depend on the config file properties
|
|
59
71
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, CssRule,
|
|
1
|
+
import { Component, CssRule, StyleProps, Editor } from 'grapesjs';
|
|
2
2
|
import { ClientSideFile, ClientSideFileType, Initiator, PublicationData } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for publication transformers
|
|
@@ -6,7 +6,7 @@ import { ClientSideFile, ClientSideFileType, Initiator, PublicationData } from '
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PublicationTransformer {
|
|
8
8
|
renderComponent?(component: Component, toHtml: () => string): string | undefined;
|
|
9
|
-
renderCssRule?(rule: CssRule, initialRule: () =>
|
|
9
|
+
renderCssRule?(rule: CssRule, initialRule: () => StyleProps): StyleProps | undefined;
|
|
10
10
|
transformFile?(file: ClientSideFile): ClientSideFile;
|
|
11
11
|
transformPermalink?(link: string, type: ClientSideFileType, initiator: Initiator): string;
|
|
12
12
|
transformPath?(path: string, type: ClientSideFileType): string;
|
|
@@ -26,7 +26,7 @@ export declare function renderCssRules(editor: Editor): void;
|
|
|
26
26
|
/**
|
|
27
27
|
* Transform background image url according to the transformed path of assets
|
|
28
28
|
*/
|
|
29
|
-
export declare function transformBgImage(editor: Editor, style:
|
|
29
|
+
export declare function transformBgImage(editor: Editor, style: StyleProps): StyleProps;
|
|
30
30
|
/**
|
|
31
31
|
* Transform files
|
|
32
32
|
* Exported for unit tests
|
|
@@ -28,3 +28,4 @@ export declare const API_WEBSITE_ASSET_READ = "/assets";
|
|
|
28
28
|
export declare const API_WEBSITE_ASSETS_WRITE = "/assets";
|
|
29
29
|
export declare const API_WEBSITE_META_READ = "/meta";
|
|
30
30
|
export declare const API_WEBSITE_META_WRITE = "/meta";
|
|
31
|
+
export declare let SILEX_VERSION: any;
|