diff --git a/docs/backend_api/AbstractEntity.html b/docs/backend_api/AbstractEntity.html index 83ea380cb..2e07d3086 100644 --- a/docs/backend_api/AbstractEntity.html +++ b/docs/backend_api/AbstractEntity.html @@ -991,7 +991,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/Attribute.html b/docs/backend_api/Attribute.html index fb0796b3b..5349663eb 100644 --- a/docs/backend_api/Attribute.html +++ b/docs/backend_api/Attribute.html @@ -1904,7 +1904,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/BackendScriptApi.html b/docs/backend_api/BackendScriptApi.html index 8d0cc9b6b..ea272a14d 100644 --- a/docs/backend_api/BackendScriptApi.html +++ b/docs/backend_api/BackendScriptApi.html @@ -3667,7 +3667,7 @@ if some action needs to happen on only one specific instance. -

getNotesWithLabel(name, valueopt) → {Array.<Note>}

+

getNoteWithLabel(name, valueopt) → {Note|null}

@@ -3675,7 +3675,7 @@ if some action needs to happen on only one specific instance.
- Retrieves notes with given label name & value + Retrieves first note with given label name & value
@@ -3811,7 +3811,7 @@ if some action needs to happen on only one specific instance.
Source:
@@ -3847,7 +3847,10 @@ if some action needs to happen on only one specific instance.
-Array.<Note> +Note +| + +null
@@ -3865,7 +3868,7 @@ if some action needs to happen on only one specific instance. -

getNoteWithLabel(name, valueopt) → {Note|null}

+

getNotesWithLabel(name, valueopt) → {Array.<Note>}

@@ -3873,7 +3876,7 @@ if some action needs to happen on only one specific instance.
- Retrieves first note with given label name & value + Retrieves notes with given label name & value
@@ -4009,7 +4012,7 @@ if some action needs to happen on only one specific instance.
Source:
@@ -4045,10 +4048,7 @@ if some action needs to happen on only one specific instance.
-Note -| - -null +Array.<Note>
@@ -6437,7 +6437,7 @@ exists, then we'll use that transaction.
diff --git a/docs/backend_api/Branch.html b/docs/backend_api/Branch.html index 332b283dc..b5b4fc21b 100644 --- a/docs/backend_api/Branch.html +++ b/docs/backend_api/Branch.html @@ -1844,7 +1844,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/EtapiToken.html b/docs/backend_api/EtapiToken.html index fd90ac06e..5f7b1e1e5 100644 --- a/docs/backend_api/EtapiToken.html +++ b/docs/backend_api/EtapiToken.html @@ -1461,7 +1461,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/Note.html b/docs/backend_api/Note.html index 3c95422fc..f059e8d9b 100644 --- a/docs/backend_api/Note.html +++ b/docs/backend_api/Note.html @@ -1154,7 +1154,7 @@ See addLabel, addRelation for more specific methods.
Source:
@@ -1441,7 +1441,7 @@ See addLabel, addRelation for more specific methods.
Source:
@@ -1620,7 +1620,7 @@ returned.
Source:
@@ -1855,7 +1855,7 @@ returned.
Source:
@@ -2055,7 +2055,7 @@ returned.
Source:
@@ -2317,7 +2317,7 @@ returned.
Source:
@@ -2423,7 +2423,7 @@ returned.
Source:
@@ -2655,7 +2655,7 @@ returned. -

getAttributes(typeopt, nameopt) → {Array.<Attribute>}

+

getAttributeValue(type, name) → {string|null}

@@ -2683,8 +2683,6 @@ returned. Type - Attributes - @@ -2710,20 +2708,10 @@ returned. - - - <optional>
- - - - - - - - (optional) attribute type to filter + attribute type (label, relation, etc.) @@ -2743,20 +2731,10 @@ returned. - - - <optional>
- - - - - - - - (optional) attribute name to filter + attribute name @@ -2797,7 +2775,7 @@ returned.
Source:
@@ -2826,7 +2804,7 @@ returned.
- all note's attributes, including inherited ones + attribute value of given type and name or null if no such attribute exists.
@@ -2837,7 +2815,10 @@ returned.
-Array.<Attribute> +string +| + +null
@@ -2855,7 +2836,7 @@ returned. -

