Skip to content

Commit c37b846

Browse files
committed
clean up button builder modal
1 parent a27d75b commit c37b846

21 files changed

+554
-372
lines changed

automation/build/esbuild.dev.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ const context = await esbuild.context({
5656
preprocess: sveltePreprocess(),
5757
filterWarnings: warning => {
5858
// we don't want warnings from node modules that we can do nothing about
59-
return !warning.filename?.includes('node_modules');
59+
return !(
60+
warning.filename?.includes('node_modules') || warning.message.includes('has unused export property')
61+
);
6062
},
6163
}),
6264
],

packages/core/src/api/InternalAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { type ModalContent } from 'packages/core/src/modals/ModalContent';
1717
import {
1818
ButtonBuilderModal,
1919
type ButtonBuilderModalOptions,
20-
} from 'packages/core/src/modals/modalContents/ButtonBuilderModal';
20+
} from 'packages/core/src/modals/modalContents/buttonBuilder/ButtonBuilderModal';
2121
import { SvelteModalContent } from 'packages/core/src/modals/modalContents/SvelteModalContent';
2222
import DatePickerInput from 'packages/core/src/fields/inputFields/fields/DatePicker/DatePicker.svelte';
2323
import ImageSuggesterModalComponent from 'packages/core/src/modals/modalContents/ImageSuggesterModalComponent.svelte';

packages/core/src/modals/modalContents/ButtonBuilderModalComponent.svelte

Lines changed: 0 additions & 363 deletions
This file was deleted.

packages/core/src/modals/modalContents/TextPromptModalContent.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts">
22
import { TextPromptModalOptions } from 'packages/core/src/api/InternalAPI';
3-
import Button from '../../utils/components/Button.svelte';
4-
import { ButtonStyleType } from '../../config/ButtonConfig';
5-
import ModalButtonGroup from '../../utils/components/ModalButtonGroup.svelte';
3+
import Button from 'packages/core/src/utils/components/Button.svelte';
4+
import { ButtonStyleType } from 'packages/core/src/config/ButtonConfig';
5+
import ModalButtonGroup from 'packages/core/src/utils/components/ModalButtonGroup.svelte';
66
77
export let options: TextPromptModalOptions;
88
let value: string = options.value;

0 commit comments

Comments
 (0)