@silexlabs/silex 3.0.0-alpha.149 → 3.0.0-alpha.151

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.
@@ -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, Editor, ObjectStrings } from 'grapesjs';
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: () => ObjectStrings): ObjectStrings | undefined;
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: ObjectStrings): ObjectStrings;
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;