@silexlabs/silex 3.0.0-alpha.161 → 3.0.0-alpha.163

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.
@@ -58,7 +58,7 @@ export declare class PublicationManager {
58
58
  */
59
59
  status: PublicationStatus;
60
60
  constructor(editor: PublishableEditor, opts: PublicationManagerOptions);
61
- goLogin(connector: ConnectorData): Promise<unknown>;
61
+ goLogin(connector: ConnectorData): Promise<void>;
62
62
  goLogout(): Promise<void>;
63
63
  getPublicationData(projectData: any, siteSettings: any): Promise<PublicationData>;
64
64
  /**
@@ -1,4 +1,9 @@
1
1
  import { Editor, PluginOptions } from 'grapesjs';
2
+ /**
3
+ * Opens the Publish dialog and publishes the website.
4
+ * @param editor The editor.
5
+ */
6
+ declare function publish(editor: Editor): void;
2
7
  /**
3
8
  * Escapes the current context in this order : modal, Publish dialog, left panel.
4
9
  * If none of these are open, it selects the body.
@@ -27,9 +32,6 @@ export declare const defaultKms: {
27
32
  id: string;
28
33
  keys: string;
29
34
  handler: (editor: any) => void;
30
- options: {
31
- prevent: boolean;
32
- };
33
35
  };
34
36
  kmLayers: {
35
37
  id: string;
@@ -56,6 +58,16 @@ export declare const defaultKms: {
56
58
  keys: string;
57
59
  handler: (editor: any) => void;
58
60
  };
61
+ kmStyleManager: {
62
+ id: string;
63
+ keys: string;
64
+ handler: (editor: any) => void;
65
+ };
66
+ kmTraitsManager: {
67
+ id: string;
68
+ keys: string;
69
+ handler: (editor: any) => void;
70
+ };
59
71
  kmClosePanel: {
60
72
  id: string;
61
73
  keys: string;
@@ -66,6 +78,16 @@ export declare const defaultKms: {
66
78
  keys: string;
67
79
  handler: string;
68
80
  };
81
+ kmDuplicateSelection: {
82
+ id: string;
83
+ keys: string;
84
+ handler: string;
85
+ };
86
+ kmPublish: {
87
+ id: string;
88
+ keys: string;
89
+ handler: typeof publish;
90
+ };
69
91
  };
70
92
  export declare function keymapsPlugin(editor: Editor, opts: PluginOptions): void;
71
93
  export {};
@@ -9,5 +9,14 @@ export declare function hashString(str: string): Promise<string>;
9
9
  * @param editor The GrapesJS editor.
10
10
  */
11
11
  export declare function selectBody(editor: Editor): void;
12
+ /**
13
+ * Checks if an element is a text or input field.
14
+ * @param element The element to check.
15
+ */
12
16
  export declare function isTextOrInputField(element: HTMLElement): boolean;
17
+ /**
18
+ * Makes every word in a string start with an uppercase letter.
19
+ * @param str The string to title-case.
20
+ * @param sep The separator between words.
21
+ */
13
22
  export declare function titleCase(str: string, sep?: string): string;