From 623dbbdcdf6a90e147f6b578c266aee08e6782e9 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Fri, 9 Aug 2024 12:41:03 +0100 Subject: [PATCH] fix: add setBasePath util function to allow changing icon import path --- components/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/index.ts b/components/index.ts index 56f4d19f..1fec65bc 100644 --- a/components/index.ts +++ b/components/index.ts @@ -1,6 +1,8 @@ // Index to import all components together // import '@hotosm/ui/components'; +import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js'; + // Default Shoelace exports import SlAlert from '@shoelace-style/shoelace/dist/components/alert/alert.component.js'; import SlAnimatedImage from '@shoelace-style/shoelace/dist/components/animated-image/animated-image.component.js'; @@ -194,6 +196,9 @@ declare global { } export { + // setBasePath helper to use the UI behind proxies etc + setBasePath, + // Standard shoelace components SlAlert, SlAnimatedImage, SlAnimation,