orgnote-api 0.17.0 → 0.17.2
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/api.d.ts +112 -0
- package/dist/api.js +1 -0
- package/dist/encryption/__tests__/encryption-keys.d.ts +3 -0
- package/{encryption/__tests__/encryption-keys.ts → dist/encryption/__tests__/encryption-keys.js} +0 -2
- package/dist/encryption/__tests__/encryption.spec.d.ts +1 -0
- package/dist/encryption/__tests__/encryption.spec.js +287 -0
- package/dist/encryption/__tests__/note-encryption.spec.d.ts +1 -0
- package/dist/encryption/__tests__/note-encryption.spec.js +364 -0
- package/dist/encryption/encryption.d.ts +27 -0
- package/dist/encryption/encryption.js +156 -0
- package/dist/encryption/index.js +2 -0
- package/dist/encryption/note-encryption.d.ts +12 -0
- package/dist/encryption/note-encryption.js +42 -0
- package/dist/files-api.d.ts +7 -0
- package/dist/files-api.js +22 -0
- package/dist/index.js +5 -0
- package/dist/models/command.d.ts +29 -0
- package/dist/models/command.js +1 -0
- package/dist/models/completion.d.ts +22 -0
- package/dist/models/completion.js +1 -0
- package/dist/models/default-commands.d.ts +30 -0
- package/dist/models/default-commands.js +41 -0
- package/dist/models/editor.d.ts +23 -0
- package/dist/models/editor.js +1 -0
- package/dist/models/encryption.d.ts +31 -0
- package/dist/models/encryption.js +1 -0
- package/dist/models/extension.d.ts +34 -0
- package/dist/models/extension.js +1 -0
- package/dist/models/file-system.d.ts +23 -0
- package/dist/models/file-system.js +1 -0
- package/{models/index.ts → dist/models/index.d.ts} +2 -0
- package/dist/models/index.js +13 -0
- package/dist/models/modal.d.ts +10 -0
- package/dist/models/modal.js +1 -0
- package/dist/models/note.d.ts +23 -0
- package/dist/models/note.js +1 -0
- package/dist/models/sync.d.ts +34 -0
- package/dist/models/sync.js +1 -0
- package/dist/models/theme-variables.d.ts +192 -0
- package/dist/models/theme-variables.js +194 -0
- package/{models/vue-component.ts → dist/models/vue-component.d.ts} +1 -1
- package/dist/models/vue-component.js +1 -0
- package/dist/models/widget-type.d.ts +5 -0
- package/dist/models/widget-type.js +6 -0
- package/dist/models/widget.d.ts +51 -0
- package/dist/models/widget.js +1 -0
- package/dist/remote-api/api.d.ts +1525 -0
- package/{remote-api/api.ts → dist/remote-api/api.js} +246 -1149
- package/dist/remote-api/base.d.ts +66 -0
- package/{remote-api/base.ts → dist/remote-api/base.js} +13 -36
- package/dist/remote-api/common.d.ts +65 -0
- package/{remote-api/common.ts → dist/remote-api/common.js} +31 -48
- package/{remote-api/configuration.ts → dist/remote-api/configuration.d.ts} +3 -22
- package/dist/remote-api/configuration.js +95 -0
- package/dist/remote-api/index.d.ts +13 -0
- package/{remote-api/index.ts → dist/remote-api/index.js} +0 -3
- package/dist/tools/__tests__/find-files-diff.spec.d.ts +1 -0
- package/dist/tools/__tests__/find-files-diff.spec.js +110 -0
- package/dist/tools/__tests__/find-note-files-diff.spec.d.ts +1 -0
- package/dist/tools/__tests__/find-note-files-diff.spec.js +168 -0
- package/dist/tools/__tests__/get-file-name.spec.d.ts +1 -0
- package/dist/tools/__tests__/get-file-name.spec.js +14 -0
- package/dist/tools/__tests__/get-string-path.spec.d.ts +1 -0
- package/dist/tools/__tests__/get-string-path.spec.js +27 -0
- package/dist/tools/__tests__/is-gpg-encrypted.spec.d.ts +1 -0
- package/{tools/__tests__/is-gpg-encrypted.spec.ts → dist/tools/__tests__/is-gpg-encrypted.spec.js} +4 -8
- package/dist/tools/__tests__/is-org-file.spec.d.ts +1 -0
- package/dist/tools/__tests__/is-org-file.spec.js +54 -0
- package/dist/tools/__tests__/join.spec.d.ts +1 -0
- package/dist/tools/__tests__/join.spec.js +14 -0
- package/dist/tools/__tests__/read-org-files-recursively.spec.d.ts +1 -0
- package/dist/tools/__tests__/read-org-files-recursively.spec.js +51 -0
- package/dist/tools/extend-notes-files-diff.d.ts +3 -0
- package/dist/tools/extend-notes-files-diff.js +21 -0
- package/dist/tools/find-notes-files-diff.d.ts +5 -0
- package/dist/tools/find-notes-files-diff.js +108 -0
- package/dist/tools/get-file-name.d.ts +2 -0
- package/dist/tools/get-file-name.js +6 -0
- package/dist/tools/get-string-path.d.ts +1 -0
- package/dist/tools/get-string-path.js +6 -0
- package/dist/tools/index.d.ts +6 -0
- package/dist/tools/index.js +6 -0
- package/dist/tools/is-gpg-encrypted.d.ts +1 -0
- package/dist/tools/is-gpg-encrypted.js +6 -0
- package/dist/tools/is-org-file.d.ts +2 -0
- package/dist/tools/is-org-file.js +4 -0
- package/dist/tools/join.d.ts +1 -0
- package/dist/tools/join.js +3 -0
- package/dist/tools/mock-server.d.ts +1 -0
- package/dist/tools/mock-server.js +12 -0
- package/package.json +6 -14
- package/api.ts +0 -123
- package/encryption/__tests__/__snapshots__/note-encryption.spec.ts.snap +0 -231
- package/encryption/__tests__/encryption.spec.ts +0 -352
- package/encryption/__tests__/note-encryption.spec.ts +0 -425
- package/encryption/encryption.ts +0 -264
- package/encryption/note-encryption.ts +0 -77
- package/files-api.ts +0 -25
- package/models/command.ts +0 -45
- package/models/completion.ts +0 -30
- package/models/default-commands.ts +0 -44
- package/models/editor.ts +0 -27
- package/models/encryption.ts +0 -50
- package/models/extension.ts +0 -45
- package/models/modal.ts +0 -12
- package/models/note.ts +0 -26
- package/models/theme-variables.ts +0 -194
- package/models/widget-type.ts +0 -5
- package/models/widget.ts +0 -59
- package/remote-api/.gitignore +0 -4
- package/remote-api/.npmignore +0 -1
- package/remote-api/.openapi-generator/FILES +0 -8
- package/remote-api/.openapi-generator/VERSION +0 -1
- package/remote-api/.openapi-generator-ignore +0 -23
- package/remote-api/git_push.sh +0 -57
- package/tools/__tests__/find-notes-files-diff.spec.ts +0 -176
- package/tools/__tests__/get-string-path.spec.ts +0 -32
- package/tools/__tests__/is-org-file.spec.ts +0 -62
- package/tools/find-notes-files-diff.ts +0 -48
- package/tools/get-string-path.ts +0 -6
- package/tools/index.ts +0 -3
- package/tools/is-gpg-encrypted.ts +0 -6
- package/tools/is-org-file.ts +0 -7
- package/tools/mock-server.ts +0 -16
- /package/{encryption/index.ts → dist/encryption/index.d.ts} +0 -0
- /package/{index.ts → dist/index.d.ts} +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is generated by the script `collect-css-variables.js`.
|
|
3
|
+
* Do not edit it manually.
|
|
4
|
+
**/
|
|
5
|
+
export var ThemeVariable;
|
|
6
|
+
(function (ThemeVariable) {
|
|
7
|
+
ThemeVariable["red"] = "red";
|
|
8
|
+
ThemeVariable["orange"] = "orange";
|
|
9
|
+
ThemeVariable["green"] = "green";
|
|
10
|
+
ThemeVariable["teal"] = "teal";
|
|
11
|
+
ThemeVariable["yellow"] = "yellow";
|
|
12
|
+
ThemeVariable["blue"] = "blue";
|
|
13
|
+
ThemeVariable["darkBlue"] = "darkBlue";
|
|
14
|
+
ThemeVariable["magenta"] = "magenta";
|
|
15
|
+
ThemeVariable["violet"] = "violet";
|
|
16
|
+
ThemeVariable["cyan"] = "cyan";
|
|
17
|
+
ThemeVariable["darkCyan"] = "darkCyan";
|
|
18
|
+
ThemeVariable["white"] = "white";
|
|
19
|
+
ThemeVariable["bg"] = "bg";
|
|
20
|
+
ThemeVariable["bgAlt"] = "bgAlt";
|
|
21
|
+
ThemeVariable["bgAlt2"] = "bgAlt2";
|
|
22
|
+
ThemeVariable["fg"] = "fg";
|
|
23
|
+
ThemeVariable["fgAlt"] = "fgAlt";
|
|
24
|
+
ThemeVariable["base0"] = "base0";
|
|
25
|
+
ThemeVariable["base1"] = "base1";
|
|
26
|
+
ThemeVariable["base2"] = "base2";
|
|
27
|
+
ThemeVariable["base3"] = "base3";
|
|
28
|
+
ThemeVariable["base4"] = "base4";
|
|
29
|
+
ThemeVariable["base5"] = "base5";
|
|
30
|
+
ThemeVariable["base6"] = "base6";
|
|
31
|
+
ThemeVariable["base7"] = "base7";
|
|
32
|
+
ThemeVariable["base8"] = "base8";
|
|
33
|
+
})(ThemeVariable || (ThemeVariable = {}));
|
|
34
|
+
export var CSSVariable;
|
|
35
|
+
(function (CSSVariable) {
|
|
36
|
+
CSSVariable["bg"] = "bg";
|
|
37
|
+
CSSVariable["fg"] = "fg";
|
|
38
|
+
CSSVariable["dur"] = "dur";
|
|
39
|
+
CSSVariable["easyTableHeaderBackgroundColor"] = "easyTableHeaderBackgroundColor";
|
|
40
|
+
CSSVariable["easyTableHeaderFontColor"] = "easyTableHeaderFontColor";
|
|
41
|
+
CSSVariable["easyTableBodyRowBackgroundColor"] = "easyTableBodyRowBackgroundColor";
|
|
42
|
+
CSSVariable["easyTableBodyRowFontColor"] = "easyTableBodyRowFontColor";
|
|
43
|
+
CSSVariable["easyTableBodyRowHoverBackgroundColor"] = "easyTableBodyRowHoverBackgroundColor";
|
|
44
|
+
CSSVariable["easyTableFooterBackgroundColor"] = "easyTableFooterBackgroundColor";
|
|
45
|
+
CSSVariable["easyTableFooterFontColor"] = "easyTableFooterFontColor";
|
|
46
|
+
CSSVariable["easyTableBodyRowHoverFontColor"] = "easyTableBodyRowHoverFontColor";
|
|
47
|
+
CSSVariable["easyTableRowBorder"] = "easyTableRowBorder";
|
|
48
|
+
CSSVariable["easyTableBorder"] = "easyTableBorder";
|
|
49
|
+
CSSVariable["easyTableMessageFontColor"] = "easyTableMessageFontColor";
|
|
50
|
+
CSSVariable["btnFlatSize"] = "btnFlatSize";
|
|
51
|
+
CSSVariable["btnFlatBorder"] = "btnFlatBorder";
|
|
52
|
+
CSSVariable["btnFlatBorderRadius"] = "btnFlatBorderRadius";
|
|
53
|
+
CSSVariable["btnFlatBoxShadow"] = "btnFlatBoxShadow";
|
|
54
|
+
CSSVariable["btnMainColor"] = "btnMainColor";
|
|
55
|
+
CSSVariable["btnSocialSize"] = "btnSocialSize";
|
|
56
|
+
CSSVariable["btnSocialBackground"] = "btnSocialBackground";
|
|
57
|
+
CSSVariable["checkboxColor"] = "checkboxColor";
|
|
58
|
+
CSSVariable["editorFontFamily"] = "editorFontFamily";
|
|
59
|
+
CSSVariable["flexGapMd"] = "flexGapMd";
|
|
60
|
+
CSSVariable["flexGapSm"] = "flexGapSm";
|
|
61
|
+
CSSVariable["inlineCodeBackground"] = "inlineCodeBackground";
|
|
62
|
+
CSSVariable["inlineCodeFontColor"] = "inlineCodeFontColor";
|
|
63
|
+
CSSVariable["scrollBarWidth"] = "scrollBarWidth";
|
|
64
|
+
CSSVariable["scrollBarColor"] = "scrollBarColor";
|
|
65
|
+
CSSVariable["fontSizeSm"] = "fontSizeSm";
|
|
66
|
+
CSSVariable["fontSizeMd"] = "fontSizeMd";
|
|
67
|
+
CSSVariable["fontSizeLg"] = "fontSizeLg";
|
|
68
|
+
CSSVariable["headlineMargin"] = "headlineMargin";
|
|
69
|
+
CSSVariable["paragraphFontSize"] = "paragraphFontSize";
|
|
70
|
+
CSSVariable["mainFontFamily"] = "mainFontFamily";
|
|
71
|
+
CSSVariable["editorFontFamilyMain"] = "editorFontFamilyMain";
|
|
72
|
+
CSSVariable["paragraphFontFamily"] = "paragraphFontFamily";
|
|
73
|
+
CSSVariable["headlineFontFamily"] = "headlineFontFamily";
|
|
74
|
+
CSSVariable["codeFontFamily"] = "codeFontFamily";
|
|
75
|
+
CSSVariable["descriptionFontFamily"] = "descriptionFontFamily";
|
|
76
|
+
CSSVariable["descriptionFontSize"] = "descriptionFontSize";
|
|
77
|
+
CSSVariable["descriptionFontStyle"] = "descriptionFontStyle";
|
|
78
|
+
CSSVariable["descriptionFontColor"] = "descriptionFontColor";
|
|
79
|
+
CSSVariable["descriptionPadding"] = "descriptionPadding";
|
|
80
|
+
CSSVariable["codeFontSize"] = "codeFontSize";
|
|
81
|
+
CSSVariable["headlineFontWeight"] = "headlineFontWeight";
|
|
82
|
+
CSSVariable["fontColorAction"] = "fontColorAction";
|
|
83
|
+
CSSVariable["fontSm"] = "fontSm";
|
|
84
|
+
CSSVariable["fontMd"] = "fontMd";
|
|
85
|
+
CSSVariable["fontLg"] = "fontLg";
|
|
86
|
+
CSSVariable["ulFontSize"] = "ulFontSize";
|
|
87
|
+
CSSVariable["ulLineHeight"] = "ulLineHeight";
|
|
88
|
+
CSSVariable["ulFontFamily"] = "ulFontFamily";
|
|
89
|
+
CSSVariable["topBarHeight"] = "topBarHeight";
|
|
90
|
+
CSSVariable["contentMaxWidth"] = "contentMaxWidth";
|
|
91
|
+
CSSVariable["modelineHeight"] = "modelineHeight";
|
|
92
|
+
CSSVariable["modelinePadding"] = "modelinePadding";
|
|
93
|
+
CSSVariable["modelineBackground"] = "modelineBackground";
|
|
94
|
+
CSSVariable["cardBackgroundColor"] = "cardBackgroundColor";
|
|
95
|
+
CSSVariable["shadowMain"] = "shadowMain";
|
|
96
|
+
CSSVariable["sidebarWidth"] = "sidebarWidth";
|
|
97
|
+
CSSVariable["actionPaneOpenedWidth"] = "actionPaneOpenedWidth";
|
|
98
|
+
CSSVariable["footerHeight"] = "footerHeight";
|
|
99
|
+
CSSVariable["publicPreviewImageWidth"] = "publicPreviewImageWidth";
|
|
100
|
+
CSSVariable["publicPreviewImageHeight"] = "publicPreviewImageHeight";
|
|
101
|
+
CSSVariable["publicPreviewMaxHeight"] = "publicPreviewMaxHeight";
|
|
102
|
+
CSSVariable["completionItemMinHeight"] = "completionItemMinHeight";
|
|
103
|
+
CSSVariable["completionItemPadding"] = "completionItemPadding";
|
|
104
|
+
CSSVariable["completionItemMargin"] = "completionItemMargin";
|
|
105
|
+
CSSVariable["completionItemHoverBackground"] = "completionItemHoverBackground";
|
|
106
|
+
CSSVariable["completionItemHoverColor"] = "completionItemHoverColor";
|
|
107
|
+
CSSVariable["completionFloatTop"] = "completionFloatTop";
|
|
108
|
+
CSSVariable["completionBorderRadius"] = "completionBorderRadius";
|
|
109
|
+
CSSVariable["completionWidth"] = "completionWidth";
|
|
110
|
+
CSSVariable["completionMaxWidth"] = "completionMaxWidth";
|
|
111
|
+
CSSVariable["completionBorder"] = "completionBorder";
|
|
112
|
+
CSSVariable["completionBoxShadow"] = "completionBoxShadow";
|
|
113
|
+
CSSVariable["completionInputHeight"] = "completionInputHeight";
|
|
114
|
+
CSSVariable["completionContainerMargin"] = "completionContainerMargin";
|
|
115
|
+
CSSVariable["menuPadding"] = "menuPadding";
|
|
116
|
+
CSSVariable["fileUploaderBorderWidth"] = "fileUploaderBorderWidth";
|
|
117
|
+
CSSVariable["fileUploaderBorderStyle"] = "fileUploaderBorderStyle";
|
|
118
|
+
CSSVariable["fileUploaderBorderColor"] = "fileUploaderBorderColor";
|
|
119
|
+
CSSVariable["fileUploaderBg"] = "fileUploaderBg";
|
|
120
|
+
CSSVariable["fileUploaderOpacity"] = "fileUploaderOpacity";
|
|
121
|
+
CSSVariable["notePreviewLinkMaxWidth"] = "notePreviewLinkMaxWidth";
|
|
122
|
+
CSSVariable["notePreviewLinkHeight"] = "notePreviewLinkHeight";
|
|
123
|
+
CSSVariable["btnActionShadow"] = "btnActionShadow";
|
|
124
|
+
CSSVariable["btnActionBorder"] = "btnActionBorder";
|
|
125
|
+
CSSVariable["btnActionBorderColor"] = "btnActionBorderColor";
|
|
126
|
+
CSSVariable["btnActionPadding"] = "btnActionPadding";
|
|
127
|
+
CSSVariable["btnActionRadius"] = "btnActionRadius";
|
|
128
|
+
CSSVariable["btnActionFireColor"] = "btnActionFireColor";
|
|
129
|
+
CSSVariable["btnActionFireBorderColor"] = "btnActionFireBorderColor";
|
|
130
|
+
CSSVariable["btnActionMd"] = "btnActionMd";
|
|
131
|
+
CSSVariable["btnActionSm"] = "btnActionSm";
|
|
132
|
+
CSSVariable["btnActionLg"] = "btnActionLg";
|
|
133
|
+
CSSVariable["btnActionColor"] = "btnActionColor";
|
|
134
|
+
CSSVariable["btnActionBg"] = "btnActionBg";
|
|
135
|
+
CSSVariable["miniBufferBackground"] = "miniBufferBackground";
|
|
136
|
+
CSSVariable["miniBufferFontColor"] = "miniBufferFontColor";
|
|
137
|
+
CSSVariable["miniBufferBorderTop"] = "miniBufferBorderTop";
|
|
138
|
+
CSSVariable["miniBufferMaxHeight"] = "miniBufferMaxHeight";
|
|
139
|
+
CSSVariable["tagHoverBackground"] = "tagHoverBackground";
|
|
140
|
+
CSSVariable["tagHoverColor"] = "tagHoverColor";
|
|
141
|
+
CSSVariable["toolbarBorderTop"] = "toolbarBorderTop";
|
|
142
|
+
CSSVariable["toolbarHoverColor"] = "toolbarHoverColor";
|
|
143
|
+
CSSVariable["headerbarHeight"] = "headerbarHeight";
|
|
144
|
+
CSSVariable["headerbarBorderRadius"] = "headerbarBorderRadius";
|
|
145
|
+
CSSVariable["headerbarBackgroundColor"] = "headerbarBackgroundColor";
|
|
146
|
+
CSSVariable["headerbarColor"] = "headerbarColor";
|
|
147
|
+
CSSVariable["headerbarBorder"] = "headerbarBorder";
|
|
148
|
+
CSSVariable["fileItemBgHover"] = "fileItemBgHover";
|
|
149
|
+
CSSVariable["fileItemColorHover"] = "fileItemColorHover";
|
|
150
|
+
CSSVariable["fileItemHeight"] = "fileItemHeight";
|
|
151
|
+
CSSVariable["iconBtnColor"] = "iconBtnColor";
|
|
152
|
+
CSSVariable["iconBtnHoverColor"] = "iconBtnHoverColor";
|
|
153
|
+
CSSVariable["modalMaxHeight"] = "modalMaxHeight";
|
|
154
|
+
CSSVariable["modalMaxWidth"] = "modalMaxWidth";
|
|
155
|
+
CSSVariable["modalPadding"] = "modalPadding";
|
|
156
|
+
CSSVariable["blockPaddingSm"] = "blockPaddingSm";
|
|
157
|
+
CSSVariable["blockPaddingMd"] = "blockPaddingMd";
|
|
158
|
+
CSSVariable["blockPaddingLg"] = "blockPaddingLg";
|
|
159
|
+
CSSVariable["blockMarginMd"] = "blockMarginMd";
|
|
160
|
+
CSSVariable["blockMarginSm"] = "blockMarginSm";
|
|
161
|
+
CSSVariable["blockBorderRadiusMd"] = "blockBorderRadiusMd";
|
|
162
|
+
CSSVariable["blockBorderRadiusSm"] = "blockBorderRadiusSm";
|
|
163
|
+
CSSVariable["itemDefaultRadius"] = "itemDefaultRadius";
|
|
164
|
+
CSSVariable["searchIcnSize"] = "searchIcnSize";
|
|
165
|
+
CSSVariable["gapMd"] = "gapMd";
|
|
166
|
+
CSSVariable["gapSm"] = "gapSm";
|
|
167
|
+
CSSVariable["gapXs"] = "gapXs";
|
|
168
|
+
CSSVariable["srcBlockHeaderPaddingY"] = "srcBlockHeaderPaddingY";
|
|
169
|
+
CSSVariable["srcBlockFooterPaddingY"] = "srcBlockFooterPaddingY";
|
|
170
|
+
CSSVariable["srcBlockPaddingX"] = "srcBlockPaddingX";
|
|
171
|
+
CSSVariable["srcBlockPaddingY"] = "srcBlockPaddingY";
|
|
172
|
+
CSSVariable["srcBlockMarginY"] = "srcBlockMarginY";
|
|
173
|
+
CSSVariable["pagePadding"] = "pagePadding";
|
|
174
|
+
CSSVariable["editorLineHeight"] = "editorLineHeight";
|
|
175
|
+
CSSVariable["editorHeadlineLineHeight"] = "editorHeadlineLineHeight";
|
|
176
|
+
CSSVariable["editorDefaultLineHeight"] = "editorDefaultLineHeight";
|
|
177
|
+
CSSVariable["editorPaddingBottom"] = "editorPaddingBottom";
|
|
178
|
+
CSSVariable["editorCursorColor"] = "editorCursorColor";
|
|
179
|
+
CSSVariable["editorSelectionBgColor"] = "editorSelectionBgColor";
|
|
180
|
+
CSSVariable["editorSelectionColor"] = "editorSelectionColor";
|
|
181
|
+
CSSVariable["editorGutterColor"] = "editorGutterColor";
|
|
182
|
+
CSSVariable["editorGutterHoverColor"] = "editorGutterHoverColor";
|
|
183
|
+
CSSVariable["editorFoldPlaceholderColor"] = "editorFoldPlaceholderColor";
|
|
184
|
+
CSSVariable["editorActiveLineBgColor"] = "editorActiveLineBgColor";
|
|
185
|
+
CSSVariable["editorCaretColor"] = "editorCaretColor";
|
|
186
|
+
CSSVariable["orgListItemBulletMarginLeft"] = "orgListItemBulletMarginLeft";
|
|
187
|
+
CSSVariable["devicePaddingBottom"] = "devicePaddingBottom";
|
|
188
|
+
CSSVariable["graphNodeColor"] = "graphNodeColor";
|
|
189
|
+
CSSVariable["graphEdgeColor"] = "graphEdgeColor";
|
|
190
|
+
CSSVariable["graphActiveColor"] = "graphActiveColor";
|
|
191
|
+
CSSVariable["inputHeight"] = "inputHeight";
|
|
192
|
+
CSSVariable["inputLgHeight"] = "inputLgHeight";
|
|
193
|
+
CSSVariable["borderMain"] = "borderMain";
|
|
194
|
+
})(CSSVariable || (CSSVariable = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ChangeSpec } from '@codemirror/state';
|
|
2
|
+
import { EditorView } from '@codemirror/view';
|
|
3
|
+
import type { NodeType, OrgNode } from 'org-mode-ast';
|
|
4
|
+
export type EmbeddedWidget = {
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
refresh?: (...args: unknown[]) => void;
|
|
7
|
+
};
|
|
8
|
+
export interface WidgetBuilderParams {
|
|
9
|
+
wrap: HTMLElement;
|
|
10
|
+
orgNode: OrgNode;
|
|
11
|
+
rootNodeSrc: () => OrgNode;
|
|
12
|
+
onUpdateFn?: (newVal: string) => void;
|
|
13
|
+
editorView: EditorView;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type WidgetBuilder = (params: WidgetBuilderParams) => EmbeddedWidget;
|
|
17
|
+
export interface CommonEmbeddedWidget {
|
|
18
|
+
satisfied?: (orgNode: OrgNode) => boolean;
|
|
19
|
+
widgetBuilder?: WidgetBuilder;
|
|
20
|
+
viewUpdater?: (orgNode: OrgNode, newVal: string) => ViewUpdateSchema;
|
|
21
|
+
ignoreEvent?: boolean;
|
|
22
|
+
showRangeOffset?: [number, number];
|
|
23
|
+
}
|
|
24
|
+
export interface MultilineEmbeddedWidget extends CommonEmbeddedWidget {
|
|
25
|
+
widgetBuilder: WidgetBuilder;
|
|
26
|
+
suppressEdit?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type MultilineEmbeddedWidgets = {
|
|
29
|
+
[key in NodeType]?: MultilineEmbeddedWidget;
|
|
30
|
+
};
|
|
31
|
+
export type ViewUpdateSchema = ChangeSpec;
|
|
32
|
+
export interface InlineEmbeddedWidget extends CommonEmbeddedWidget {
|
|
33
|
+
classBuilder?: (orgNode: OrgNode) => string;
|
|
34
|
+
decorationType: 'mark' | 'widget' | 'replace' | 'line';
|
|
35
|
+
ignoreEditing?: boolean;
|
|
36
|
+
side?: number;
|
|
37
|
+
wrapComponent?: string;
|
|
38
|
+
inclusive?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export type InlineEmbeddedWidgets = {
|
|
41
|
+
[key in NodeType]?: InlineEmbeddedWidget;
|
|
42
|
+
};
|
|
43
|
+
export type EmbeddedWidgetBuilder = (wrap: HTMLElement, dynamicProps?: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
}) => EmbeddedWidget;
|
|
46
|
+
export type OrgLineClass = {
|
|
47
|
+
class: string | ((orgNode: OrgNode) => string);
|
|
48
|
+
};
|
|
49
|
+
export type OrgLineClasses = {
|
|
50
|
+
[key in NodeType]?: OrgLineClass;
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|