getAttributeValue(type, name) → {string|null}

+

getAttributes(typeopt, nameopt) → {Array.<Attribute>}

@@ -2883,6 +2864,8 @@ returned. Type + Attributes + @@ -2908,10 +2891,20 @@ returned. + + + <optional>
+ + + + + - attribute type (label, relation, etc.) + + + (optional) attribute type to filter @@ -2931,10 +2924,20 @@ returned. + + + <optional>
+ + + + + + + - attribute name + (optional) attribute name to filter @@ -2975,7 +2978,7 @@ returned.
Source:
@@ -3004,7 +3007,7 @@ returned.
- attribute value of given type and name or null if no such attribute exists. + all note's attributes, including inherited ones
@@ -3015,10 +3018,7 @@ returned.
-string -| - -null +Array.<Attribute>
@@ -3920,7 +3920,7 @@ returned. -

getLabels(nameopt) → {Array.<Attribute>}

+

getLabelValue(name) → {string|null}

@@ -3948,8 +3948,6 @@ returned. Type - Attributes - @@ -3975,20 +3973,10 @@ returned. - - - <optional>
- - - - - - - - label name to filter + label name @@ -4029,7 +4017,7 @@ returned.
Source:
@@ -4058,7 +4046,7 @@ returned.
- all note's labels (attributes with type label), including inherited ones + label value if label exists, null otherwise
@@ -4069,7 +4057,10 @@ returned.
-Array.<Attribute> +string +| + +null
@@ -4087,7 +4078,7 @@ returned. -

getLabelValue(name) → {string|null}

+

getLabelValues(nameopt) → {Array.<string>}

@@ -4115,6 +4106,8 @@ returned. Type + Attributes + @@ -4140,10 +4133,20 @@ returned. + + + <optional>
+ + + + + - label name + + + label name to filter @@ -4184,7 +4187,7 @@ returned.
Source:
@@ -4213,7 +4216,7 @@ returned.
- label value if label exists, null otherwise + all note's label values, including inherited ones
@@ -4224,10 +4227,7 @@ returned.
-string -| - -null +Array.<string>
@@ -4245,7 +4245,7 @@ returned. -

getLabelValues(nameopt) → {Array.<string>}

+

getLabels(nameopt) → {Array.<Attribute>}

@@ -4354,7 +4354,7 @@ returned.
Source:
@@ -4383,7 +4383,7 @@ returned.
- all note's label values, including inherited ones + all note's labels (attributes with type label), including inherited ones
@@ -4394,7 +4394,7 @@ returned.
-Array.<string> +Array.<Attribute>
@@ -4520,7 +4520,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedAttributes(typeopt, nameopt, valueopt) → {Array.<Attribute>}

+

getOwnedAttributeValue(type, name) → {string|null}

@@ -4548,8 +4548,6 @@ This method can be significantly faster than the getAttribute() Type - Attributes - @@ -4575,20 +4573,10 @@ This method can be significantly faster than the getAttribute() - - - <optional>
- - - - - - - - (optional) attribute type to filter + attribute type (label, relation, etc.) @@ -4608,53 +4596,10 @@ This method can be significantly faster than the getAttribute() - - - <optional>
- - - - - - - - (optional) attribute name to filter - - - - - - - value - - - - - -string - - - - - - - - - <optional>
- - - - - - - - - - - (optional) attribute value to filter + attribute name @@ -4695,7 +4640,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -4724,7 +4669,7 @@ This method can be significantly faster than the getAttribute()
- note's "owned" attributes - excluding inherited ones + attribute value of given type and name or null if no such attribute exists.
@@ -4735,7 +4680,10 @@ This method can be significantly faster than the getAttribute()
-Array.<Attribute> +string +| + +null
@@ -4753,7 +4701,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedAttributeValue(type, name) → {string|null}

