orgnote-api 0.0.14 → 0.0.16

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