From 495eb0b136a760f1e9d1ff5d3c08949ecf846b3d Mon Sep 17 00:00:00 2001 From: virginieVachet Date: Thu, 25 Jul 2024 14:52:03 +0200 Subject: [PATCH] export --- packages/synapse-bridge/package.json | 12 ++++++++++-- packages/synapse-bridge/src/constants/index.ts | 4 ++-- .../src/elements/DownloadBtn/DownloadBtn.vue | 4 ++-- .../elements/DownloadBtn/tests/DownloadBtn.spec.ts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/synapse-bridge/package.json b/packages/synapse-bridge/package.json index 802337c68c..ecb4d75b3b 100644 --- a/packages/synapse-bridge/package.json +++ b/packages/synapse-bridge/package.json @@ -20,11 +20,19 @@ "require": "./dist/synapse-bridge.umd.cjs" }, "./style.css": "./dist/style.css", - "./constants": "./src/constants/index.ts", + "./constants/*": "./src/constants/*/index.ts", + "./constants/enums/StateEnum": "./src/constants/enums/StateEnum.ts", + "./constants/enums/ThemeEnum": "./src/constants/enums/ThemeEnum.ts", + "./templates/CookiesPage/CookiesInformation/TypeEnum.ts": "./src/templates/CookiesPage/CookiesInformation/TypeEnum.ts", "./functions/*": "./src/functions/*/index.ts", "./modules/*": "./src/modules/*/index.ts", "./helpers/*": "./src/helpers/*/index.ts", - "./rules/*": "./src/rules/*/index.ts" + "./rules/*": "./src/rules/*/index.ts", + "./templates/*": "./src/templates/*/index.ts", + "./patterns/*": "./src/patterns/*/index.ts", + "./elements/*": "./src/elements/*/index.ts" + + }, "types": "./dist/index.d.ts", "scripts": { diff --git a/packages/synapse-bridge/src/constants/index.ts b/packages/synapse-bridge/src/constants/index.ts index 14835dd7d8..fc5397abe7 100644 --- a/packages/synapse-bridge/src/constants/index.ts +++ b/packages/synapse-bridge/src/constants/index.ts @@ -1,8 +1,8 @@ import dayjs from 'dayjs' import { formatDate } from '../functions/formatDate' -import {StateEnum} from './enums/StateEnum' +import { StateEnum, STATE_ENUM } from './enums/StateEnum' import { ThemeEnum, THEME_ENUM_VALUES } from './enums/ThemeEnum' export const TODAY = formatDate(dayjs()) -export { StateEnum } +export { StateEnum, STATE_ENUM } export { ThemeEnum, THEME_ENUM_VALUES } diff --git a/packages/synapse-bridge/src/elements/DownloadBtn/DownloadBtn.vue b/packages/synapse-bridge/src/elements/DownloadBtn/DownloadBtn.vue index 9ab44a92b9..786b166e54 100644 --- a/packages/synapse-bridge/src/elements/DownloadBtn/DownloadBtn.vue +++ b/packages/synapse-bridge/src/elements/DownloadBtn/DownloadBtn.vue @@ -15,8 +15,8 @@ import { downloadFile } from '@/functions/downloadFile' import { customizable, Options } from '@/mixins/customizable' -import { StateEnum } from '@/constants/enums/StateEnum' -import { IndexedObject } from '@/types' +import { StateEnum } from '../../constants/enums/StateEnum' +import { IndexedObject } from '../../types' import { ContentHeadersEnum } from './ContentHeadersEnum' import { FileInfo } from './types' diff --git a/packages/synapse-bridge/src/elements/DownloadBtn/tests/DownloadBtn.spec.ts b/packages/synapse-bridge/src/elements/DownloadBtn/tests/DownloadBtn.spec.ts index 2db0d94698..e8176bc57f 100644 --- a/packages/synapse-bridge/src/elements/DownloadBtn/tests/DownloadBtn.spec.ts +++ b/packages/synapse-bridge/src/elements/DownloadBtn/tests/DownloadBtn.spec.ts @@ -8,7 +8,7 @@ import { filePromiseNoHeaders, } from './data/filePromise.ts' import DownloadBtn from '../' -import { StateEnum } from '@/constants/enums/StateEnum.ts' +import { StateEnum } from '../../../constants/enums/StateEnum.ts' describe('DownloadBtn', () => { let wrapper: any