+

getOwnedAttributes(typeopt, nameopt, valueopt) → {Array.<Attribute>}

@@ -4781,6 +4729,8 @@ This method can be significantly faster than the getAttribute() Type + Attributes + @@ -4806,10 +4756,20 @@ This method can be significantly faster than the getAttribute() + + + <optional>
+ + + + + - attribute type (label, relation, etc.) + + + (optional) attribute type to filter @@ -4829,10 +4789,53 @@ This method can be significantly faster than the getAttribute() + + + <optional>
+ + + + + + + - attribute name + (optional) attribute name to filter + + + + + + + value + + + + + +string + + + + + + + + + <optional>
+ + + + + + + + + + + (optional) attribute value to filter @@ -4873,7 +4876,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -4902,7 +4905,7 @@ This method can be significantly faster than the getAttribute()
- attribute value of given type and name or null if no such attribute exists. + note's "owned" attributes - excluding inherited ones
@@ -4913,10 +4916,7 @@ This method can be significantly faster than the getAttribute()
-string -| - -null +Array.<Attribute>
@@ -5092,7 +5092,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedLabels(nameopt) → {Array.<Attribute>}

+

getOwnedLabelValue(name) → {string|null}

@@ -5120,8 +5120,6 @@ This method can be significantly faster than the getAttribute() Type - Attributes - @@ -5147,20 +5145,10 @@ This method can be significantly faster than the getAttribute() - - - <optional>
- - - - - - - - label name to filter + label name @@ -5201,7 +5189,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -5230,7 +5218,7 @@ This method can be significantly faster than the getAttribute()
- all note's labels (attributes with type label), excluding inherited ones + label value if label exists, null otherwise
@@ -5241,7 +5229,10 @@ This method can be significantly faster than the getAttribute()
-Array.<Attribute> +string +| + +null
@@ -5259,7 +5250,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedLabelValue(name) → {string|null}

+

getOwnedLabelValues(nameopt) → {Array.<string>}

@@ -5287,6 +5278,8 @@ This method can be significantly faster than the getAttribute() Type + Attributes + @@ -5312,10 +5305,20 @@ This method can be significantly faster than the getAttribute() + + + <optional>
+ + + + + + + - label name + label name to filter @@ -5356,7 +5359,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -5385,7 +5388,7 @@ This method can be significantly faster than the getAttribute()
- label value if label exists, null otherwise + all note's label values, excluding inherited ones
@@ -5396,10 +5399,7 @@ This method can be significantly faster than the getAttribute()
-string -| - -null +Array.<string>
@@ -5417,7 +5417,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedLabelValues(nameopt) → {Array.<string>}

+

getOwnedLabels(nameopt) → {Array.<Attribute>}

@@ -5526,7 +5526,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -5555,7 +5555,7 @@ This method can be significantly faster than the getAttribute()
- all note's label values, excluding inherited ones + all note's labels (attributes with type label), excluding inherited ones
@@ -5566,7 +5566,7 @@ This method can be significantly faster than the getAttribute()
-Array.<string> +Array.<Attribute>
@@ -5742,7 +5742,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedRelations(nameopt) → {Array.<Attribute>}

+

getOwnedRelationValue(name) → {string|null}

@@ -5770,8 +5770,6 @@ This method can be significantly faster than the getAttribute() Type - Attributes - @@ -5797,20 +5795,10 @@ This method can be significantly faster than the getAttribute() - - - <optional>
- - - - - - - - relation name to filter + relation name @@ -5851,7 +5839,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -5880,7 +5868,7 @@ This method can be significantly faster than the getAttribute()
- all note's relations (attributes with type relation), excluding inherited ones + relation value if relation exists, null otherwise
@@ -5891,7 +5879,10 @@ This method can be significantly faster than the getAttribute()
-Array.<Attribute> +string +| + +null
@@ -5909,7 +5900,7 @@ This method can be significantly faster than the getAttribute() -

