From 0b239130b5014cd05f56518317743692b0a4686e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix?= Date: Wed, 23 Oct 2024 18:04:22 +0200 Subject: [PATCH 1/2] feat(add-get-dom-elements-export): add named export for getDomElements So that it is accessible from the outside, at least useful to fully customize ConnectionWrapper. Also, kept it as default to not break anything. --- packages/renderer-vue/src/connection/domResolver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/renderer-vue/src/connection/domResolver.ts b/packages/renderer-vue/src/connection/domResolver.ts index dc16a578..f1864048 100644 --- a/packages/renderer-vue/src/connection/domResolver.ts +++ b/packages/renderer-vue/src/connection/domResolver.ts @@ -10,7 +10,7 @@ export function getDomElementOfNode(node: AbstractNode): HTMLElement | null { return document.getElementById(node.id); } -export default function getDomElements(ni: NodeInterface): IResolvedDomElements { +export function getDomElements(ni: NodeInterface): IResolvedDomElements { const interfaceDOM = document.getElementById(ni.id); const portDOM = interfaceDOM?.getElementsByClassName("__port"); @@ -20,3 +20,4 @@ export default function getDomElements(ni: NodeInterface): IResolvedDomElements port: portDOM && portDOM.length > 0 ? (portDOM[0] as HTMLElement) : null, }; } +export default getDomElements; From f4087fbdd3e4a701f7c860c60bbee0fec5c291e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix?= Date: Thu, 24 Oct 2024 09:47:36 +0200 Subject: [PATCH 2/2] feat(add-get-dom-elements-export): Removed default export for domResolver Also, updated imports to remove default import usage. --- packages/renderer-vue/src/components/Minimap.vue | 2 +- packages/renderer-vue/src/connection/ConnectionWrapper.vue | 6 +++--- .../renderer-vue/src/connection/TemporaryConnection.vue | 6 +++--- packages/renderer-vue/src/connection/domResolver.ts | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/renderer-vue/src/components/Minimap.vue b/packages/renderer-vue/src/components/Minimap.vue index 7a3de411..3852fc39 100644 --- a/packages/renderer-vue/src/components/Minimap.vue +++ b/packages/renderer-vue/src/components/Minimap.vue @@ -14,7 +14,7 @@