siyuan 0.9.7 → 0.9.9
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/CHANGELOG.md +12 -2
- package/package.json +1 -1
- package/siyuan.d.ts +3 -1
- package/types/config.d.ts +40 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## v1.0.0 2024-05
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## v0.9.9 2024-05-14
|
|
6
|
+
|
|
7
|
+
* Update Config.d.ts
|
|
8
|
+
* [Update plugin `loaded-protyle-dynamic` parameter positon to position](https://github.com/siyuan-note/siyuan/pull/11298)
|
|
9
|
+
|
|
10
|
+
## v0.9.8 2024-04-30
|
|
11
|
+
|
|
12
|
+
* [Add `editors` to the plugin's `Custom` class](https://github.com/siyuan-note/siyuan/issues/11072)
|
|
13
|
+
* [Add `direction` to plugin method `Setting.addItem`](https://github.com/siyuan-note/siyuan/issues/11183)
|
|
14
|
+
|
|
15
|
+
## v0.9.7 2024-04-02
|
|
6
16
|
|
|
7
17
|
* [Add `global.siyuan.config` type definition](https://github.com/siyuan-note/petal/pull/27)
|
|
8
18
|
|
package/package.json
CHANGED
package/siyuan.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export interface IEventBusMap {
|
|
|
139
139
|
};
|
|
140
140
|
"loaded-protyle-dynamic": {
|
|
141
141
|
protyle: IProtyle,
|
|
142
|
-
|
|
142
|
+
position: "afterend" | "beforebegin",
|
|
143
143
|
};
|
|
144
144
|
"loaded-protyle-static": {
|
|
145
145
|
protyle: IProtyle,
|
|
@@ -236,6 +236,7 @@ export interface ICustomModel extends IModel {
|
|
|
236
236
|
data: any;
|
|
237
237
|
type: string;
|
|
238
238
|
element: HTMLElement;
|
|
239
|
+
editors: Protyle[]; // 系统内部处理快捷键等操作需要用到 https://github.com/siyuan-note/siyuan/issues/11072
|
|
239
240
|
|
|
240
241
|
init(): void;
|
|
241
242
|
|
|
@@ -586,6 +587,7 @@ export class Setting {
|
|
|
586
587
|
|
|
587
588
|
addItem(options: {
|
|
588
589
|
title: string,
|
|
590
|
+
direction?: "column" | "row"
|
|
589
591
|
description?: string,
|
|
590
592
|
actionElement?: HTMLElement,
|
|
591
593
|
createActionElement?(): HTMLElement,
|
package/types/config.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ export namespace Config {
|
|
|
265
265
|
* User interface language
|
|
266
266
|
* Same as {@link IAppearance.lang}
|
|
267
267
|
*/
|
|
268
|
-
export type TLang = "en_US" | "es_ES" | "fr_FR" | "zh_CHT" | "zh_CN";
|
|
268
|
+
export type TLang = "en_US" | "es_ES" | "fr_FR" | "zh_CHT" | "zh_CN" | "ja_JP";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* SiYuan bazaar related configuration
|
|
@@ -281,10 +281,43 @@ export namespace Config {
|
|
|
281
281
|
trust: boolean;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
/**
|
|
285
|
+
* SiYuan editor markdown related configuration
|
|
286
|
+
*/
|
|
287
|
+
interface IMarkdown {
|
|
288
|
+
/**
|
|
289
|
+
* Whether to enable the inline superscript
|
|
290
|
+
*/
|
|
291
|
+
inlineSup: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Whether to enable the inline subscript
|
|
294
|
+
*/
|
|
295
|
+
inlineSub: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Whether to enable the inline tag
|
|
298
|
+
*/
|
|
299
|
+
inlineTag: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Whether to enable the inline math
|
|
302
|
+
*/
|
|
303
|
+
inlineMath: boolean;
|
|
304
|
+
}
|
|
305
|
+
|
|
284
306
|
/**
|
|
285
307
|
* SiYuan editor related configuration
|
|
286
308
|
*/
|
|
287
309
|
export interface IEditor {
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Whether to allow to execute javascript in the HTML block
|
|
313
|
+
*/
|
|
314
|
+
allowHTMLBLockScript: boolean;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Markdown configuration
|
|
318
|
+
*/
|
|
319
|
+
markdown: IMarkdown;
|
|
320
|
+
|
|
288
321
|
/**
|
|
289
322
|
* The default number of backlinks to expand
|
|
290
323
|
*/
|
|
@@ -538,6 +571,8 @@ export namespace Config {
|
|
|
538
571
|
* The storage path of the new document created using block references
|
|
539
572
|
*/
|
|
540
573
|
refCreateSavePath: string;
|
|
574
|
+
refCreateSaveBox: string;
|
|
575
|
+
docCreateSaveBox: string;
|
|
541
576
|
/**
|
|
542
577
|
* Close the secondary confirmation when deleting a document
|
|
543
578
|
*/
|
|
@@ -1323,8 +1358,11 @@ export namespace Config {
|
|
|
1323
1358
|
appDir: string;
|
|
1324
1359
|
/**
|
|
1325
1360
|
* Boot automatically
|
|
1361
|
+
* - `0`: Do not boot automatically
|
|
1362
|
+
* - `1`: Boot automatically
|
|
1363
|
+
* - `2`: Boot automatically + Minimize UI
|
|
1326
1364
|
*/
|
|
1327
|
-
|
|
1365
|
+
autoLaunch2: number;
|
|
1328
1366
|
/**
|
|
1329
1367
|
* The absolute path of the `conf` directory of the current workspace
|
|
1330
1368
|
*/
|