getOwnedRelationValue(name) → {string|null}

+

getOwnedRelations(nameopt) → {Array.<Attribute>}

@@ -5937,6 +5928,8 @@ This method can be significantly faster than the getAttribute() Type + Attributes + @@ -5962,10 +5955,20 @@ This method can be significantly faster than the getAttribute() + + + <optional>
+ + + + + + + - relation name + relation name to filter @@ -6006,7 +6009,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -6035,7 +6038,7 @@ This method can be significantly faster than the getAttribute()
- relation value if relation exists, null otherwise + all note's relations (attributes with type relation), excluding inherited ones
@@ -6046,10 +6049,7 @@ This method can be significantly faster than the getAttribute()
-string -| - -null +Array.<Attribute>
@@ -6518,7 +6518,7 @@ This method can be significantly faster than the getAttribute() -

getRelations(nameopt) → {Array.<Attribute>}

+

getRelationValue(name) → {string|null}

@@ -6546,8 +6546,6 @@ This method can be significantly faster than the getAttribute() Type - Attributes - @@ -6573,20 +6571,10 @@ This method can be significantly faster than the getAttribute() - - - <optional>
- - - - - - - - relation name to filter + relation name @@ -6627,7 +6615,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -6656,7 +6644,7 @@ This method can be significantly faster than the getAttribute()
- all note's relations (attributes with type relation), including inherited ones + relation value if relation exists, null otherwise
@@ -6667,7 +6655,10 @@ This method can be significantly faster than the getAttribute()
-Array.<Attribute> +string +| + +null
@@ -6685,7 +6676,7 @@ This method can be significantly faster than the getAttribute() -

getRelationValue(name) → {string|null}

+

getRelations(nameopt) → {Array.<Attribute>}

@@ -6713,6 +6704,8 @@ This method can be significantly faster than the getAttribute() Type + Attributes + @@ -6738,10 +6731,20 @@ This method can be significantly faster than the getAttribute() + + + <optional>
+ + + + + + + - relation name + relation name to filter @@ -6782,7 +6785,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -6811,7 +6814,7 @@ This method can be significantly faster than the getAttribute()
- relation value if relation exists, null otherwise + all note's relations (attributes with type relation), including inherited ones
@@ -6822,10 +6825,7 @@ This method can be significantly faster than the getAttribute()
-string -| - -null +Array.<Attribute>
@@ -6952,7 +6952,7 @@ This method can be significantly faster than the getAttribute() -

getSubtreeNoteIds() → {Array.<String>}

+

getSubtree() → {Object}

@@ -7000,7 +7000,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -7036,7 +7036,7 @@ This method can be significantly faster than the getAttribute()
-Array.<String> +Object
@@ -7054,7 +7054,7 @@ This method can be significantly faster than the getAttribute() -

getSubtreeNotes() → {Array.<Note>}

+

getSubtreeNoteIds() → {Array.<String>}

