diff --git a/WorkFlow Test/Workflow of new notes.canvas b/WorkFlow Test/Workflow of new notes.canvas index 2f525e6..27ba14f 100644 --- a/WorkFlow Test/Workflow of new notes.canvas +++ b/WorkFlow Test/Workflow of new notes.canvas @@ -1,23 +1,23 @@ { "nodes":[ {"id":"f9b6aa7b457906e8","type":"group","zettelflowConfig":"{\"root\":true,\"actions\":[],\"label\":\"Fleeting notes\",\"childrenHeader\":\"\",\"targetFolder\":\"zettelFlow/fleeting\"}","x":-1056,"y":-760,"width":2056,"height":1080,"color":"5","label":"Fleeting notes"}, + {"id":"81b8465370e8740c","type":"group","zettelflowConfig":"{\"root\":true,\"actions\":[],\"label\":\"Literature notes\",\"childrenHeader\":\"\"}","x":-1056,"y":400,"width":776,"height":360,"color":"2","label":"Literature notes"}, {"id":"12dbfb008a4d0b73","type":"group","zettelflowConfig":"{\"root\":false,\"actions\":[],\"label\":\"New Task\",\"childrenHeader\":\"What kind of task is this?\",\"targetFolder\":\"zettelFlow/tasks\"}","x":-80,"y":-220,"width":988,"height":480,"color":"#c18181","label":"Task notes"}, {"id":"cdeadec939256ce9","type":"group","zettelflowConfig":"{\"root\":false,\"actions\":[],\"label\":\"Idea interactions\",\"childrenHeader\":\"What do you want to add?\"}","x":1200,"y":-760,"width":562,"height":440,"color":"3","label":"Idea interactions"}, - {"id":"81b8465370e8740c","type":"group","zettelflowConfig":"{\"root\":true,\"actions\":[],\"label\":\"Literature notes\",\"childrenHeader\":\"\"}","x":-1056,"y":400,"width":776,"height":360,"color":"2","label":"Literature notes"}, + {"id":"def2c3bfe7f9afdf","type":"text","text":"# Social Events\n- Add a description of the event\n- Select the date","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"key\":\"description\",\"label\":\"Description\",\"placeholder\":\"Write a description for the event\",\"hasUI\":true,\"description\":\"Description of the event\",\"id\":\"34e07b65-1be9-45af-81de-755f1334e474\"},{\"type\":\"calendar\",\"key\":\"eventDate\",\"label\":\"Date of the event\",\"hasUI\":true,\"description\":\"Event Date\",\"id\":\"195612f5-af95-4373-9883-e038cbac155d\"}],\"label\":\"Social event (multi action)\",\"childrenHeader\":\"\",\"targetFolder\":\"zettelFlow/fleeting/events\"}","x":-67,"y":-521,"width":559,"height":128,"color":"4"}, + {"id":"029fd58cea9b4303","type":"file","file":"WorkFlow Test/root/Meeting Note.md","x":-67,"y":-680,"width":561,"height":120,"color":"6"}, + {"id":"88d26d97e439fe01","type":"text","text":"# Multimedia learning","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"Link to multimedia resource\",\"key\":\"multimedia\",\"label\":\"Prompt for Multimedia Link\",\"zone\":\"frontmatter\",\"hasUI\":true,\"id\":\"372b20c2-cb70-4d34-9313-be75a09988ad\",\"description\":\"Multimedia action\"}],\"label\":\"multimedia\",\"childrenHeader\":\"\"}","x":494,"y":-19,"width":346,"height":113,"color":"2"}, + {"id":"a35ac0726aca8026","type":"text","text":"# Add a purpose\n- Include into the frontmatter the purpose of your idea","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"write the purpose of your note here...\",\"key\":\"purpose\",\"label\":\"Purpose of your note\",\"zone\":\"frontmatter\",\"hasUI\":true,\"id\":\"0c14429f-9a74-4bc8-9ae1-7e5367414a0e\",\"description\":\"Purpose of the note\"}],\"label\":\"Add purpose (frontmatter)\",\"childrenHeader\":\"\",\"optional\":true}","x":1306,"y":-540,"width":350,"height":165,"color":"#108457"}, {"id":"c7ead17ed0de7735","type":"text","text":"## Daily note actions\nRun Scripts to empowering the Daily template","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"hasUI\":true,\"id\":\"34bd979a-2eb5-4da5-9b92-0b340f778239\",\"description\":\"Real hours last day\",\"key\":\"realWorkingHours\",\"label\":\"Real working hours\",\"placeholder\":\"How many hours do your work the last day?\",\"zone\":\"context\"},{\"type\":\"selector\",\"hasUI\":true,\"id\":\"37ba8eaa-c992-495a-863d-5587e3436672\",\"description\":\"Goals Achieved last day\",\"key\":\"goalsAchieved\",\"label\":\"Goals achieved the last day\",\"options\":[[\"false\",\"No\"],[\"true\",\"Yes\"]],\"defaultOption\":\"false\",\"zone\":\"context\"},{\"type\":\"script\",\"hasUI\":false,\"description\":\"set title\",\"code\":\"const today = moment().format(\\\"YYYY-MM-DD\\\");\\ncontext.today = today;\\nnote.setTitle(today);\\ncontent.modify(\\\"today\\\",today);\\n\\nconst nextDay = moment().add(1,'days').format(\\\"YYYY-MM-DD\\\");\\ncontent.modify(\\\"nextDay\\\",nextDay);\",\"id\":\"42ce77f6-7802-4a98-893f-78492a2cda37\"},{\"type\":\"script\",\"hasUI\":false,\"description\":\"find notes to archive\",\"code\":\"const currentFolder = app.vault.getAbstractFileByPath(note.getTargetFolder());\\ncontext.currentYearString = new Date().getFullYear().toString();\\n// Obtain all the notes of the folder (not recursive folders)\\ncontext.notesToArchive = currentFolder.children\\n .filter(a => a.basename!==undefined)\\n .sort((a,b) => b.basename.localeCompare(a.basename));\\ncontext.FOLDER_REGEX =/\\\\/[^\\\\/]+$/;\",\"id\":\"2d56c6e3-408f-430f-9867-0444243379cf\"},{\"type\":\"script\",\"hasUI\":false,\"id\":\"8da35c9f-bd25-4f7a-924d-b37a77b2aa54\",\"description\":\"Edit last day note\",\"code\":\"if(context.notesToArchive.length>0){\\n const lastDayFile = context.notesToArchive.first();\\n content.modify(\\\"previousDay\\\",lastDayFile.basename);\\n await app.fileManager\\n .processFrontMatter(lastDayFile, (frontmatter) => {\\n frontmatter.realWorkingHours=context.realWorkingHours;\\nfrontmatter.goalsAchieved=context.goalsAchieved;\\n});\\n let lastDayContent = await app.vault.read(lastDayFile);\\n const NEXT_DAY_REGEX = /\\\\[\\\\[\\\\d{4}-\\\\d{2}-\\\\d{2}\\\\|Next day\\\\]\\\\]/;\\n lastDayContent = lastDayContent.replaceAll(new RegExp(NEXT_DAY_REGEX, 'g'),`[[${context.today}|Next day]]`);\\n await app.vault.modify(lastDayFile,lastDayContent);\\n}else{\\n content.modify(\\n \\\"previousDay\\\",\\n moment().subtract(1, \\\"days\\\").format(\\\"YYYY-MM-DD\\\")\\n );\\n}\"},{\"type\":\"script\",\"hasUI\":false,\"description\":\"archive notes\",\"code\":\"const baseFolder = note.getTargetFolder()+\\\"/\\\"+context.currentYearString;\\n// Create the folder if it does not exist\\nif (!await app.vault.adapter.exists(baseFolder)) {\\n await app.vault.createFolder(baseFolder);\\n}\\n\\n// func to be called on loop\\nasync function archiveFiles(abstractFile){\\n\\tconst currentPathFolder = \\n abstractFile.path.replace(context.FOLDER_REGEX, '');\\n\\tconst destinationPath = currentPathFolder + \\\"/\\\" + context.currentYearString + \\\"/\\\" \\n + abstractFile.basename + \\\".\\\" + abstractFile.extension;\\n\\tapp.vault.rename(\\n\\t abstractFile,\\n\\t destinationPath\\n\\t);\\n}\\n\\ncontext.notesToArchive\\n .forEach(\\n\\tfile => archiveFiles(file)\\n);\",\"id\":\"c4161508-2372-469e-9f24-c14445e0438f\"}],\"label\":\"daily actions\",\"childrenHeader\":\"\",\"targetFolder\":\"Daily\"}","x":-720,"y":-960,"width":360,"height":116}, + {"id":"98c25f3516181d5b","type":"file","file":"WorkFlow Test/root/Daily Note.md","x":-960,"y":-680,"width":839,"height":940,"color":"3"}, {"id":"6f97c91bece56e3c","type":"file","file":"WorkFlow Test/ZettelFlow scripts/Integrated Script.js","x":-1020,"y":465,"width":400,"height":77}, - {"id":"c0372c42be0e9229","type":"text","text":"## actions for literature \nembed actions!","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"write the purpose of your note here...\",\"key\":\"purpose\",\"label\":\"Purpose of your note\",\"zone\":\"frontmatter\",\"hasUI\":true,\"description\":\"Purpose of the note\",\"id\":\"658e1332-5247-4f9a-b841-859813516d27\"}],\"label\":\"Embed info\",\"childrenHeader\":\"\",\"optional\":true}","x":-1020,"y":620,"width":400,"height":91,"color":"#bc7171"}, - {"id":"8e3bcace76cc69dd","type":"text","text":"## External Scripts","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"script\",\"hasUI\":false,\"id\":\"6fac8215-8254-4772-a490-a1c027e7b209\",\"description\":\"lab external\",\"code\":\"const {tp,dv} = zf.external;\\n// Templater integration\\ntp.user.labExternal();\\n\\n// Dataview Integration;\\nconst myPage = dv.page(\\\"Daily/2023-12-04.md\\\");\\nconsole.log(myPage);\"},{\"type\":\"script\",\"hasUI\":false,\"id\":\"8ddf54ad-1177-4741-b8f6-573638899ffc\",\"description\":\"lab internal\",\"code\":\"// Custom Script\\nzf.internal.user.customScript()\"}],\"label\":\"external scripts\",\"childrenHeader\":\"\"}","x":-580,"y":542,"width":250,"height":78}, - {"id":"a35ac0726aca8026","type":"text","text":"# Add a purpose\n- Include into the frontmatter the purpose of your idea","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"write the purpose of your note here...\",\"key\":\"purpose\",\"label\":\"Purpose of your note\",\"zone\":\"frontmatter\",\"hasUI\":true,\"id\":\"0c14429f-9a74-4bc8-9ae1-7e5367414a0e\",\"description\":\"Purpose of the note\"}],\"label\":\"Add purpose (frontmatter)\",\"childrenHeader\":\"\",\"optional\":true}","x":1306,"y":-540,"width":350,"height":165,"color":"#108457"}, {"id":"2e358bab4f00e48e","type":"text","text":"# Configurable tags\n- Include tags dynamically","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"tags\",\"description\":\"Add tags to the note\",\"hasUI\":true,\"id\":\"bdb5a2d8-5ae2-48f2-8bd5-1e4ebf9fc179\"}],\"label\":\"Add tags\",\"childrenHeader\":\"\"}","x":1296,"y":-707,"width":360,"height":128,"color":"#546d37"}, {"id":"a3722ef8121b6d53","type":"text","text":"# Idea note\nSave whats in your mind!\n","zettelflowConfig":"{\"root\":false,\"actions\":[],\"label\":\"new idea\",\"childrenHeader\":\"\",\"targetFolder\":\"zettelFlow/fleeting/ideas\"}","x":621,"y":-600,"width":290,"height":120}, - {"id":"def2c3bfe7f9afdf","type":"text","text":"# Social Events\n- Add a description of the event\n- Select the date","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"key\":\"description\",\"label\":\"Description\",\"placeholder\":\"Write a description for the event\",\"hasUI\":true,\"description\":\"Description of the event\",\"id\":\"34e07b65-1be9-45af-81de-755f1334e474\"},{\"type\":\"calendar\",\"key\":\"eventDate\",\"label\":\"Date of the event\",\"hasUI\":true,\"description\":\"Event Date\",\"id\":\"195612f5-af95-4373-9883-e038cbac155d\"}],\"label\":\"Social event (multi action)\",\"childrenHeader\":\"\",\"targetFolder\":\"zettelFlow/fleeting/events\"}","x":-67,"y":-521,"width":559,"height":128,"color":"4"}, - {"id":"029fd58cea9b4303","type":"file","file":"WorkFlow Test/root/Meeting Note.md","x":-67,"y":-680,"width":561,"height":120,"color":"6"}, - {"id":"395caef76361b9be","type":"text","text":"# Lab for static values\n- [x] Calendar\n\t- [x] date\n\t- [x] time\n- [x] Text\n- [ ] selector\n- [x] Number\n- [x] Checkbox\n- [ ] List\n- [x] Tags\n- [x] cssClasses","zettelflowConfig":"{\"root\":true,\"actions\":[{\"type\":\"calendar\",\"hasUI\":false,\"id\":\"27763864-cac2-45b6-812d-09a2df46d54d\",\"description\":\"Static date\",\"key\":\"staticDate\",\"label\":\"Static Date\",\"staticBehaviour\":true,\"enableTime\":false,\"staticValue\":\"2024-01-18\"},{\"type\":\"calendar\",\"hasUI\":false,\"id\":\"fa5564f3-0e61-47d4-a5e3-5f8a5ae8e09b\",\"description\":\"Static time\",\"key\":\"staticTime\",\"enableTime\":true,\"staticBehaviour\":true,\"staticValue\":\"2024-01-25T08:48\",\"label\":\"Static Time\"},{\"type\":\"prompt\",\"hasUI\":false,\"id\":\"612177b2-c0ba-46b7-960c-c8230af50f3d\",\"description\":\"Static text\",\"key\":\"staticText\",\"staticBehaviour\":true,\"staticValue\":\"Static value!\",\"label\":\"Static text\",\"placeholder\":\"write your text here...\"},{\"type\":\"checkbox\",\"hasUI\":false,\"id\":\"d9454699-7117-46cf-b806-153e3ca54f8d\",\"description\":\"Static checkbox\",\"key\":\"staticCheckbox\",\"label\":\"Static checkbox\",\"staticBehaviour\":true,\"staticValue\":true,\"zone\":\"frontmatter\"},{\"type\":\"tags\",\"description\":\"Static tag\",\"hasUI\":false,\"id\":\"22345452-4a8e-4c14-8be4-634b5cef03e5\",\"staticBehaviour\":true,\"staticValue\":[\"task\",\"zettelkasten/literature\",\"zettelkasten/fleeting\",\"zettelkasten\"]},{\"type\":\"cssclasses\",\"description\":\"Static css classes\",\"hasUI\":false,\"id\":\"8b6c10a5-b860-4f68-adb6-b4f0a952c4eb\",\"staticBehaviour\":true}],\"label\":\"Static values lab\",\"childrenHeader\":\"\"}","x":-200,"y":400,"width":640,"height":400}, - {"id":"98c25f3516181d5b","type":"file","file":"WorkFlow Test/root/Daily Note.md","x":-960,"y":-680,"width":839,"height":940,"color":"3"}, - {"id":"88d26d97e439fe01","type":"text","text":"# Multimedia learning","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"Link to multimedia resource\",\"key\":\"multimedia\",\"label\":\"Prompt for Multimedia Link\",\"zone\":\"frontmatter\",\"hasUI\":true,\"id\":\"372b20c2-cb70-4d34-9313-be75a09988ad\",\"description\":\"Multimedia action\"}],\"label\":\"multimedia\",\"childrenHeader\":\"\"}","x":494,"y":-19,"width":346,"height":113,"color":"2"}, - {"id":"b8991eb3391f9bd2","type":"text","text":"# Dynamic values\n- [x] Calendar\n\t- [x] date\n\t- [x] time\n- [x] Text\n- [x] Selector\n- [x] Number\n- [x] Checkbox\n- [ ] List\n- [x] Tags\n- [x] cssClasses","zettelflowConfig":"{\"root\":true,\"actions\":[{\"type\":\"prompt\",\"hasUI\":true,\"id\":\"612177b2-c0ba-46b7-960c-c8230af50f3d\",\"description\":\"Variable text\",\"key\":\"variableText\",\"staticBehaviour\":false,\"label\":\"Variable text\",\"placeholder\":\"write your text here...\"},{\"type\":\"number\",\"hasUI\":true,\"id\":\"8d20bf2b-6a40-4dcc-8110-0bdf8713b777\",\"description\":\"Variable number\",\"key\":\"variableNumber\",\"label\":\"Variable number\",\"placeholder\":\"type here your variable number\",\"staticBehaviour\":false},{\"type\":\"selector\",\"hasUI\":true,\"id\":\"055c269e-6ca9-4252-b60d-5a98cf9eff59\",\"zone\":\"frontmatter\",\"description\":\"Variable selector\",\"key\":\"variableSelector\",\"label\":\"Variable selector\",\"options\":[[\"dynamicValue1\",\"Dynamic value 1\"],[\"dynamycValue2\",\"Dynamic value 2\"],[\"dynamicValue3\",\"Dynamic Value 3\"]],\"defaultOption\":\"dynamicValue1\"},{\"type\":\"checkbox\",\"hasUI\":true,\"id\":\"d9454699-7117-46cf-b806-153e3ca54f8d\",\"description\":\"Variable checkbox\",\"key\":\"variableCheckbox\",\"label\":\"Variable checkbox\",\"staticBehaviour\":false,\"zone\":\"frontmatter\"},{\"type\":\"calendar\",\"hasUI\":true,\"id\":\"27763864-cac2-45b6-812d-09a2df46d54d\",\"description\":\"Variable date\",\"key\":\"variableDate\",\"label\":\"Variable Date\",\"staticBehaviour\":false,\"enableTime\":false},{\"type\":\"calendar\",\"hasUI\":true,\"id\":\"fa5564f3-0e61-47d4-a5e3-5f8a5ae8e09b\",\"description\":\"Variable time\",\"key\":\"variableTime\",\"enableTime\":true,\"staticBehaviour\":false,\"label\":\"variable Time\"},{\"type\":\"tags\",\"description\":\"Variable tag\",\"hasUI\":true,\"id\":\"22345452-4a8e-4c14-8be4-634b5cef03e5\",\"staticBehaviour\":false},{\"type\":\"cssclasses\",\"description\":\"Variable css classes\",\"hasUI\":true,\"id\":\"8b6c10a5-b860-4f68-adb6-b4f0a952c4eb\",\"staticBehaviour\":false}],\"label\":\"Dynamic values lab\",\"childrenHeader\":\"\"}","x":494,"y":400,"width":506,"height":400}, - {"id":"319d7d9795cfd714","type":"file","file":"WorkFlow Test/actions/multi/Task required info.md","x":-10,"y":-105,"width":450,"height":226,"color":"2"} + {"id":"319d7d9795cfd714","type":"file","file":"WorkFlow Test/actions/multi/Task required info.md","x":-10,"y":-105,"width":450,"height":226,"color":"2"}, + {"id":"c0372c42be0e9229","type":"text","text":"## actions for literature \nembed actions!","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"prompt\",\"placeholder\":\"write the purpose of your note here...\",\"key\":\"purpose\",\"label\":\"Purpose of your note\",\"zone\":\"frontmatter\",\"hasUI\":true,\"description\":\"Purpose of the note\",\"id\":\"658e1332-5247-4f9a-b841-859813516d27\"}],\"label\":\"Embed info\",\"childrenHeader\":\"\",\"optional\":true}","x":-1020,"y":620,"width":400,"height":91,"color":"#bc7171"}, + {"id":"8e3bcace76cc69dd","type":"text","text":"## External Scripts","zettelflowConfig":"{\"root\":false,\"actions\":[{\"type\":\"script\",\"hasUI\":false,\"id\":\"6fac8215-8254-4772-a490-a1c027e7b209\",\"description\":\"lab external\",\"code\":\"const {tp,dv} = zf.external;\\n// Templater integration\\ntp.user.labExternal();\\n\\n// Dataview Integration;\\nconst myPage = dv.page(\\\"Daily/2023-12-04.md\\\");\\nconsole.log(myPage);\"},{\"type\":\"script\",\"hasUI\":false,\"id\":\"8ddf54ad-1177-4741-b8f6-573638899ffc\",\"description\":\"lab internal\",\"code\":\"// Custom Script\\nzf.internal.user.customScript()\"}],\"label\":\"external scripts\",\"childrenHeader\":\"\"}","x":-580,"y":542,"width":250,"height":78}, + {"id":"b8991eb3391f9bd2","type":"text","text":"# Dynamic values\n- [x] Calendar\n\t- [x] date\n\t- [x] time\n- [x] Text\n- [x] Selector\n- [x] Number\n- [x] Checkbox\n- [ ] List\n- [x] Tags\n- [x] cssClasses","zettelflowConfig":"{\"root\":true,\"actions\":[{\"type\":\"prompt\",\"hasUI\":true,\"id\":\"612177b2-c0ba-46b7-960c-c8230af50f3d\",\"description\":\"Variable text\",\"key\":\"variableText\",\"staticBehaviour\":false,\"label\":\"Variable text\",\"placeholder\":\"write your text here...\"},{\"type\":\"number\",\"hasUI\":true,\"id\":\"8d20bf2b-6a40-4dcc-8110-0bdf8713b777\",\"description\":\"Variable number\",\"key\":\"variableNumber\",\"label\":\"Variable number\",\"placeholder\":\"type here your variable number\",\"staticBehaviour\":false},{\"type\":\"selector\",\"hasUI\":true,\"id\":\"055c269e-6ca9-4252-b60d-5a98cf9eff59\",\"zone\":\"frontmatter\",\"description\":\"Variable selector\",\"key\":\"variableSelector\",\"label\":\"Variable selector\",\"options\":[[\"dynamicValue1\",\"Dynamic value 1\"],[\"dynamycValue2\",\"Dynamic value 2\"],[\"dynamicValue3\",\"Dynamic Value 3\"]],\"defaultOption\":\"dynamicValue1\"},{\"type\":\"checkbox\",\"hasUI\":true,\"id\":\"d9454699-7117-46cf-b806-153e3ca54f8d\",\"description\":\"Variable checkbox\",\"key\":\"variableCheckbox\",\"label\":\"Variable checkbox\",\"staticBehaviour\":false,\"zone\":\"frontmatter\"},{\"type\":\"calendar\",\"hasUI\":true,\"id\":\"27763864-cac2-45b6-812d-09a2df46d54d\",\"description\":\"Variable date\",\"key\":\"variableDate\",\"label\":\"Variable Date\",\"staticBehaviour\":false,\"enableTime\":false,\"format\":\"DD-MM-YYYY\"},{\"type\":\"calendar\",\"hasUI\":true,\"id\":\"fa5564f3-0e61-47d4-a5e3-5f8a5ae8e09b\",\"description\":\"Variable time\",\"key\":\"variableTime\",\"enableTime\":true,\"staticBehaviour\":false,\"label\":\"variable Time\"},{\"type\":\"tags\",\"description\":\"Variable tag\",\"hasUI\":true,\"id\":\"22345452-4a8e-4c14-8be4-634b5cef03e5\",\"staticBehaviour\":false},{\"type\":\"cssclasses\",\"description\":\"Variable css classes\",\"hasUI\":true,\"id\":\"8b6c10a5-b860-4f68-adb6-b4f0a952c4eb\",\"staticBehaviour\":false}],\"label\":\"Dynamic values lab\",\"childrenHeader\":\"\"}","x":494,"y":400,"width":506,"height":400}, + {"id":"395caef76361b9be","type":"text","text":"# Lab for static values\n- [x] Calendar\n\t- [x] date\n\t- [x] time\n- [x] Text\n- [ ] selector\n- [x] Number\n- [x] Checkbox\n- [ ] List\n- [x] Tags\n- [x] cssClasses","zettelflowConfig":"{\"root\":true,\"actions\":[{\"type\":\"calendar\",\"hasUI\":false,\"id\":\"27763864-cac2-45b6-812d-09a2df46d54d\",\"description\":\"Static date\",\"key\":\"staticDate\",\"label\":\"Static Date\",\"staticBehaviour\":true,\"enableTime\":false,\"staticValue\":\"2024-01-18\"},{\"type\":\"calendar\",\"hasUI\":false,\"id\":\"fa5564f3-0e61-47d4-a5e3-5f8a5ae8e09b\",\"description\":\"Static time\",\"key\":\"staticTime\",\"enableTime\":true,\"staticBehaviour\":true,\"staticValue\":\"2024-01-25T08:48\",\"label\":\"Static Time\"},{\"type\":\"prompt\",\"hasUI\":false,\"id\":\"612177b2-c0ba-46b7-960c-c8230af50f3d\",\"description\":\"Static text\",\"key\":\"staticText\",\"staticBehaviour\":true,\"staticValue\":\"Static value!\",\"label\":\"Static text\",\"placeholder\":\"write your text here...\"},{\"type\":\"checkbox\",\"hasUI\":false,\"id\":\"d9454699-7117-46cf-b806-153e3ca54f8d\",\"description\":\"Static checkbox\",\"key\":\"staticCheckbox\",\"label\":\"Static checkbox\",\"staticBehaviour\":true,\"staticValue\":true,\"zone\":\"frontmatter\"},{\"type\":\"tags\",\"description\":\"Static tag\",\"hasUI\":false,\"id\":\"22345452-4a8e-4c14-8be4-634b5cef03e5\",\"staticBehaviour\":true,\"staticValue\":[\"task\",\"zettelkasten/literature\",\"zettelkasten/fleeting\",\"zettelkasten\"]},{\"type\":\"cssclasses\",\"description\":\"Static css classes\",\"hasUI\":false,\"id\":\"8b6c10a5-b860-4f68-adb6-b4f0a952c4eb\",\"staticBehaviour\":true}],\"label\":\"Static values lab\",\"childrenHeader\":\"\"}","x":-200,"y":400,"width":640,"height":400} ], "edges":[ {"id":"33823787b848177c","fromNode":"98c25f3516181d5b","fromSide":"top","toNode":"c7ead17ed0de7735","toSide":"bottom","color":"5"}, diff --git a/manifest.json b/manifest.json index c1568ff..28ac551 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "zettelflow", "name": "ZettelFlow", - "version": "2.3.0", + "version": "2.3.1", "minAppVersion": "1.4.11", "description": "Helps you to create and manage your notes in a Zettelkasten way via Canvas.", "author": "RafaelGB", diff --git a/package-lock.json b/package-lock.json index 15e9635..3ac6bfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zettelflow", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "zettelflow", - "version": "2.3.0", + "version": "2.3.1", "license": "MIT", "dependencies": { "@popperjs/core": "2.11.8", @@ -15,21 +15,21 @@ "uuid": "9.0.1" }, "devDependencies": { - "@types/node": "20.11.19", - "@types/react": "18.2.56", + "@types/node": "20.11.20", + "@types/react": "18.2.58", "@types/react-dom": "18.2.19", "@types/uuid": "9.0.8", - "@typescript-eslint/eslint-plugin": "7.0.1", - "@typescript-eslint/parser": "7.0.1", + "@typescript-eslint/eslint-plugin": "7.0.2", + "@typescript-eslint/parser": "7.0.2", "builtin-modules": "3.3.0", "codemirror": "6.0.1", - "esbuild": "0.20.0", - "esbuild-sass-plugin": "3.0.0", + "esbuild": "0.20.1", + "esbuild-sass-plugin": "3.1.0", "eslint": "8.56.0", "eslint-plugin-react": "7.33.2", "jest": "29.7.0", - "obsidian": "1.4.11", - "sass": "1.71.0", + "obsidian": "1.5.7-1", + "sass": "1.71.1", "ts-jest": "29.1.2", "tslib": "2.6.2", "typescript": "5.3.3", @@ -663,7 +663,8 @@ "version": "1.7.2", "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.7.2.tgz", "integrity": "sha512-i5GE2Dk5ekdlK1TR7SugY4LWRrKSfb5T1Qn4unpIMbfxoeGKERKQ59HG3iYewacGD10SR7UzevfPnh6my4tNmQ==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@codemirror/autocomplete": { "version": "6.11.1", @@ -749,9 +750,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", - "integrity": "sha512-fGFDEctNh0CcSwsiRPxiaqX0P5rq+AqE0SRhYGZ4PX46Lg1FNR6oCxJghf8YgY0WQEgQuh3lErUFE4KxLeRmmw==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.1.tgz", + "integrity": "sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA==", "cpu": [ "ppc64" ], @@ -765,9 +766,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.0.tgz", - "integrity": "sha512-3bMAfInvByLHfJwYPJRlpTeaQA75n8C/QKpEaiS4HrFWFiJlNI0vzq/zCjBrhAYcPyVPG7Eo9dMrcQXuqmNk5g==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.1.tgz", + "integrity": "sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw==", "cpu": [ "arm" ], @@ -781,9 +782,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.0.tgz", - "integrity": "sha512-aVpnM4lURNkp0D3qPoAzSG92VXStYmoVPOgXveAUoQBWRSuQzt51yvSju29J6AHPmwY1BjH49uR29oyfH1ra8Q==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.1.tgz", + "integrity": "sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A==", "cpu": [ "arm64" ], @@ -797,9 +798,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.0.tgz", - "integrity": "sha512-uK7wAnlRvjkCPzh8jJ+QejFyrP8ObKuR5cBIsQZ+qbMunwR8sbd8krmMbxTLSrDhiPZaJYKQAU5Y3iMDcZPhyQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.1.tgz", + "integrity": "sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA==", "cpu": [ "x64" ], @@ -813,9 +814,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.0.tgz", - "integrity": "sha512-AjEcivGAlPs3UAcJedMa9qYg9eSfU6FnGHJjT8s346HSKkrcWlYezGE8VaO2xKfvvlZkgAhyvl06OJOxiMgOYQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.1.tgz", + "integrity": "sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA==", "cpu": [ "arm64" ], @@ -829,9 +830,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.0.tgz", - "integrity": "sha512-bsgTPoyYDnPv8ER0HqnJggXK6RyFy4PH4rtsId0V7Efa90u2+EifxytE9pZnsDgExgkARy24WUQGv9irVbTvIw==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.1.tgz", + "integrity": "sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA==", "cpu": [ "x64" ], @@ -845,9 +846,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.0.tgz", - "integrity": "sha512-kQ7jYdlKS335mpGbMW5tEe3IrQFIok9r84EM3PXB8qBFJPSc6dpWfrtsC/y1pyrz82xfUIn5ZrnSHQQsd6jebQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.1.tgz", + "integrity": "sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw==", "cpu": [ "arm64" ], @@ -861,9 +862,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.0.tgz", - "integrity": "sha512-uG8B0WSepMRsBNVXAQcHf9+Ko/Tr+XqmK7Ptel9HVmnykupXdS4J7ovSQUIi0tQGIndhbqWLaIL/qO/cWhXKyQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.1.tgz", + "integrity": "sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg==", "cpu": [ "x64" ], @@ -877,9 +878,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.0.tgz", - "integrity": "sha512-2ezuhdiZw8vuHf1HKSf4TIk80naTbP9At7sOqZmdVwvvMyuoDiZB49YZKLsLOfKIr77+I40dWpHVeY5JHpIEIg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.1.tgz", + "integrity": "sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw==", "cpu": [ "arm" ], @@ -893,9 +894,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.0.tgz", - "integrity": "sha512-uTtyYAP5veqi2z9b6Gr0NUoNv9F/rOzI8tOD5jKcCvRUn7T60Bb+42NDBCWNhMjkQzI0qqwXkQGo1SY41G52nw==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.1.tgz", + "integrity": "sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w==", "cpu": [ "arm64" ], @@ -909,9 +910,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.0.tgz", - "integrity": "sha512-c88wwtfs8tTffPaoJ+SQn3y+lKtgTzyjkD8NgsyCtCmtoIC8RDL7PrJU05an/e9VuAke6eJqGkoMhJK1RY6z4w==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.1.tgz", + "integrity": "sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw==", "cpu": [ "ia32" ], @@ -925,9 +926,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.0.tgz", - "integrity": "sha512-lR2rr/128/6svngnVta6JN4gxSXle/yZEZL3o4XZ6esOqhyR4wsKyfu6qXAL04S4S5CgGfG+GYZnjFd4YiG3Aw==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.1.tgz", + "integrity": "sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA==", "cpu": [ "loong64" ], @@ -941,9 +942,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.0.tgz", - "integrity": "sha512-9Sycc+1uUsDnJCelDf6ZNqgZQoK1mJvFtqf2MUz4ujTxGhvCWw+4chYfDLPepMEvVL9PDwn6HrXad5yOrNzIsQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.1.tgz", + "integrity": "sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA==", "cpu": [ "mips64el" ], @@ -957,9 +958,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.0.tgz", - "integrity": "sha512-CoWSaaAXOZd+CjbUTdXIJE/t7Oz+4g90A3VBCHLbfuc5yUQU/nFDLOzQsN0cdxgXd97lYW/psIIBdjzQIwTBGw==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.1.tgz", + "integrity": "sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw==", "cpu": [ "ppc64" ], @@ -973,9 +974,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.0.tgz", - "integrity": "sha512-mlb1hg/eYRJUpv8h/x+4ShgoNLL8wgZ64SUr26KwglTYnwAWjkhR2GpoKftDbPOCnodA9t4Y/b68H4J9XmmPzA==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.1.tgz", + "integrity": "sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg==", "cpu": [ "riscv64" ], @@ -989,9 +990,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.0.tgz", - "integrity": "sha512-fgf9ubb53xSnOBqyvWEY6ukBNRl1mVX1srPNu06B6mNsNK20JfH6xV6jECzrQ69/VMiTLvHMicQR/PgTOgqJUQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.1.tgz", + "integrity": "sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ==", "cpu": [ "s390x" ], @@ -1005,9 +1006,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.0.tgz", - "integrity": "sha512-H9Eu6MGse++204XZcYsse1yFHmRXEWgadk2N58O/xd50P9EvFMLJTQLg+lB4E1cF2xhLZU5luSWtGTb0l9UeSg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.1.tgz", + "integrity": "sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA==", "cpu": [ "x64" ], @@ -1021,9 +1022,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.0.tgz", - "integrity": "sha512-lCT675rTN1v8Fo+RGrE5KjSnfY0x9Og4RN7t7lVrN3vMSjy34/+3na0q7RIfWDAj0e0rCh0OL+P88lu3Rt21MQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.1.tgz", + "integrity": "sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg==", "cpu": [ "x64" ], @@ -1037,9 +1038,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.0.tgz", - "integrity": "sha512-HKoUGXz/TOVXKQ+67NhxyHv+aDSZf44QpWLa3I1lLvAwGq8x1k0T+e2HHSRvxWhfJrFxaaqre1+YyzQ99KixoA==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.1.tgz", + "integrity": "sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw==", "cpu": [ "x64" ], @@ -1053,9 +1054,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.0.tgz", - "integrity": "sha512-GDwAqgHQm1mVoPppGsoq4WJwT3vhnz/2N62CzhvApFD1eJyTroob30FPpOZabN+FgCjhG+AgcZyOPIkR8dfD7g==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.1.tgz", + "integrity": "sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q==", "cpu": [ "x64" ], @@ -1069,9 +1070,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.0.tgz", - "integrity": "sha512-0vYsP8aC4TvMlOQYozoksiaxjlvUcQrac+muDqj1Fxy6jh9l9CZJzj7zmh8JGfiV49cYLTorFLxg7593pGldwQ==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.1.tgz", + "integrity": "sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A==", "cpu": [ "arm64" ], @@ -1085,9 +1086,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.0.tgz", - "integrity": "sha512-p98u4rIgfh4gdpV00IqknBD5pC84LCub+4a3MO+zjqvU5MVXOc3hqR2UgT2jI2nh3h8s9EQxmOsVI3tyzv1iFg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.1.tgz", + "integrity": "sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw==", "cpu": [ "ia32" ], @@ -1101,9 +1102,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.0.tgz", - "integrity": "sha512-NgJnesu1RtWihtTtXGFMU5YSE6JyyHPMxCwBZK7a6/8d31GuSo9l0Ss7w1Jw5QnKUawG6UEehs883kcXf5fYwg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.1.tgz", + "integrity": "sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA==", "cpu": [ "x64" ], @@ -1849,9 +1850,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.19", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", - "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", + "version": "20.11.20", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz", + "integrity": "sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -1864,9 +1865,9 @@ "dev": true }, "node_modules/@types/react": { - "version": "18.2.56", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.56.tgz", - "integrity": "sha512-NpwHDMkS/EFZF2dONFQHgkPRwhvgq/OAvIaGQzxGSBmaeR++kTg6njr15Vatz0/2VcCEwJQFi6Jf4Q0qBu0rLA==", + "version": "18.2.58", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.58.tgz", + "integrity": "sha512-TaGvMNhxvG2Q0K0aYxiKfNDS5m5ZsoIBBbtfUorxdH4NGSXIlYvZxLJI+9Dd3KjeB3780bciLyAb7ylO8pLhPw==", "dev": true, "dependencies": { "@types/prop-types": "*", @@ -1932,16 +1933,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.0.1.tgz", - "integrity": "sha512-OLvgeBv3vXlnnJGIAgCLYKjgMEU+wBGj07MQ/nxAaON+3mLzX7mJbhRYrVGiVvFiXtwFlkcBa/TtmglHy0UbzQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.0.2.tgz", + "integrity": "sha512-/XtVZJtbaphtdrWjr+CJclaCVGPtOdBpFEnvtNf/jRV0IiEemRrL0qABex/nEt8isYcnFacm3nPHYQwL+Wb7qg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "7.0.1", - "@typescript-eslint/type-utils": "7.0.1", - "@typescript-eslint/utils": "7.0.1", - "@typescript-eslint/visitor-keys": "7.0.1", + "@typescript-eslint/scope-manager": "7.0.2", + "@typescript-eslint/type-utils": "7.0.2", + "@typescript-eslint/utils": "7.0.2", + "@typescript-eslint/visitor-keys": "7.0.2", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1967,15 +1968,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.0.1.tgz", - "integrity": "sha512-8GcRRZNzaHxKzBPU3tKtFNing571/GwPBeCvmAUw0yBtfE2XVd0zFKJIMSWkHJcPQi0ekxjIts6L/rrZq5cxGQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.0.2.tgz", + "integrity": "sha512-GdwfDglCxSmU+QTS9vhz2Sop46ebNCXpPPvsByK7hu0rFGRHL+AusKQJ7SoN+LbLh6APFpQwHKmDSwN35Z700Q==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "7.0.1", - "@typescript-eslint/types": "7.0.1", - "@typescript-eslint/typescript-estree": "7.0.1", - "@typescript-eslint/visitor-keys": "7.0.1", + "@typescript-eslint/scope-manager": "7.0.2", + "@typescript-eslint/types": "7.0.2", + "@typescript-eslint/typescript-estree": "7.0.2", + "@typescript-eslint/visitor-keys": "7.0.2", "debug": "^4.3.4" }, "engines": { @@ -1995,13 +1996,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.0.1.tgz", - "integrity": "sha512-v7/T7As10g3bcWOOPAcbnMDuvctHzCFYCG/8R4bK4iYzdFqsZTbXGln0cZNVcwQcwewsYU2BJLay8j0/4zOk4w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.0.2.tgz", + "integrity": "sha512-l6sa2jF3h+qgN2qUMjVR3uCNGjWw4ahGfzIYsCtFrQJCjhbrDPdiihYT8FnnqFwsWX+20hK592yX9I2rxKTP4g==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.0.1", - "@typescript-eslint/visitor-keys": "7.0.1" + "@typescript-eslint/types": "7.0.2", + "@typescript-eslint/visitor-keys": "7.0.2" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2012,13 +2013,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.0.1.tgz", - "integrity": "sha512-YtT9UcstTG5Yqy4xtLiClm1ZpM/pWVGFnkAa90UfdkkZsR1eP2mR/1jbHeYp8Ay1l1JHPyGvoUYR6o3On5Nhmw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.0.2.tgz", + "integrity": "sha512-IKKDcFsKAYlk8Rs4wiFfEwJTQlHcdn8CLwLaxwd6zb8HNiMcQIFX9sWax2k4Cjj7l7mGS5N1zl7RCHOVwHq2VQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "7.0.1", - "@typescript-eslint/utils": "7.0.1", + "@typescript-eslint/typescript-estree": "7.0.2", + "@typescript-eslint/utils": "7.0.2", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2039,9 +2040,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.0.1.tgz", - "integrity": "sha512-uJDfmirz4FHib6ENju/7cz9SdMSkeVvJDK3VcMFvf/hAShg8C74FW+06MaQPODHfDJp/z/zHfgawIJRjlu0RLg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.0.2.tgz", + "integrity": "sha512-ZzcCQHj4JaXFjdOql6adYV4B/oFOFjPOC9XYwCaZFRvqN8Llfvv4gSxrkQkd2u4Ci62i2c6W6gkDwQJDaRc4nA==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2052,13 +2053,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.0.1.tgz", - "integrity": "sha512-SO9wHb6ph0/FN5OJxH4MiPscGah5wjOd0RRpaLvuBv9g8565Fgu0uMySFEPqwPHiQU90yzJ2FjRYKGrAhS1xig==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.0.2.tgz", + "integrity": "sha512-3AMc8khTcELFWcKcPc0xiLviEvvfzATpdPj/DXuOGIdQIIFybf4DMT1vKRbuAEOFMwhWt7NFLXRkbjsvKZQyvw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.0.1", - "@typescript-eslint/visitor-keys": "7.0.1", + "@typescript-eslint/types": "7.0.2", + "@typescript-eslint/visitor-keys": "7.0.2", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2104,17 +2105,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.0.1.tgz", - "integrity": "sha512-oe4his30JgPbnv+9Vef1h48jm0S6ft4mNwi9wj7bX10joGn07QRfqIqFHoMiajrtoU88cIhXf8ahwgrcbNLgPA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.0.2.tgz", + "integrity": "sha512-PZPIONBIB/X684bhT1XlrkjNZJIEevwkKDsdwfiu1WeqBxYEEdIgVDgm8/bbKHVu+6YOpeRqcfImTdImx/4Bsw==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "7.0.1", - "@typescript-eslint/types": "7.0.1", - "@typescript-eslint/typescript-estree": "7.0.1", + "@typescript-eslint/scope-manager": "7.0.2", + "@typescript-eslint/types": "7.0.2", + "@typescript-eslint/typescript-estree": "7.0.2", "semver": "^7.5.4" }, "engines": { @@ -2129,12 +2130,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.0.1.tgz", - "integrity": "sha512-hwAgrOyk++RTXrP4KzCg7zB2U0xt7RUU0ZdMSCsqF3eKUwkdXUMyTb0qdCuji7VIbcpG62kKTU9M1J1c9UpFBw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.0.2.tgz", + "integrity": "sha512-8Y+YiBmqPighbm5xA2k4wKTxRzx9EkBu7Rlw+WHqMvRJ3RPz/BMBO9b2ru0LUNmXg120PHUXD5+SWFy2R8DqlQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.0.1", + "@typescript-eslint/types": "7.0.2", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -2575,7 +2576,8 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/buffer-builder/-/buffer-builder-0.2.0.tgz", "integrity": "sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==", - "dev": true + "dev": true, + "peer": true }, "node_modules/buffer-from": { "version": "1.1.2", @@ -3106,9 +3108,9 @@ } }, "node_modules/esbuild": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.0.tgz", - "integrity": "sha512-6iwE3Y2RVYCME1jLpBqq7LQWK3MW6vjV2bZy6gt/WrqkY+WE74Spyc0ThAOYpMtITvnjX09CrC6ym7A/m9mebA==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.1.tgz", + "integrity": "sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA==", "dev": true, "hasInstallScript": true, "bin": { @@ -3118,42 +3120,43 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.0", - "@esbuild/android-arm": "0.20.0", - "@esbuild/android-arm64": "0.20.0", - "@esbuild/android-x64": "0.20.0", - "@esbuild/darwin-arm64": "0.20.0", - "@esbuild/darwin-x64": "0.20.0", - "@esbuild/freebsd-arm64": "0.20.0", - "@esbuild/freebsd-x64": "0.20.0", - "@esbuild/linux-arm": "0.20.0", - "@esbuild/linux-arm64": "0.20.0", - "@esbuild/linux-ia32": "0.20.0", - "@esbuild/linux-loong64": "0.20.0", - "@esbuild/linux-mips64el": "0.20.0", - "@esbuild/linux-ppc64": "0.20.0", - "@esbuild/linux-riscv64": "0.20.0", - "@esbuild/linux-s390x": "0.20.0", - "@esbuild/linux-x64": "0.20.0", - "@esbuild/netbsd-x64": "0.20.0", - "@esbuild/openbsd-x64": "0.20.0", - "@esbuild/sunos-x64": "0.20.0", - "@esbuild/win32-arm64": "0.20.0", - "@esbuild/win32-ia32": "0.20.0", - "@esbuild/win32-x64": "0.20.0" + "@esbuild/aix-ppc64": "0.20.1", + "@esbuild/android-arm": "0.20.1", + "@esbuild/android-arm64": "0.20.1", + "@esbuild/android-x64": "0.20.1", + "@esbuild/darwin-arm64": "0.20.1", + "@esbuild/darwin-x64": "0.20.1", + "@esbuild/freebsd-arm64": "0.20.1", + "@esbuild/freebsd-x64": "0.20.1", + "@esbuild/linux-arm": "0.20.1", + "@esbuild/linux-arm64": "0.20.1", + "@esbuild/linux-ia32": "0.20.1", + "@esbuild/linux-loong64": "0.20.1", + "@esbuild/linux-mips64el": "0.20.1", + "@esbuild/linux-ppc64": "0.20.1", + "@esbuild/linux-riscv64": "0.20.1", + "@esbuild/linux-s390x": "0.20.1", + "@esbuild/linux-x64": "0.20.1", + "@esbuild/netbsd-x64": "0.20.1", + "@esbuild/openbsd-x64": "0.20.1", + "@esbuild/sunos-x64": "0.20.1", + "@esbuild/win32-arm64": "0.20.1", + "@esbuild/win32-ia32": "0.20.1", + "@esbuild/win32-x64": "0.20.1" } }, "node_modules/esbuild-sass-plugin": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/esbuild-sass-plugin/-/esbuild-sass-plugin-3.0.0.tgz", - "integrity": "sha512-bwIzYBdI7mK0HghblwqGEYX44Hknvj6EBKXEI8e0hC+Xui5L8oUXFeJ4/PDldxYD++wIPuA6Lr4EAnNCtbv//A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/esbuild-sass-plugin/-/esbuild-sass-plugin-3.1.0.tgz", + "integrity": "sha512-LX/PhMuA7KskPDT8yB10/o3C3fTKVWEzcfzGnGH0wqjZm3FEtm4d6dCxUn+252kuWZAgFOGzGOnBv1FpzClJrA==", "dev": true, "dependencies": { - "resolve": "^1.22.6", - "sass-embedded": "^1.70.0" + "resolve": "^1.22.8", + "sass": "^1.71.1" }, "peerDependencies": { - "esbuild": "^0.20.0" + "esbuild": "^0.20.1", + "sass-embedded": "^1.71.1" } }, "node_modules/escalade": { @@ -5411,9 +5414,9 @@ } }, "node_modules/obsidian": { - "version": "1.4.11", - "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.4.11.tgz", - "integrity": "sha512-BCVYTvaXxElJMl6MMbDdY/CGK+aq18SdtDY/7vH8v6BxCBQ6KF4kKxL0vG9UZ0o5qh139KpUoJHNm+6O5dllKA==", + "version": "1.5.7-1", + "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.5.7-1.tgz", + "integrity": "sha512-T5ZRuQ1FnfXqEoakTTHVDYvzUEEoT8zSPnQCW31PVgYwG4D4tZCQfKHN2hTz1ifnCe8upvwa6mBTAP2WUA5Vng==", "dev": true, "dependencies": { "@types/codemirror": "5.60.8", @@ -5973,6 +5976,7 @@ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, + "peer": true, "dependencies": { "tslib": "^2.1.0" } @@ -6010,9 +6014,9 @@ } }, "node_modules/sass": { - "version": "1.71.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.71.0.tgz", - "integrity": "sha512-HKKIKf49Vkxlrav3F/w6qRuPcmImGVbIXJ2I3Kg0VMA+3Bav+8yE9G5XmP5lMj6nl4OlqbPftGAscNaNu28b8w==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz", + "integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -6027,10 +6031,11 @@ } }, "node_modules/sass-embedded": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.70.0.tgz", - "integrity": "sha512-1sVSh5MlSdktkwC2zG9WuaVR6j7AlDxadPmZBN0wP4GhznMQTvpwNIAFhAqgjwJYhwdWFOKEdIHSQK4V8K434Q==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.71.1.tgz", + "integrity": "sha512-nOmqErO1zd1wjvTbDscLZZ3fv5JPeQfaKuo0UCjYm7qPbpQcycp0l3nFZHxovjLjCetJ9IrLOADdznFYKV0f1A==", "dev": true, + "peer": true, "dependencies": { "@bufbuild/protobuf": "^1.0.0", "buffer-builder": "^0.2.0", @@ -6043,28 +6048,28 @@ "node": ">=16.0.0" }, "optionalDependencies": { - "sass-embedded-android-arm": "1.70.0", - "sass-embedded-android-arm64": "1.70.0", - "sass-embedded-android-ia32": "1.70.0", - "sass-embedded-android-x64": "1.70.0", - "sass-embedded-darwin-arm64": "1.70.0", - "sass-embedded-darwin-x64": "1.70.0", - "sass-embedded-linux-arm": "1.70.0", - "sass-embedded-linux-arm64": "1.70.0", - "sass-embedded-linux-ia32": "1.70.0", - "sass-embedded-linux-musl-arm": "1.70.0", - "sass-embedded-linux-musl-arm64": "1.70.0", - "sass-embedded-linux-musl-ia32": "1.70.0", - "sass-embedded-linux-musl-x64": "1.70.0", - "sass-embedded-linux-x64": "1.70.0", - "sass-embedded-win32-ia32": "1.70.0", - "sass-embedded-win32-x64": "1.70.0" + "sass-embedded-android-arm": "1.71.1", + "sass-embedded-android-arm64": "1.71.1", + "sass-embedded-android-ia32": "1.71.1", + "sass-embedded-android-x64": "1.71.1", + "sass-embedded-darwin-arm64": "1.71.1", + "sass-embedded-darwin-x64": "1.71.1", + "sass-embedded-linux-arm": "1.71.1", + "sass-embedded-linux-arm64": "1.71.1", + "sass-embedded-linux-ia32": "1.71.1", + "sass-embedded-linux-musl-arm": "1.71.1", + "sass-embedded-linux-musl-arm64": "1.71.1", + "sass-embedded-linux-musl-ia32": "1.71.1", + "sass-embedded-linux-musl-x64": "1.71.1", + "sass-embedded-linux-x64": "1.71.1", + "sass-embedded-win32-ia32": "1.71.1", + "sass-embedded-win32-x64": "1.71.1" } }, "node_modules/sass-embedded-android-arm": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.70.0.tgz", - "integrity": "sha512-Vog4Z+tsDYGv7m9sZisr/P6KvqDioCMu0cinexdnXhHXReo+X6CFe79yv/zA/Xfq5HtAAmFjGD6CO/nTjoydtw==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.71.1.tgz", + "integrity": "sha512-Pq6TlRg9lIYsZDo9XNQZnSg6grQKzBG3ssdv0W1SnYS1BzGKwbg8XnlUA/pVxK76BKEm8i+0DA4y8cZ8A3tmpw==", "cpu": [ "arm" ], @@ -6073,6 +6078,7 @@ "os": [ "android" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6081,9 +6087,9 @@ } }, "node_modules/sass-embedded-android-arm64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.70.0.tgz", - "integrity": "sha512-vMr7fruLUv/VvF7CPVF1z7Bc28a8K9Ps5nyN3UatOj+irxN1LbZIbeQua6neX2eFUsXvcg7hLZwvV3+T96Fhrw==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.71.1.tgz", + "integrity": "sha512-a7wJ1MM6sBwcM/8vIvvnwc9spoeNimNeXZpN9baSV4Ylthmr4GkTYYtf96Z/XYLdG5KBgYlxMs5T3OgqafdUMg==", "cpu": [ "arm64" ], @@ -6092,6 +6098,7 @@ "os": [ "android" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6100,9 +6107,9 @@ } }, "node_modules/sass-embedded-android-ia32": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.70.0.tgz", - "integrity": "sha512-RWEJ7sBGBCd101oSBPuePPU8yXb1iB/ME4sRhgI5xjjyIsldiuvX48saW25u1ZqCo2AVA0BTXfWpNJnhKB3b4Q==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.71.1.tgz", + "integrity": "sha512-tn3WZNdKQtr/DSzl4cQIDZkTO3JuuMxPvM/T+U7gBFyhU62NyF5wvwBnuh+BN3iaMowfkSknzCZCjyJDwnkDjw==", "cpu": [ "ia32" ], @@ -6111,6 +6118,7 @@ "os": [ "android" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6119,9 +6127,9 @@ } }, "node_modules/sass-embedded-android-x64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.70.0.tgz", - "integrity": "sha512-u+ijV6AQR/84kjjGb3mp0aibPiXkFKqfmHxqYBMN7h2xV7EM70Yz054nVifaBr8nfC0E8aT/DurSI4nkkQ6Uvg==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.71.1.tgz", + "integrity": "sha512-l72Pqxfb/pArpOLyWsuL9s8ODWupRGATWTPwUT/GjVdSQJO/lQL5DopXb55Cwh2T7t2G10e+uXTEMKz0qngoWQ==", "cpu": [ "x64" ], @@ -6130,6 +6138,7 @@ "os": [ "android" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6138,9 +6147,9 @@ } }, "node_modules/sass-embedded-darwin-arm64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.70.0.tgz", - "integrity": "sha512-qMs08h0nwRA1B/Ieakcg/Y6lcCEnuBnPTNEkFkBlnfj3PFVPTb50wQvDr9JLpcjXWznlBxyFrz1nZM+pXDix7Q==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.71.1.tgz", + "integrity": "sha512-3eZDAcJBwoG0Kyasa/EbaKt1Jn2y0GHvCd0Oas/VtMsYL+/6abiCO1l8YltdxER4jvuHUKE2Ow7J6T6sC+vVQQ==", "cpu": [ "arm64" ], @@ -6149,6 +6158,7 @@ "os": [ "darwin" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6157,9 +6167,9 @@ } }, "node_modules/sass-embedded-darwin-x64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.70.0.tgz", - "integrity": "sha512-Vf8UQY3IBmsaz9L5DeJDjn19N//1n3rTquH69x29zPCd3zF2gnay38atxIZ+6h7VsZT3C6evm0y58JUJDWN1CA==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.71.1.tgz", + "integrity": "sha512-/9FtMPVdQalhsRCD9opNIlZqJKe7veCjWsdj0J9utbc2bNCTYswXNQtC/jWJTjE9/gQ0+w5zwg9+fQzltdYh1w==", "cpu": [ "x64" ], @@ -6168,6 +6178,7 @@ "os": [ "darwin" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6176,9 +6187,9 @@ } }, "node_modules/sass-embedded-linux-arm": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.70.0.tgz", - "integrity": "sha512-U9e+k0XHwubeSIwsBYTNrTVH+0zF/ErSfuHfgTfuvlcKlhoGtFgAb7W8Qfe9FDF6TYTt0fJAJhSV2MdoExsgRA==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.71.1.tgz", + "integrity": "sha512-l7NEn0gji6GTN+p00DP2zZl9SE501Zy5obTA3beiD6+vQy7lCEC6vpNi/ZrlC6eRmgY2OKSBB2lfW7KSej9Hkg==", "cpu": [ "arm" ], @@ -6187,6 +6198,7 @@ "os": [ "linux" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6195,9 +6207,9 @@ } }, "node_modules/sass-embedded-linux-arm64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.70.0.tgz", - "integrity": "sha512-PzhBg5xlyXcZ8FgyjqAcVtfaq462l3KeEid2OxrsOzBQgdgJb0La1tAEOpP9jz7YOOTr9A96vm609W9fRLI2Iw==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.71.1.tgz", + "integrity": "sha512-zUSmqeqcgTb3VjZggk9a9xB2ZGaAe/TYAi/vYRPNLY/f7dZSrsa9Ejo+LUm2aNl6V8hFzMz7BpoKsaRQJnb9GQ==", "cpu": [ "arm64" ], @@ -6206,6 +6218,7 @@ "os": [ "linux" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6214,9 +6227,9 @@ } }, "node_modules/sass-embedded-linux-ia32": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.70.0.tgz", - "integrity": "sha512-UOxTJywQRC/HzFQthlyNWJ07MX8EzKuTgH0N5T3XyXQTNuGeJQ8EPWY9fv1weLCjydVOEwm853F3djtUNmkCtg==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.71.1.tgz", + "integrity": "sha512-NvzSljfc/Kw9/0CSn91AsINV2nh8vxhFe2cKexPMwvAqv/etU84dJMfJejxPJ39PmMqT1KvC4G+Qt2+6Mpe7oQ==", "cpu": [ "ia32" ], @@ -6225,6 +6238,7 @@ "os": [ "linux" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6233,9 +6247,9 @@ } }, "node_modules/sass-embedded-linux-musl-arm": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.70.0.tgz", - "integrity": "sha512-8zudDFpAoNrQDujNYBKkq8nwl4i0jMmXcysO9Ou0llrzdY7Keok2z1aS3IbZy7AvUXtGaeYSHUi5lXdOalJ/QQ==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.71.1.tgz", + "integrity": "sha512-1O37K5EgSeQjCBizIF9xdZJw3mh5XYHOnsB4+65CLZg4ac84ragjFv9d9rYhwGs9QSgg1MoOv7VWnEIxQ8Pp9Q==", "cpu": [ "arm" ], @@ -6244,14 +6258,15 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } }, "node_modules/sass-embedded-linux-musl-arm64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.70.0.tgz", - "integrity": "sha512-DJl1AV9W7T3SHzXFqAtyjPZy4O2g4AC6QctY5/aM42DTY/xpWOmwUBgsDzDoRbNqP7qDl+GtHLlggrLWCBP9fg==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.71.1.tgz", + "integrity": "sha512-Agtf6BcYQ0mt+jVDcRcN7bDPrMAQOWMeX15NTlQH1rO8voObLo6ThVl2NUkiZyyVmu7a6YOrCxpGBVAK1cLGOg==", "cpu": [ "arm64" ], @@ -6260,14 +6275,15 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } }, "node_modules/sass-embedded-linux-musl-ia32": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.70.0.tgz", - "integrity": "sha512-CcAvT3KPc7cCJfTu1E0HzsAjE/dPQsKaXQD/nsBXNZo081R+lLR2u22wpXM2pnzMNJETRV/pDwozHoYEcPkPqQ==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.71.1.tgz", + "integrity": "sha512-Cd5sJkt70bSlYEXUSj9mPMKZLzDL8LGcBKUIfQRrcBKjmzD2Va2eLq4Zati9Xzt54unuDp4bAUUTyvQmjLzFmA==", "cpu": [ "ia32" ], @@ -6276,14 +6292,15 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } }, "node_modules/sass-embedded-linux-musl-x64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.70.0.tgz", - "integrity": "sha512-g3i9PKmqTxuyrM1Yeju1s4Fj6fzAGyyfzw/LiZZtq0ZZGhJXJMVvEDog/OxQ37eYxWqq9XHFTW2PphMvukVK0g==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.71.1.tgz", + "integrity": "sha512-uVfYms/lf4QVSvtQXkSm+Bq3wVsvkRMI30ca82rRwpwebxSaTbUr+uLnskh8QvbyfsbMyrzZQU0SCrO3uCua1A==", "cpu": [ "x64" ], @@ -6292,14 +6309,15 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } }, "node_modules/sass-embedded-linux-x64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.70.0.tgz", - "integrity": "sha512-F9F2CA7C6z/ROfF0U/jtYWknbDe9S/TJoCJ5TlHafwS+SrZE1A+Czf2MWJ+8mc2NFiRjYzYxt4Ad29cuc6rrhw==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.71.1.tgz", + "integrity": "sha512-7BXniYic16+MQx0InyH8OXburLPGMRYRWf0l/t/fRkNkUHWFl7NQPAX0yvj73c/PKOdaYEUY6isNB4OGUGtZHQ==", "cpu": [ "x64" ], @@ -6308,6 +6326,7 @@ "os": [ "linux" ], + "peer": true, "bin": { "sass": "dart-sass/sass" }, @@ -6316,9 +6335,9 @@ } }, "node_modules/sass-embedded-win32-ia32": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.70.0.tgz", - "integrity": "sha512-TITx2QwJouhMwA0CAjCmnTNeCDL9g2fkLe9z+5rf39OdmcX9CEBrY4CNaO5REnMpgoa+o82u272ZR3oWrsUs8Q==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.71.1.tgz", + "integrity": "sha512-ZDhL6hvekeKDkZ1wUj6wN0thrB/7wOO8HaQoagk+pKaHoa0Py7OLR/m9mQM8S13mZpUQduNsznmXV1fOss4GOg==", "cpu": [ "ia32" ], @@ -6327,6 +6346,7 @@ "os": [ "win32" ], + "peer": true, "bin": { "sass": "dart-sass/sass.bat" }, @@ -6335,9 +6355,9 @@ } }, "node_modules/sass-embedded-win32-x64": { - "version": "1.70.0", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.70.0.tgz", - "integrity": "sha512-rPe8WUdARhlfgIhGcCTGbTNgd6OppcmjtBrxUNoGs3AENSREQCpaNv5d+HBOMhGUfYgXIHUSiipilFUhLWpsrQ==", + "version": "1.71.1", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.71.1.tgz", + "integrity": "sha512-ecWP1TFUA9ujOuOTJfWC1iZsSZOdQy5OxIEHqoERxunyjwzkiTxfN8J7Y4bNQ5uwb4K0brxWyIM8Fq+UgDqcZA==", "cpu": [ "arm64", "x64" @@ -6347,6 +6367,7 @@ "os": [ "win32" ], + "peer": true, "bin": { "sass": "dart-sass/sass.bat" }, @@ -6359,6 +6380,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -6990,7 +7012,8 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==", - "dev": true + "dev": true, + "peer": true }, "node_modules/w3c-keyname": { "version": "2.2.8", diff --git a/package.json b/package.json index d9f873d..9b453b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zettelflow", - "version": "2.3.0", + "version": "2.3.1", "description": "A plugin for Obsidian that allows you to create and manage notes in a ZettelFlow-like way.", "main": "main.js", "scripts": { @@ -15,25 +15,25 @@ "author": "RafaelGB", "license": "MIT", "devDependencies": { - "@types/node": "20.11.19", - "@types/react": "18.2.56", + "@types/node": "20.11.20", + "@types/react": "18.2.58", "@types/react-dom": "18.2.19", "@types/uuid": "9.0.8", - "@typescript-eslint/eslint-plugin": "7.0.1", - "@typescript-eslint/parser": "7.0.1", + "@typescript-eslint/eslint-plugin": "7.0.2", + "@typescript-eslint/parser": "7.0.2", "builtin-modules": "3.3.0", "codemirror": "6.0.1", - "esbuild": "0.20.0", - "esbuild-sass-plugin": "3.0.0", + "esbuild": "0.20.1", + "esbuild-sass-plugin": "3.1.0", "eslint": "8.56.0", "eslint-plugin-react": "7.33.2", "jest": "29.7.0", - "obsidian": "1.4.11", + "obsidian": "1.5.7-1", "ts-jest": "29.1.2", "tslib": "2.6.2", "typescript": "5.3.3", "zustand": "4.5.1", - "sass": "1.71.0" + "sass": "1.71.1" }, "dependencies": { "@popperjs/core": "2.11.8", diff --git a/src/actions/calendar/CalendarAction.tsx b/src/actions/calendar/CalendarAction.tsx index 47aef49..85d41f3 100644 --- a/src/actions/calendar/CalendarAction.tsx +++ b/src/actions/calendar/CalendarAction.tsx @@ -5,6 +5,7 @@ import { WrappedActionBuilderProps } from "application/components/noteBuilder"; import { calendarSettings } from "./CalendarSettings"; import { t } from "architecture/lang"; import { TypeService } from "architecture/typing"; +import moment from "moment"; export class CalendarAction extends CustomZettelAction { private static ICON = "calendar-days"; @@ -22,19 +23,33 @@ export class CalendarAction extends CustomZettelAction { async execute(info: ExecuteInfo) { const { content, element, context } = info; - const { result, key, zone, staticBehaviour, staticValue } = element; + const { + result, + key, + zone, + staticBehaviour, + staticValue, + enableTime, + format, + } = element; + // If the result is date, apply the daily format const valueToSave = staticBehaviour ? staticValue : result; + if (TypeService.isString(key) && TypeService.isDate(valueToSave)) { + const defaultFormat = enableTime ? "YYYY-MM-DDTHH:mm:ss" : "YYYY-MM-DD"; + const formattedValue = moment(valueToSave).format( + (format as string) || defaultFormat + ); switch (zone) { case "body": - content.modify(key, valueToSave.toISOString()); + content.modify(key, formattedValue); break; case "context": - context[key] = valueToSave; + context[key] = formattedValue; break; case "frontmatter": default: - content.addFrontMatter({ [key]: valueToSave }); + content.addFrontMatter({ [key]: formattedValue }); } } } diff --git a/src/actions/calendar/CalendarSettings.ts b/src/actions/calendar/CalendarSettings.ts index 95d064b..c2e047d 100644 --- a/src/actions/calendar/CalendarSettings.ts +++ b/src/actions/calendar/CalendarSettings.ts @@ -7,7 +7,9 @@ import { ObsidianConfig } from "architecture/plugin"; import { v4 as uuid4 } from "uuid"; export const calendarSettings: ActionSetting = (contentEl, _, action) => { - const { key, label, zone, enableTime, staticBehaviour, staticValue } = action as CalendarElement; + const { + key, label, zone, enableTime, staticBehaviour, staticValue, format + } = action as CalendarElement; const name = t('step_builder_element_type_calendar_title'); const description = t('step_builder_element_type_calendar_description'); @@ -47,7 +49,6 @@ export const calendarSettings: ActionSetting = (contentEl, _, action) => { action.key = value; }); }); - }); new Setting(contentEl) @@ -60,6 +61,7 @@ export const calendarSettings: ActionSetting = (contentEl, _, action) => { action.label = value; }); }); + // Toggle to enable time const dynamicId = uuid4(); new Setting(contentEl) @@ -70,6 +72,7 @@ export const calendarSettings: ActionSetting = (contentEl, _, action) => { .setValue(enableTime) .onChange(async (value) => { action.enableTime = value; + delete action.format; const input = document.getElementById(dynamicId); if (input) { input.setAttribute('type', value ? 'datetime-local' : 'date'); @@ -77,6 +80,20 @@ export const calendarSettings: ActionSetting = (contentEl, _, action) => { }); }); + // Format in function of the time is enabled or not + new Setting(contentEl) + .setName(t("step_builder_element_type_calendar_format_title")) + .setDesc(t("step_builder_element_type_calendar_format_description")) + .addText(text => { + const placeholder = enableTime ? 'YYYY-MM-DDTHH:MM' : 'YYYY-MM-DD'; + text + .setValue(format || ``) + .setPlaceholder(placeholder) + .onChange(async (value) => { + action.format = value; + }); + }); + // Toggle to enable static behaviour new Setting(contentEl) .setName(t("step_builder_element_type_static_toggle_title")) diff --git a/src/actions/selector/components/selectordnd/contexts/OptionsContext.tsx b/src/actions/selector/components/selectordnd/contexts/OptionsContext.tsx index 0e0df75..cfacba2 100644 --- a/src/actions/selector/components/selectordnd/contexts/OptionsContext.tsx +++ b/src/actions/selector/components/selectordnd/contexts/OptionsContext.tsx @@ -34,9 +34,9 @@ interface OptionsProviderProps { } const OptionsProvider: FC = ({ action, children }) => { - const { options = [], defaultOption } = action; + const { options, defaultOption } = action; const [defaultOptionState, setDefaultOptionState] = useState(defaultOption); - const [optionsState, setOptionsState] = useState(options); + const [optionsState, setOptionsState] = useState(options || []); const swapOptions = (origin: number, dropped: number) => { const newOptionsState = [...optionsState]; @@ -75,6 +75,9 @@ const OptionsProvider: FC = ({ action, children }) => { setOptionsState(newOptionsState); // On disk + if (!action.options) { + action.options = []; + } action.options.unshift([newKey, newLabel]); }; diff --git a/src/application/components/noteBuilder/callbacks/CallbackUtils.tsx b/src/application/components/noteBuilder/callbacks/CallbackUtils.tsx index 045db6f..9264e27 100644 --- a/src/application/components/noteBuilder/callbacks/CallbackUtils.tsx +++ b/src/application/components/noteBuilder/callbacks/CallbackUtils.tsx @@ -111,22 +111,25 @@ export async function manageElement( }) .catch((error: ZettelError) => { log.error(error); - switch (error.getType()) { - case ZettelError.WARNING_TYPE: { - new Notice(`Error building note: ${error.message}`); - manageWarningError(actions, error); - } - case ZettelError.FATAL_TYPE: { - new Notice(`Fatal error: ${error.message}`); - manageFatalError(actions, error); - break; - } - default: { - new Notice(`Not controlled error: ${error.message}`); - modal.close(); + if (error! instanceof ZettelError) { + switch (error.getType()) { + case ZettelError.WARNING_TYPE: { + new Notice(`Warning error: ${error.message}`); + manageWarningError(actions, error); + } + case ZettelError.FATAL_TYPE: { + new Notice(`Fatal error: ${error.message}`); + manageFatalError(actions, error); + break; + } + default: { + new Notice(`Not controlled error: ${error.message}`); + modal.close(); + } } + } else { + new Notice(`Not controlled error: ${error}`); } - actions.setInvalidTitle(true); }); } } diff --git a/src/application/notes/NoteBuilder.ts b/src/application/notes/NoteBuilder.ts index cd64088..15a0a90 100644 --- a/src/application/notes/NoteBuilder.ts +++ b/src/application/notes/NoteBuilder.ts @@ -26,10 +26,22 @@ export class NoteBuilder { } public async build(modal: SelectorMenuModal) { - if (modal.isEditor()) { - return await this.buildEditor(modal); - } else { - return await this.buildNewNote(); + try { + if (modal.isEditor()) { + return await this.buildEditor(modal); + } else { + return await this.buildNewNote(); + } + } catch (error) { + this.content.reset(); + if (!modal.isEditor()) { + const potentialFile = await FileService.getFile(this.note.getFinalPath(), false); + // Check if the file was created and delete it + if (potentialFile) { + await FileService.deleteFile(potentialFile); + } + } + throw error; } } diff --git a/src/application/notes/model/ContentDTO.ts b/src/application/notes/model/ContentDTO.ts index 835a75d..8e0f4b9 100644 --- a/src/application/notes/model/ContentDTO.ts +++ b/src/application/notes/model/ContentDTO.ts @@ -82,4 +82,10 @@ export class ContentDTO { this.frontmatter = { ...this.frontmatter, ...frontmatter }; } } + + public reset() { + this.content = ""; + this.frontmatter = {}; + this.tags = []; + } } \ No newline at end of file diff --git a/src/architecture/lang/locale/en.ts b/src/architecture/lang/locale/en.ts index c037730..37222bb 100644 --- a/src/architecture/lang/locale/en.ts +++ b/src/architecture/lang/locale/en.ts @@ -83,6 +83,8 @@ export default { step_builder_element_type_calendar_label_description: 'The label will be the title of your calendar', step_builder_element_type_calendar_toggle_time_title: 'Enable time', step_builder_element_type_calendar_toggle_time_description: 'Enable or disable time in the calendar', + step_builder_element_type_calendar_format_title: 'Format of calendar', + step_builder_element_type_calendar_format_description: 'Choose the format of the calendar', step_builder_element_type_selector_title: 'Element type selector', step_builder_element_type_selector_description: 'Add options to your step that will be displayed in the menu of the action.', step_builder_element_type_selector_label_title: 'Label of selector', diff --git a/src/architecture/lang/locale/es.ts b/src/architecture/lang/locale/es.ts index 182140f..f620db0 100644 --- a/src/architecture/lang/locale/es.ts +++ b/src/architecture/lang/locale/es.ts @@ -82,6 +82,8 @@ export default { step_builder_element_type_calendar_label_description: 'La etiqueta será el título de tu calendario', step_builder_element_type_calendar_toggle_time_title: 'Activar la opción de hora', step_builder_element_type_calendar_toggle_time_description: 'Activa o desactiva la hora para tu calendario', + step_builder_element_type_calendar_format_title: 'Formato del calendario', + step_builder_element_type_calendar_format_description: 'Elige el formato para el calendario', step_builder_element_type_selector_title: 'Acción de selector', step_builder_element_type_selector_description: 'Añade opciones a tu paso que se mostrarán en el menú de la acción.', step_builder_element_type_selector_label_title: 'Etiqueta del selector', diff --git a/src/architecture/plugin/services/FileService.ts b/src/architecture/plugin/services/FileService.ts index 6529d68..8b76441 100644 --- a/src/architecture/plugin/services/FileService.ts +++ b/src/architecture/plugin/services/FileService.ts @@ -26,6 +26,10 @@ export class FileService { await ObsidianApi.workspace().openLinkText(path, ""); } + public static async deleteFile(file: TFile): Promise { + await ObsidianApi.vault().delete(file); + } + public static async getFile(file_str: string, restrict = true): Promise { file_str = normalizePath(file_str); diff --git a/src/zettelkasten/typing.ts b/src/zettelkasten/typing.ts index a6465e1..b7006d7 100644 --- a/src/zettelkasten/typing.ts +++ b/src/zettelkasten/typing.ts @@ -67,6 +67,7 @@ export type NumberElement = { export type CalendarElement = { enableTime: boolean, + format: string, } & AditionBaseElement; export type SelectorElement = {