tw5-typed 0.3.6 → 0.3.7
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/package.json
CHANGED
|
@@ -8,28 +8,45 @@ declare module 'tiddlywiki' {
|
|
|
8
8
|
oldTitle: string,
|
|
9
9
|
newTitle: string,
|
|
10
10
|
): void;
|
|
11
|
-
addToStory(title: string, fromTitle
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
addToStory(title: string, fromTitle?: string): void;
|
|
12
|
+
/**
|
|
13
|
+
Add a new record to the top of the history stack
|
|
14
|
+
title: a title string or an array of title strings
|
|
15
|
+
fromPageRect: page coordinates of the origin of the navigation
|
|
16
|
+
*/
|
|
17
|
+
addToHistory(title: string, fromPageRect?: DOMRect): void;
|
|
18
|
+
handleNavigateEvent(event: IWidgetEvent): void;
|
|
19
|
+
handleCloseTiddlerEvent(event: IWidgetEvent): void;
|
|
20
|
+
handleCloseAllTiddlersEvent(event: IWidgetEvent): void;
|
|
21
|
+
handleCloseOtherTiddlersEvent(event: IWidgetEvent): void;
|
|
22
|
+
handleEditTiddlerEvent(event: IWidgetEvent): void;
|
|
23
|
+
handleDeleteTiddlerEvent(event: IWidgetEvent): void;
|
|
19
24
|
makeDraftTiddler(targetTitle): void;
|
|
20
25
|
generateDraftTitle(title): void;
|
|
21
|
-
handleSaveTiddlerEvent(event:
|
|
22
|
-
handleCancelTiddlerEvent(event:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
handleSaveTiddlerEvent(event: IWidgetEvent): void;
|
|
27
|
+
handleCancelTiddlerEvent(event: IWidgetEvent): void;
|
|
28
|
+
/**
|
|
29
|
+
* Create a new draft tiddler
|
|
30
|
+
* event.param can either be the title of a template tiddler, or a hashmap of fields.
|
|
31
|
+
* The title of the newly created tiddler follows these rules:
|
|
32
|
+
* * If a hashmap was used and a title field was specified, use that title
|
|
33
|
+
* * If a hashmap was used without a title field, use a default title, if necessary making it unique with a *numeric suffix
|
|
34
|
+
* * If a template tiddler was used, use the title of the template, if necessary making it unique with a *numeric suffix
|
|
35
|
+
* If a draft of the target tiddler already exists then it is reused
|
|
36
|
+
*/
|
|
37
|
+
handleNewTiddlerEvent(event: IWidgetEvent): void;
|
|
38
|
+
/**
|
|
39
|
+
* Import JSON tiddlers into a pending import tiddler
|
|
40
|
+
*/
|
|
41
|
+
handleImportTiddlersEvent(event: IWidgetEvent): void;
|
|
42
|
+
handlePerformImportEvent(event: IWidgetEvent): void;
|
|
43
|
+
handleFoldTiddlerEvent(event: IWidgetEvent): void;
|
|
44
|
+
handleFoldOtherTiddlersEvent(event: IWidgetEvent): void;
|
|
45
|
+
handleFoldAllTiddlersEvent(event: IWidgetEvent): void;
|
|
46
|
+
handleUnfoldAllTiddlersEvent(event: IWidgetEvent): void;
|
|
30
47
|
}
|
|
31
48
|
}
|
|
32
|
-
declare module '$:/core/modules/widgets/
|
|
49
|
+
declare module '$:/core/modules/widgets/navigator.js' {
|
|
33
50
|
import { NavigatorWidget } from 'tiddlywiki';
|
|
34
51
|
export { NavigatorWidget as navigator };
|
|
35
52
|
}
|