@@ -7102,7 +7102,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -7138,7 +7138,7 @@ This method can be significantly faster than the getAttribute()
-Array.<Note> +Array.<String>
@@ -7306,7 +7306,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -7502,7 +7502,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -8981,7 +8981,7 @@ This method can be significantly faster than the getAttribute()
Source:
@@ -9903,7 +9903,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -10083,7 +10083,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -10263,7 +10263,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -10458,7 +10458,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -10690,7 +10690,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -10870,7 +10870,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -11030,7 +11030,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -11272,7 +11272,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -11483,7 +11483,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -11694,7 +11694,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -11746,7 +11746,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/NoteRevision.html b/docs/backend_api/NoteRevision.html index f2443f927..5bb9a2eb3 100644 --- a/docs/backend_api/NoteRevision.html +++ b/docs/backend_api/NoteRevision.html @@ -2174,7 +2174,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/Option.html b/docs/backend_api/Option.html index e4764f7db..f31eaf5e9 100644 --- a/docs/backend_api/Option.html +++ b/docs/backend_api/Option.html @@ -1319,7 +1319,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/RecentNote.html b/docs/backend_api/RecentNote.html index 0b293ddae..62c311b5e 100644 --- a/docs/backend_api/RecentNote.html +++ b/docs/backend_api/RecentNote.html @@ -1251,7 +1251,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
diff --git a/docs/backend_api/becca_entities_abstract_entity.js.html b/docs/backend_api/becca_entities_abstract_entity.js.html index 58361497f..f06a0c9f1 100644 --- a/docs/backend_api/becca_entities_abstract_entity.js.html +++ b/docs/backend_api/becca_entities_abstract_entity.js.html @@ -209,7 +209,7 @@ module.exports = AbstractEntity;
diff --git a/docs/backend_api/becca_entities_attribute.js.html b/docs/backend_api/becca_entities_attribute.js.html index 7c88c09f3..76d06856f 100644 --- a/docs/backend_api/becca_entities_attribute.js.html +++ b/docs/backend_api/becca_entities_attribute.js.html @@ -254,7 +254,7 @@ module.exports = Attribute;
diff --git a/docs/backend_api/becca_entities_branch.js.html b/docs/backend_api/becca_entities_branch.js.html index fc264138a..5cf5b3d74 100644 --- a/docs/backend_api/becca_entities_branch.js.html +++ b/docs/backend_api/becca_entities_branch.js.html @@ -198,6 +198,10 @@ class Branch extends AbstractEntity { log.info("Deleting note " + note.noteId); + // marking note as deleted as a signal to event handlers that the note is being deleted + // (isDeleted is being checked against becca) + delete this.becca.notes[note.noteId]; + for (const attribute of note.getOwnedAttributes()) { attribute.markAsDeleted(deleteId); } @@ -274,7 +278,7 @@ module.exports = Branch;
diff --git a/docs/backend_api/becca_entities_etapi_token.js.html b/docs/backend_api/becca_entities_etapi_token.js.html index 72b9adef4..064d6494b 100644 --- a/docs/backend_api/becca_entities_etapi_token.js.html +++ b/docs/backend_api/becca_entities_etapi_token.js.html @@ -120,7 +120,7 @@ module.exports = EtapiToken;
diff --git a/docs/backend_api/becca_entities_note.js.html b/docs/backend_api/becca_entities_note.js.html index d50098ce1..f584efb8e 100644 --- a/docs/backend_api/becca_entities_note.js.html +++ b/docs/backend_api/becca_entities_note.js.html @@ -38,7 +38,7 @@ const AbstractEntity = require("./abstract_entity"); const NoteRevision = require("./note_revision"); const TaskContext = require("../../services/task_context"); const dayjs = require("dayjs"); -const utc = require('dayjs/plugin/utc') +const utc = require('dayjs/plugin/utc'); dayjs.extend(utc) const LABEL = 'label'; @@ -867,30 +867,81 @@ class Note extends AbstractEntity { return Array.from(set); } - /** @returns {Note[]} */ - getSubtreeNotes(includeArchived = true) { + /** + * @returns {{notes: Note[], relationships: Array.<{parentNoteId: string, childNoteId: string}>}} + */ + getSubtree({includeArchived = true, resolveSearch = false} = {}) { const noteSet = new Set(); + const relationships = []; // list of tuples parentNoteId -> childNoteId + + function resolveSearchNote(searchNote) { + try { + const searchService = require("../../services/search/services/search"); + const becca = searchNote.becca; + const {searchResultNoteIds} = searchService.searchFromNote(searchNote); + + for (const resultNoteId of searchResultNoteIds) { + const resultNote = becca.notes[resultNoteId]; + + if (resultNote) { + addSubtreeNotesInner(resultNote, searchNote); + } + } + } + catch (e) { + log.error(`Could not resolve search note ${searchNote?.noteId}: ${e.message}`); + } + } + + function addSubtreeNotesInner(note, parentNote = null) { + // share can be removed after 0.57 since it will be put under hidden + if (note.noteId === 'hidden' || note.noteId === 'share') { + return; + } + + if (parentNote) { + // this needs to happen first before noteSet check to include all clone relationships + relationships.push({ + parentNoteId: parentNote.noteId, + childNoteId: note.noteId + }); + } + + if (noteSet.has(note)) { + return; + } - function addSubtreeNotesInner(note) { if (!includeArchived && note.isArchived) { return; } noteSet.add(note); - for (const childNote of note.children) { - addSubtreeNotesInner(childNote); + if (note.type === 'search') { + if (resolveSearch) { + resolveSearchNote(note); + } + } + else { + for (const childNote of note.children) { + addSubtreeNotesInner(childNote, note); + } } } addSubtreeNotesInner(this); - return Array.from(noteSet); + return { + notes: Array.from(noteSet), + relationships + }; } /** @returns {String[]} */ - getSubtreeNoteIds(includeArchived = true) { - return this.getSubtreeNotes(includeArchived).map(note => note.noteId); + getSubtreeNoteIds({includeArchived = true, resolveSearch = false} = {}) { + return this.getSubtree({includeArchived, resolveSearch}) + .notes + .map(note => note.noteId); } getDescendantNoteIds() { @@ -1378,7 +1429,7 @@ module.exports = Note;
diff --git a/docs/backend_api/becca_entities_note_revision.js.html b/docs/backend_api/becca_entities_note_revision.js.html index f22ca3048..f82037b93 100644 --- a/docs/backend_api/becca_entities_note_revision.js.html +++ b/docs/backend_api/becca_entities_note_revision.js.html @@ -235,7 +235,7 @@ module.exports = NoteRevision;
diff --git a/docs/backend_api/becca_entities_option.js.html b/docs/backend_api/becca_entities_option.js.html index a6ab8a5e3..f63984cec 100644 --- a/docs/backend_api/becca_entities_option.js.html +++ b/docs/backend_api/becca_entities_option.js.html @@ -89,7 +89,7 @@ module.exports = Option;
diff --git a/docs/backend_api/becca_entities_recent_note.js.html b/docs/backend_api/becca_entities_recent_note.js.html index 6b3f05d15..5d6268cb2 100644 --- a/docs/backend_api/becca_entities_recent_note.js.html +++ b/docs/backend_api/becca_entities_recent_note.js.html @@ -77,7 +77,7 @@ module.exports = RecentNote;
diff --git a/docs/backend_api/global.html b/docs/backend_api/global.html index 43ea3274e..e6c91e6a8 100644 --- a/docs/backend_api/global.html +++ b/docs/backend_api/global.html @@ -1089,7 +1089,7 @@
diff --git a/docs/backend_api/index.html b/docs/backend_api/index.html index 3a8828939..afc8c4960 100644 --- a/docs/backend_api/index.html +++ b/docs/backend_api/index.html @@ -56,7 +56,7 @@
diff --git a/docs/backend_api/module-sql.html b/docs/backend_api/module-sql.html index f006a89d7..5279b0454 100644 --- a/docs/backend_api/module-sql.html +++ b/docs/backend_api/module-sql.html @@ -28,8 +28,6 @@
- -
@@ -38,6 +36,50 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + @@ -1258,7 +1300,7 @@
diff --git a/docs/backend_api/services_backend_script_api.js.html b/docs/backend_api/services_backend_script_api.js.html index f6de2455f..f2aff4847 100644 --- a/docs/backend_api/services_backend_script_api.js.html +++ b/docs/backend_api/services_backend_script_api.js.html @@ -512,7 +512,7 @@ module.exports = BackendScriptApi;
diff --git a/docs/backend_api/services_sql.js.html b/docs/backend_api/services_sql.js.html index 87a04b733..56e81262e 100644 --- a/docs/backend_api/services_sql.js.html +++ b/docs/backend_api/services_sql.js.html @@ -404,7 +404,7 @@ module.exports = {
diff --git a/docs/frontend_api/Attribute.html b/docs/frontend_api/Attribute.html index f37b6de37..2f337a101 100644 --- a/docs/frontend_api/Attribute.html +++ b/docs/frontend_api/Attribute.html @@ -844,13 +844,13 @@ and relation (representing named relationship between source and target note)
diff --git a/docs/frontend_api/Branch.html b/docs/frontend_api/Branch.html index d5b3f7327..b67be1575 100644 --- a/docs/frontend_api/Branch.html +++ b/docs/frontend_api/Branch.html @@ -1056,13 +1056,13 @@ parents.
diff --git a/docs/frontend_api/FrontendScriptApi.html b/docs/frontend_api/FrontendScriptApi.html index 793e73149..105a352d3 100644 --- a/docs/frontend_api/FrontendScriptApi.html +++ b/docs/frontend_api/FrontendScriptApi.html @@ -453,7 +453,7 @@ -

currentNote

+

NoteContextAwareWidget

@@ -472,8 +472,6 @@ - Name - Type @@ -490,13 +488,11 @@ - note - -object +NoteContextAwareWidget @@ -506,7 +502,7 @@ - where script is currently executing + @@ -545,7 +541,7 @@
Source:
@@ -563,7 +559,7 @@ -

NoteContextAwareWidget

+

NoteContextCachingWidget

@@ -651,7 +647,7 @@
Source:
@@ -669,7 +665,7 @@ -

NoteContextCachingWidget

+

TabAwareWidget

@@ -745,6 +741,8 @@ +
Deprecated:
+ @@ -757,7 +755,7 @@
Source:
@@ -775,7 +773,7 @@ -

originEntity

+

TabCachingWidget

@@ -794,8 +792,6 @@ - Name - Type @@ -812,16 +808,11 @@ - entity - -object -| - -null +NoteContextCachingWidget @@ -831,7 +822,7 @@ - whose event triggered this execution + @@ -858,6 +849,8 @@ +
Deprecated:
+ @@ -870,7 +863,7 @@
Source:
@@ -888,7 +881,7 @@ -

startNote

+

currentNote

@@ -941,7 +934,7 @@ - where script started executing + where script is currently executing @@ -980,7 +973,7 @@
Source:
@@ -998,7 +991,7 @@ -

TabAwareWidget

+

originEntity

@@ -1017,6 +1010,8 @@ + Name + Type @@ -1033,11 +1028,16 @@ + entity + -NoteContextAwareWidget +object +| + +null @@ -1047,7 +1047,7 @@ - + whose event triggered this execution @@ -1074,8 +1074,6 @@ -
Deprecated:
- @@ -1088,7 +1086,7 @@
Source:
@@ -1106,7 +1104,7 @@ -

TabCachingWidget

+

startNote

@@ -1125,6 +1123,8 @@ + Name + Type @@ -1141,11 +1141,13 @@ + note + -NoteContextCachingWidget +object @@ -1155,7 +1157,7 @@ - + where script started executing @@ -1182,8 +1184,6 @@ -
Deprecated:
- @@ -1196,7 +1196,7 @@
Source:
@@ -1542,7 +1542,7 @@
- Adds new button the the plugin area. + Adds new button to the plugin area.
@@ -8141,13 +8141,13 @@ Typical use case is when new note has been created, we should wait until it is s
diff --git a/docs/frontend_api/NoteComplement.html b/docs/frontend_api/NoteComplement.html index cb2d6501b..9238439ef 100644 --- a/docs/frontend_api/NoteComplement.html +++ b/docs/frontend_api/NoteComplement.html @@ -775,13 +775,13 @@
diff --git a/docs/frontend_api/NoteShort.html b/docs/frontend_api/NoteShort.html index fc95148b8..22a030fdb 100644 --- a/docs/frontend_api/NoteShort.html +++ b/docs/frontend_api/NoteShort.html @@ -285,7 +285,7 @@ This note's representation is used in note tree and is kept in Froca. -

children :Array.<string>

+

childToBranch :Object.<string, string>

@@ -296,7 +296,7 @@ This note's representation is used in note tree and is kept in Froca.