@im-nobsidian/core 0.19.0 → 0.20.0
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/index.d.ts +24 -3
- package/dist/index.js +494 -263
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -602,6 +602,11 @@ interface PullResult {
|
|
|
602
602
|
* 센다 — 이은 노트가 있는 볼트는 글이 같아야 잇는다. 이을 노트가 없으면 생략.
|
|
603
603
|
*/
|
|
604
604
|
readonly relinkPending?: true;
|
|
605
|
+
/**
|
|
606
|
+
* dry-run 만 — 본문을 읽지 않은 새 페이지 안의 DB 행은 세지 않았다. 받아 봐야 그 DB 가 있는지 안다. 루트 아래 · 미리 보며
|
|
607
|
+
* 읽은 본문 안의 새 DB 는 센다. 없으면 생략.
|
|
608
|
+
*/
|
|
609
|
+
readonly undiscoveredDatabases?: true;
|
|
605
610
|
/**
|
|
606
611
|
* 볼트에서 고쳐 덮어쓰지 않은 사이드카(`.notion.json`) — push 하면 고친 속성을 Notion 에 올린다(ADR-045). 없으면 생략.
|
|
607
612
|
*/
|
|
@@ -3100,6 +3105,16 @@ declare class ImageHandler {
|
|
|
3100
3105
|
private readonly downloadTimeoutMs;
|
|
3101
3106
|
constructor(vaultFs: VaultFS, attachmentFolder?: string, notionClient?: NotionClient | undefined, customFetch?: typeof globalThis.fetch, options?: MediaOptions, stateDb?: IStateDB | undefined);
|
|
3102
3107
|
private get fetchFn();
|
|
3108
|
+
/** {@link preview} 안에서 도는 중인 렌더 수 — 0 보다 크면 받은 미디어를 볼트에 쓰지 않고 상태 DB 에 적지 않는다. */
|
|
3109
|
+
private previewDepth;
|
|
3110
|
+
/**
|
|
3111
|
+
* 받기를 미리 본다(dry-run) — 미디어를 실제 pull 처럼 받아 이름(내용 해시)과 임베드를 정하되 볼트에 쓰지 않고 상태 DB 에
|
|
3112
|
+
* 적지 않는다. 받지 않고 렌더하면 미디어가 원격 주소로 남아, 받은 글을 볼트의 노트와 견줄 수 없다.
|
|
3113
|
+
*/
|
|
3114
|
+
preview<T>(run: () => Promise<T>): Promise<T>;
|
|
3115
|
+
private get previewing();
|
|
3116
|
+
/** 받은 파일을 볼트에 쓴다 — 미리 보기에서는 쓰지 않는다({@link preview}). */
|
|
3117
|
+
private writeDownload;
|
|
3103
3118
|
/** 상한 로직은 첨부 경로와 공유한다 — 한쪽만 빠뜨리지 않도록(utils/download-fetch). */
|
|
3104
3119
|
private fetchForDownload;
|
|
3105
3120
|
downloadImage(url: string, pageTitle: string): Promise<ImageDownloadResult>;
|
|
@@ -3646,6 +3661,8 @@ interface PlannedRow {
|
|
|
3646
3661
|
readonly resolution?: PlannedResolution;
|
|
3647
3662
|
/** `create` 만 — 상태 기록에 없던 같은 자리의 행 노트를 다시 잇는다(P7). 새로 받는 것으로 세지 않는다. */
|
|
3648
3663
|
readonly relink?: true;
|
|
3664
|
+
/** 다시 잇되 글이 달라 충돌로 남긴다 — `relink` 와 같이. */
|
|
3665
|
+
readonly relinkConflict?: Conflict;
|
|
3649
3666
|
}
|
|
3650
3667
|
/**
|
|
3651
3668
|
* 로컬도 고친 노트를 실제 pull 이 어떻게 처리하나 — 충돌로 남김 · 합침(merge) · 받지 않음(원격이 그대로거나
|
|
@@ -4035,11 +4052,15 @@ declare class DatabaseSyncer {
|
|
|
4035
4052
|
*/
|
|
4036
4053
|
private claimExistingRow;
|
|
4037
4054
|
/**
|
|
4038
|
-
* 상태 기록에 없던 행 노트를 이 행과 다시 잇는다(P7) —
|
|
4039
|
-
*
|
|
4040
|
-
* remote-first 는 `"write"` — 호출측이 받은 행으로 덮는다.
|
|
4055
|
+
* 상태 기록에 없던 행 노트를 이 행과 다시 잇는다(P7) — 받은 글과 견줘 {@link relinkOutcome} 대로. 잇지 않으면 null.
|
|
4056
|
+
* 원격으로 덮을 것은 `"write"` — 호출측이 받은 행으로 덮는다.
|
|
4041
4057
|
*/
|
|
4042
4058
|
private relinkExistingRow;
|
|
4059
|
+
/**
|
|
4060
|
+
* dry-run — 실제 pull 이 상태 기록에 없던 이 행 노트를 다시 잇나(P7). 받은 행을 실제 pull 처럼 렌더하되 볼트 · 상태 DB 는
|
|
4061
|
+
* 바꾸지 않고({@link ImageHandler.preview}) 견준다. 잇지 않으면 null(새 이름으로 받는다), 충돌로 남길 것이면 그 충돌.
|
|
4062
|
+
*/
|
|
4063
|
+
private plannedRowRelink;
|
|
4043
4064
|
/** 이번 받기에서 로컬 편집을 합친 행의 경로를 가져가고 비운다. */
|
|
4044
4065
|
takeMergedRows(): string[];
|
|
4045
4066
|
/**
|