From 3e54305e2ce77562bf721f1929039547a962850d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 00:22:31 +0200 Subject: [PATCH 1/6] purpose and links as native props for every action --- src/actions/backlink/BackLinkAction.tsx | 2 ++ src/actions/calendar/CalendarAction.tsx | 3 +++ src/actions/checkbox/CheckboxAction.tsx | 2 ++ src/actions/cssClasses/CssClassesAction.tsx | 3 +++ src/actions/number/NumberAction.tsx | 2 ++ src/actions/prompt/PromptAction.tsx | 4 ++++ src/actions/script/ScriptAction.tsx | 3 +++ src/actions/selector/SelectorAction.tsx | 4 ++++ src/actions/tags/TagsAction.tsx | 3 +++ .../taskManagement/TaskManagementAction.tsx | 5 +++++ src/architecture/api/CustomZettelAction.tsx | 2 ++ .../actionsManagment/ActionAccordion.tsx | 16 +------------- .../actionsManagment/ActionAddMenu.tsx | 21 +++++++++++++++++++ .../components/actionsManagment/typing.ts | 4 ++++ 14 files changed, 59 insertions(+), 15 deletions(-) create mode 100644 src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx diff --git a/src/actions/backlink/BackLinkAction.tsx b/src/actions/backlink/BackLinkAction.tsx index fc867db..d12d739 100644 --- a/src/actions/backlink/BackLinkAction.tsx +++ b/src/actions/backlink/BackLinkAction.tsx @@ -17,6 +17,8 @@ export class BackLinkAction extends CustomZettelAction { }; settings = backlinkSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Backlink"; + purpose = "Add a backlink of the in-building note to another note."; public component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/calendar/CalendarAction.tsx b/src/actions/calendar/CalendarAction.tsx index 85d41f3..9ce4665 100644 --- a/src/actions/calendar/CalendarAction.tsx +++ b/src/actions/calendar/CalendarAction.tsx @@ -17,6 +17,9 @@ export class CalendarAction extends CustomZettelAction { }; settings = calendarSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Calendar"; + purpose = "Add a calendar (date/time) to your note."; + component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/checkbox/CheckboxAction.tsx b/src/actions/checkbox/CheckboxAction.tsx index a362f6e..096d974 100644 --- a/src/actions/checkbox/CheckboxAction.tsx +++ b/src/actions/checkbox/CheckboxAction.tsx @@ -18,6 +18,8 @@ export class CheckboxAction extends CustomZettelAction { settings = checkboxSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Checkbox"; + purpose = "Add a checkbox property. Works with boolean values."; component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/cssClasses/CssClassesAction.tsx b/src/actions/cssClasses/CssClassesAction.tsx index 830233b..7ab3936 100644 --- a/src/actions/cssClasses/CssClassesAction.tsx +++ b/src/actions/cssClasses/CssClassesAction.tsx @@ -17,6 +17,9 @@ export class CssClassesAction extends CustomZettelAction { settings = cssclassesSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/CssClasses"; + purpose = + "Native Obsidian property to add CSS classes just for the note where it is added."; component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/number/NumberAction.tsx b/src/actions/number/NumberAction.tsx index 4be1e0e..024df6a 100644 --- a/src/actions/number/NumberAction.tsx +++ b/src/actions/number/NumberAction.tsx @@ -19,6 +19,8 @@ export class NumberAction extends CustomZettelAction { }; settings = numberSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Number"; + purpose = "Add a number property."; component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/prompt/PromptAction.tsx b/src/actions/prompt/PromptAction.tsx index cb6f80c..8c9f2d7 100644 --- a/src/actions/prompt/PromptAction.tsx +++ b/src/actions/prompt/PromptAction.tsx @@ -17,6 +17,10 @@ export class PromptAction extends CustomZettelAction { zone: "frontmatter", }; settings = promptSettings; + + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Prompt"; + purpose = "Add text as property/context/body to the note."; + component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/script/ScriptAction.tsx b/src/actions/script/ScriptAction.tsx index e2763a4..6e130dc 100644 --- a/src/actions/script/ScriptAction.tsx +++ b/src/actions/script/ScriptAction.tsx @@ -13,6 +13,9 @@ export class ScriptAction extends CustomZettelAction { }; settings = scriptSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Script"; + purpose = "Run a JS script when the note is created/edited."; + async execute(info: ExecuteInfo) { try { const element = info.element as CodeElement; diff --git a/src/actions/selector/SelectorAction.tsx b/src/actions/selector/SelectorAction.tsx index a268446..cecf34e 100644 --- a/src/actions/selector/SelectorAction.tsx +++ b/src/actions/selector/SelectorAction.tsx @@ -16,6 +16,10 @@ export class SelectorAction extends CustomZettelAction { zone: "frontmatter", }; settings = elementTypeSelectorSettings; + + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Selector"; + purpose = + "Create multiple options to select from and add the selected one to the note."; component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/tags/TagsAction.tsx b/src/actions/tags/TagsAction.tsx index e6ec64c..0c019c6 100644 --- a/src/actions/tags/TagsAction.tsx +++ b/src/actions/tags/TagsAction.tsx @@ -17,6 +17,9 @@ export class TagsAction extends CustomZettelAction { settings = tagsSettings; + link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/Tags"; + purpose = "Add Obsidian tags to the note."; + component(props: WrappedActionBuilderProps) { return ; } diff --git a/src/actions/taskManagement/TaskManagementAction.tsx b/src/actions/taskManagement/TaskManagementAction.tsx index 190a56d..ee7a1c7 100644 --- a/src/actions/taskManagement/TaskManagementAction.tsx +++ b/src/actions/taskManagement/TaskManagementAction.tsx @@ -18,6 +18,11 @@ export class TaskManagementAction extends CustomZettelAction { settings = taskManagementSettings; + link = + "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/TaskManagement"; + purpose = + "Rollover unfinished tasks from one/multiple notes to the created/modified one."; + getIcon(): string { return TaskManagementAction.ICON; } diff --git a/src/architecture/api/CustomZettelAction.tsx b/src/architecture/api/CustomZettelAction.tsx index d3610fc..ba04404 100644 --- a/src/architecture/api/CustomZettelAction.tsx +++ b/src/architecture/api/CustomZettelAction.tsx @@ -15,6 +15,8 @@ export abstract class CustomZettelAction implements ICustomZettelAction { abstract id: string; abstract defaultAction: Action; abstract settings: ActionSetting; + abstract link: string; + abstract purpose: string; async execute(_: ExecuteInfo) { // Do nothing by default } diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAccordion.tsx b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAccordion.tsx index b425cd5..f87f4cf 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAccordion.tsx +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAccordion.tsx @@ -8,20 +8,6 @@ import { Droppable, useDragHandle } from "architecture/components/dnd"; import { ACTIONS_ACCORDION_DND_ID } from "../shared/Identifiers"; import { v4 as uuid4 } from "uuid"; -const URL = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/"; -const ACTION_LABEL_URL: Record = { - script: "Script", - prompt: "Prompt", - number: "Number", - selector: "Selector", - cssclasses: "CssClasses", - tags: "Tags", - checkbox: "Checkbox", - calendar: "Calendar", - backlink: "Backlink", - "task-management": "TaskManagement", -}; - export function ActionAccordion(props: ActionAccordionProps) { const { action, onRemove, index } = props; const [accordionOpen, setAccordionOpen] = useState(false); @@ -59,7 +45,7 @@ export function ActionAccordion(props: ActionAccordionProps) {
= useMemo(() => { + const record: Record = {}; + actionsStore.getActionsKeys().forEach((key) => { + const label = actionsStore.getAction(key).getLabel(); + record[label] = key; + }); + return record; + }, []); + + return
TODO
; +} diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts b/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts index 64130f2..8e5c8a9 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts @@ -10,4 +10,8 @@ export type ActionAccordionProps = { action: Action, index: number, onRemove: () => void, +}; + +export type ActionAddMenuProps = { + onChange: (value: string | null) => void }; \ No newline at end of file From 8506d1a3f98c106bf93b7469c6def88d84c17c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 20:11:46 +0200 Subject: [PATCH 2/6] save new behavior of menu --- src/styles/components/actionAddMenu.scss | 131 ++++++++++++++++++ src/styles/main.scss | 29 +--- .../actionsManagment/ActionAddMenu.tsx | 109 ++++++++++++++- .../actionsManagment/ActionsManagement.tsx | 26 ++-- .../components/actionsManagment/typing.ts | 8 ++ 5 files changed, 253 insertions(+), 50 deletions(-) create mode 100644 src/styles/components/actionAddMenu.scss diff --git a/src/styles/components/actionAddMenu.scss b/src/styles/components/actionAddMenu.scss new file mode 100644 index 0000000..2e3b7b1 --- /dev/null +++ b/src/styles/components/actionAddMenu.scss @@ -0,0 +1,131 @@ +.zettelkasten-flow__actions-management-add { + position: relative; + display: flex; + justify-content: center; + align-items: center; + margin-top: 10px; + padding: 10px 20px; +} + +.zettelkasten-flow__actions-management-add-button-active, +.zettelkasten-flow__actions-management-add-button { + background-color: var(--background-primary); + color: var(--text-normal); + width: 50px; + height: 50px; + border: none; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: background-color 0.3s, transform 0.3s; + font-size: 24px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); +} + +.zettelkasten-flow__actions-management-add-button-active { + background-color: var(--background-modifier-success); + transform: rotate(45deg); +} + +.zettelkasten-flow__actions-management-add-menu { + background-color: var(--background-secondary); + padding: 15px; + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); + max-width: 600px; + margin: 10px auto; + min-height: 300px; + display: flex; + flex-direction: column; +} + +.zettelkasten-flow__actions-management-add-menu-search { + width: 100%; + padding: 10px; + border-radius: 5px; + border: 1px solid var(--background-modifier-border); + margin-bottom: 10px; + font-size: 16px; +} + +.zettelkasten-flow__actions-management-add-card { + background-color: var(--background-primary); + padding: 10px; + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + transition: box-shadow 0.3s; + display: flex; + flex-direction: column; + align-items: center; + margin-bottom: 10px; + flex: 1; + /* Para que crezca verticalmente */ +} + +.zettelkasten-flow__actions-management-add-card:hover { + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); +} + +.zettelkasten-flow__actions-management-add-card-icon { + margin-bottom: 10px; +} + +.zettelkasten-flow__actions-management-add-card-header { + width: 100%; + text-align: center; +} + +.zettelkasten-flow__actions-management-add-card-header label { + font-weight: bold; + font-size: 18px; +} + +.zettelkasten-flow__actions-management-add-card-link { + text-decoration: none; + color: var(--text-accent); + font-size: 14px; + margin-top: 5px; + display: inline-block; +} + +.zettelkasten-flow__actions-management-add-card-body { + font-size: 14px; + color: var(--text-muted); + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + max-height: 3em; + line-height: 1.5em; +} + +.zettelkasten-flow__actions-list { + display: flex; + flex-wrap: wrap; + gap: 10px; + justify-content: space-between; +} + +.zettelkasten-flow__actions-list>.zettelkasten-flow__actions-management-add-card { + flex: 1 1 calc(33.333% - 10px); + /* Tres columnas */ + max-width: calc(33.333% - 10px); + /* Tres columnas */ +} + +@media (max-width: 600px) { + .zettelkasten-flow__actions-management-add { + flex-direction: column; + } + + .zettelkasten-flow__actions-list { + flex-direction: column; + } + + + .zettelkasten-flow__actions-list>.zettelkasten-flow__actions-management-add-card { + flex: 1 1 100%; + max-width: 100%; + } +} \ No newline at end of file diff --git a/src/styles/main.scss b/src/styles/main.scss index 34fc605..3e3f828 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -24,6 +24,7 @@ @import 'components/input.scss'; @import 'components/selector.scss'; @import 'components/progressBar.scss'; +@import 'components/actionAddMenu.scss'; /* This section warning the user with red tones */ .zettelkasten-flow__settings-developer-section { @@ -162,32 +163,4 @@ .zettelkasten-flow__welcome-tutorial li { /* space between list items */ padding-bottom: 0.35rem; -} - -/******************** -* ACTION MANAGEMENT -*********************/ -.zettelkasten-flow__actions-management-add { - background-color: var(--background-secondary); - color: var(--text-normal); - display: flex; - justify-content: center; - align-items: center; - margin-top: 10px; - padding: 10px 20px; - border-radius: 5px; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); - transition: background-color 0.3s, box-shadow 0.3s; - width: 100%; -} - -.zettelkasten-flow__actions-management-add:hover { - background-color: var(--background-modifier-success); - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); -} - -@media (max-width: 600px) { - .zettelkasten-flow__actions-management-add { - flex-direction: column; - } } \ No newline at end of file diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx index c0ee455..eb386af 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx @@ -1,21 +1,116 @@ import React, { useMemo, useState } from "react"; -import { ActionAddMenuProps } from "./typing"; +import { ActionAddMenuProps, ActionCardInfo } from "./typing"; import { c } from "architecture"; import { actionsStore } from "architecture/api"; +import { Icon } from "architecture/components/icon"; export function ActionAddMenu(props: ActionAddMenuProps) { const { onChange } = props; // Open/close action selector menu const [display, setDisplay] = useState(false); + + return ( +
+ + {display && ( + { + setDisplay(false); + onChange(value); + }} + /> + )} +
+ ); +} + +function ActionCardsMenu(props: ActionAddMenuProps) { + const { onChange } = props; // Hooks - const actionsMemo: Record = useMemo(() => { - const record: Record = {}; + const actionsMemo: ActionCardInfo[] = useMemo(() => { + const array: ActionCardInfo[] = []; actionsStore.getActionsKeys().forEach((key) => { - const label = actionsStore.getAction(key).getLabel(); - record[label] = key; + const rawAction = actionsStore.getAction(key); + array.push({ + icon: rawAction.getIcon(), + label: rawAction.getLabel(), + link: rawAction.link, + purpose: rawAction.purpose, + id: rawAction.id, + }); }); - return record; + return array; }, []); - return
TODO
; + const [filteredCards, setFilteredCards] = useState(actionsMemo); + return ( +
+ { + const value = e.target.value.toLowerCase(); + if (value === "" || value === null) { + setFilteredCards(actionsMemo); + } else { + setFilteredCards( + actionsMemo.filter((card) => + card.label.toLowerCase().includes(value) + ) + ); + } + }} + /> +
+ {filteredCards.map((card) => ( + { + setFilteredCards(actionsMemo); + onChange(card.id); + }} + /> + ))} +
+
+ ); +} + +function ActionCard(props: { card: ActionCardInfo; trigger: () => void }) { + const { card } = props; + return ( +
+ ); } diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx index 26cb167..1fb14f7 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx @@ -9,6 +9,7 @@ import { DndScope, Sortable } from "architecture/components/dnd"; import { ACTIONS_ACCORDION_DND_ID } from "../shared/Identifiers"; import { ActionsManager } from "../shared/managers/ActionsManager"; import { v4 as uuid4 } from "uuid"; +import { ActionAddMenu } from "./ActionAddMenu"; export function ActionsManagement(props: ActionsManagementProps) { const { modal } = props; @@ -87,21 +88,16 @@ export function ActionsManagement(props: ActionsManagementProps) { })} -
- { - if (typeof value === "string") { - const deepCopy = [...actionsState]; - deepCopy.push(actionsStore.getDefaultActionInfo(value)); - setActionsState(deepCopy); - info.actions = deepCopy; - } - }} - placeholder={t("step_builder_actions_management_add_action_tooltip")} - /> -
+ { + if (typeof value === "string") { + const deepCopy = [...actionsState]; + deepCopy.push(actionsStore.getDefaultActionInfo(value)); + setActionsState(deepCopy); + info.actions = deepCopy; + } + }} + /> ); } diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts b/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts index 8e5c8a9..a9c277d 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/typing.ts @@ -14,4 +14,12 @@ export type ActionAccordionProps = { export type ActionAddMenuProps = { onChange: (value: string | null) => void +}; + +export type ActionCardInfo = { + id: string, + icon: string, + label: string, + link: string, + purpose: string }; \ No newline at end of file From a9fb3746efd83e8b7dc83dcad27589e136371253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 20:35:57 +0200 Subject: [PATCH 3/6] aspect working well --- src/styles/components/actionAddMenu.scss | 27 +++++++++++++++---- .../actionsManagment/ActionAddMenu.tsx | 16 +++++++---- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/src/styles/components/actionAddMenu.scss b/src/styles/components/actionAddMenu.scss index 2e3b7b1..b1ce742 100644 --- a/src/styles/components/actionAddMenu.scss +++ b/src/styles/components/actionAddMenu.scss @@ -5,14 +5,14 @@ align-items: center; margin-top: 10px; padding: 10px 20px; + flex-direction: column; } .zettelkasten-flow__actions-management-add-button-active, .zettelkasten-flow__actions-management-add-button { - background-color: var(--background-primary); color: var(--text-normal); - width: 50px; - height: 50px; + width: 35px; + height: 35; border: none; border-radius: 50%; display: flex; @@ -24,21 +24,38 @@ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } +.zettelkasten-flow__actions-management-add-button { + background-color: var(--background-modifier-info); +} + .zettelkasten-flow__actions-management-add-button-active { background-color: var(--background-modifier-success); transform: rotate(45deg); } -.zettelkasten-flow__actions-management-add-menu { +.zettelkasten-flow__actions-management-add-menu, +.zettelkasten-flow__actions-management-add-menu-show { background-color: var(--background-secondary); padding: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); max-width: 600px; - margin: 10px auto; + margin-top: 20px; min-height: 300px; display: flex; flex-direction: column; + overflow: hidden; + transition: opacity 0.3s, max-height 0.3s; +} + +.zettelkasten-flow__actions-management-add-menu { + opacity: 0; + max-height: 0; +} + +.zettelkasten-flow__actions-management-add-menu-show{ + opacity: 1; + max-height: 1000px; } .zettelkasten-flow__actions-management-add-menu-search { diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx index eb386af..bbfee13 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionAddMenu.tsx @@ -19,16 +19,22 @@ export function ActionAddMenu(props: ActionAddMenuProps) { } onClick={() => setDisplay(!display)} > - {display ? : } + - {display && ( +
{ setDisplay(false); onChange(value); }} /> - )} +
); } @@ -53,7 +59,7 @@ function ActionCardsMenu(props: ActionAddMenuProps) { const [filteredCards, setFilteredCards] = useState(actionsMemo); return ( -
+ <> ))}
-
+ ); } From 89370ad7af1eedb95da3a01892c2c2459657f558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 20:39:48 +0200 Subject: [PATCH 4/6] fix aspect when filter to 2 or less --- src/styles/components/actionAddMenu.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/components/actionAddMenu.scss b/src/styles/components/actionAddMenu.scss index b1ce742..4b1849f 100644 --- a/src/styles/components/actionAddMenu.scss +++ b/src/styles/components/actionAddMenu.scss @@ -39,7 +39,7 @@ padding: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); - max-width: 600px; + min-width: 600px; margin-top: 20px; min-height: 300px; display: flex; From c172fb5e37d9728141ba063badd17fd4111152ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 20:43:09 +0200 Subject: [PATCH 5/6] code smells fixed --- package-lock.json | 281 +++++++++++++----- package.json | 8 +- .../actionsManagment/ActionsManagement.tsx | 11 - 3 files changed, 204 insertions(+), 96 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e8858b..08d5df4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,18 +19,18 @@ "@types/react": "18.3.2", "@types/react-dom": "18.3.0", "@types/uuid": "9.0.8", - "@typescript-eslint/eslint-plugin": "7.9.0", + "@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/parser": "7.9.0", "builtin-modules": "4.0.0", "codemirror": "6.0.1", "esbuild": "^0.20.2", - "esbuild-sass-plugin": "3.2.0", + "esbuild-sass-plugin": "3.3.0", "eslint": "^8.57.0", "eslint-plugin-react": "7.34.1", "jest": "29.7.0", "obsidian": "1.5.7-1", - "sass": "1.77.1", - "ts-jest": "29.1.2", + "sass": "1.77.2", + "ts-jest": "29.1.3", "tslib": "2.6.2", "typescript": "5.4.5", "zustand": "4.5.2" @@ -1201,9 +1201,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "dev": true }, "node_modules/@istanbuljs/load-nyc-config": { @@ -1914,16 +1914,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.9.0.tgz", - "integrity": "sha512-6e+X0X3sFe/G/54aC3jt0txuMTURqLyekmEHViqyA2VnxhLMpvA6nqmcjIy+Cr9tLDHPssA74BP5Mx9HQIxBEA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.10.0.tgz", + "integrity": "sha512-PzCr+a/KAef5ZawX7nbyNwBDtM1HdLIT53aSA2DDlxmxMngZ43O8SIePOeX8H5S+FHXeI6t97mTt/dDdzY4Fyw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/type-utils": "7.9.0", - "@typescript-eslint/utils": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0", + "@typescript-eslint/scope-manager": "7.10.0", + "@typescript-eslint/type-utils": "7.10.0", + "@typescript-eslint/utils": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -1946,17 +1946,33 @@ } } }, - "node_modules/@typescript-eslint/parser": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.9.0.tgz", - "integrity": "sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.10.0.tgz", + "integrity": "sha512-7L01/K8W/VGl7noe2mgH0K7BE29Sq6KAbVmxurj8GGaPDZXPr8EEQ2seOeAS+mEV9DnzxBQB6ax6qQQ5C6P4xg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/typescript-estree": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0", - "debug": "^4.3.4" + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/type-utils": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.10.0.tgz", + "integrity": "sha512-D7tS4WDkJWrVkuzgm90qYw9RdgBcrWmbbRkrLA4d7Pg3w0ttVGDsvYGV19SH8gPR5L7OtcN5J1hTtyenO9xE9g==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "7.10.0", + "@typescript-eslint/utils": "7.10.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -1974,14 +1990,77 @@ } } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.9.0.tgz", - "integrity": "sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.10.0.tgz", + "integrity": "sha512-7fNj+Ya35aNyhuqrA1E/VayQX9Elwr8NKZ4WueClR3KwJ7Xx9jcCdOrLW04h51de/+gNbyFMs+IDxh5xIwfbNg==", + "dev": true, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.10.0.tgz", + "integrity": "sha512-LXFnQJjL9XIcxeVfqmNj60YhatpRLt6UhdlFwAkjNc6jSUlK8zQOl1oktAP8PlWFzPQC1jny/8Bai3/HPuvN5g==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0" + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.10.0.tgz", + "integrity": "sha512-olzif1Fuo8R8m/qKkzJqT7qwy16CzPRWBvERS0uvyc+DHd8AKbO4Jb7kpAvVzMmZm8TrHnI7hvjN4I05zow+tg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.10.0", + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/typescript-estree": "7.10.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.10.0.tgz", + "integrity": "sha512-9ntIVgsi6gg6FIq9xjEO4VQJvwOqA3jaBFQJ/6TK5AvEup2+cECI6Fh7QiBxmfMHXU0V0J4RyPeOU1VDNzl9cg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.10.0", + "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -1991,16 +2070,41 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils": { + "node_modules/@typescript-eslint/eslint-plugin/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/parser": { "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.9.0.tgz", - "integrity": "sha512-6Qy8dfut0PFrFRAZsGzuLoM4hre4gjzWJB6sUvdunCYZsYemTkzZNwF1rnGea326PHPT3zn5Lmg32M/xfJfByA==", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.9.0.tgz", + "integrity": "sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==", "dev": true, "dependencies": { + "@typescript-eslint/scope-manager": "7.9.0", + "@typescript-eslint/types": "7.9.0", "@typescript-eslint/typescript-estree": "7.9.0", - "@typescript-eslint/utils": "7.9.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" + "@typescript-eslint/visitor-keys": "7.9.0", + "debug": "^4.3.4" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -2018,6 +2122,23 @@ } } }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.9.0.tgz", + "integrity": "sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/visitor-keys": "7.9.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/types": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.9.0.tgz", @@ -2083,28 +2204,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@typescript-eslint/utils": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.9.0.tgz", - "integrity": "sha512-5KVRQCzZajmT4Ep+NEgjXCvjuypVvYHUW7RHlXzNPuak2oWpVoD1jf5xCP0dPAuNIchjC7uQyvbdaSTFaLqSdA==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/typescript-estree": "7.9.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, "node_modules/@typescript-eslint/visitor-keys": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.9.0.tgz", @@ -2129,9 +2228,9 @@ "dev": true }, "node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -3211,16 +3310,16 @@ } }, "node_modules/esbuild-sass-plugin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/esbuild-sass-plugin/-/esbuild-sass-plugin-3.2.0.tgz", - "integrity": "sha512-a+e7rYx4sDHgtKWN2n6/7lH5fgfvJaT6AMHmFhBKZy2ZTSN91X5q12l+DNVYJ8cWViEjJNWEd7k7UVcCg/2S/Q==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/esbuild-sass-plugin/-/esbuild-sass-plugin-3.3.0.tgz", + "integrity": "sha512-btH77lGkASp1VHyji0dAanomatCwq1dmfrjAIjhv+GgR9LK2m1hbRr+t4kbjveyqCwmdBfRkboj+Pfaruok1Mg==", "dev": true, "dependencies": { "resolve": "^1.22.8", "sass": "^1.71.1" }, "peerDependencies": { - "esbuild": "^0.20.1", + "esbuild": ">=0.20.1", "sass-embedded": "^1.71.1" } }, @@ -3623,12 +3722,13 @@ } }, "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { - "flatted": "^3.1.0", + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" }, "engines": { @@ -3636,9 +3736,9 @@ } }, "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "dev": true }, "node_modules/for-each": { @@ -3814,9 +3914,9 @@ } }, "node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -5147,6 +5247,12 @@ "node": ">=4" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -5192,6 +5298,15 @@ "node": ">=4.0" } }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -6133,9 +6248,9 @@ } }, "node_modules/sass": { - "version": "1.77.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.1.tgz", - "integrity": "sha512-OMEyfirt9XEfyvocduUIOlUSkWOXS/LAt6oblR/ISXCTukyavjex+zQNm51pPCOiFKY1QpWvEH1EeCkgyV3I6w==", + "version": "1.77.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.2.tgz", + "integrity": "sha512-eb4GZt1C3avsX3heBNlrc7I09nyT00IUuo4eFhAbeXWU2fvA7oXI53SxODVAA+zgZCk9aunAZgO+losjR3fAwA==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -6900,9 +7015,9 @@ } }, "node_modules/ts-jest": { - "version": "29.1.2", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", - "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", + "version": "29.1.3", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.3.tgz", + "integrity": "sha512-6L9qz3ginTd1NKhOxmkP0qU3FyKjj5CPoY+anszfVn6Pmv/RIKzhiMCsH7Yb7UvJR9I2A64rm4zQl531s2F1iw==", "dev": true, "dependencies": { "bs-logger": "0.x", @@ -6918,10 +7033,11 @@ "ts-jest": "cli.js" }, "engines": { - "node": "^16.10.0 || ^18.0.0 || >=20.0.0" + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", "@jest/types": "^29.0.0", "babel-jest": "^29.0.0", "jest": "^29.0.0", @@ -6931,6 +7047,9 @@ "@babel/core": { "optional": true }, + "@jest/transform": { + "optional": true + }, "@jest/types": { "optional": true }, diff --git a/package.json b/package.json index fb1f6ff..0c8b9ca 100644 --- a/package.json +++ b/package.json @@ -19,21 +19,21 @@ "@types/react": "18.3.2", "@types/react-dom": "18.3.0", "@types/uuid": "9.0.8", - "@typescript-eslint/eslint-plugin": "7.9.0", + "@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/parser": "7.9.0", "builtin-modules": "4.0.0", "codemirror": "6.0.1", "esbuild": "^0.20.2", - "esbuild-sass-plugin": "3.2.0", + "esbuild-sass-plugin": "3.3.0", "eslint": "^8.57.0", "eslint-plugin-react": "7.34.1", "jest": "29.7.0", "obsidian": "1.5.7-1", - "ts-jest": "29.1.2", + "ts-jest": "29.1.3", "tslib": "2.6.2", "typescript": "5.4.5", "zustand": "4.5.2", - "sass": "1.77.1" + "sass": "1.77.2" }, "dependencies": { "@popperjs/core": "2.11.8", diff --git a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx index 1fb14f7..a2c1ae1 100644 --- a/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx +++ b/src/zettelkasten/modals/handlers/components/actionsManagment/ActionsManagement.tsx @@ -1,9 +1,7 @@ import React, { useMemo, useState } from "react"; import { ActionsManagementProps } from "./typing"; import { ActionAccordion } from "./ActionAccordion"; -import { Search } from "architecture/components/core"; import { actionsStore } from "architecture/api"; -import { c } from "architecture"; import { t } from "architecture/lang"; import { DndScope, Sortable } from "architecture/components/dnd"; import { ACTIONS_ACCORDION_DND_ID } from "../shared/Identifiers"; @@ -44,15 +42,6 @@ export function ActionsManagement(props: ActionsManagementProps) { info.actions = newOptionsState; }; - const actionsMemo: Record = useMemo(() => { - const record: Record = {}; - actionsStore.getActionsKeys().forEach((key) => { - const label = actionsStore.getAction(key).getLabel(); - record[label] = key; - }); - return record; - }, []); - const managerMemo = useMemo(() => { return ActionsManager.init(updateActions); }, [actionsState]); From 30d460c02145dd7fe24623cf2335c37e6e585b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20G=C3=B3mez=20Bermejo?= Date: Tue, 21 May 2024 20:43:35 +0200 Subject: [PATCH 6/6] up version --- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index b4712f2..384defa 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "zettelflow", "name": "ZettelFlow", - "version": "2.4.1", + "version": "2.4.2", "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 08d5df4..4ea5116 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zettelflow", - "version": "2.4.1", + "version": "2.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "zettelflow", - "version": "2.4.1", + "version": "2.4.2", "license": "MIT", "dependencies": { "@popperjs/core": "2.11.8", diff --git a/package.json b/package.json index 0c8b9ca..87d8226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zettelflow", - "version": "2.4.1", + "version": "2.4.2", "description": "A plugin for Obsidian that allows you to create and manage notes in a ZettelFlow-like way.", "main": "main.js", "scripts": {