diff --git a/apps/api/src/app/workflows-v2/shared/preview-control-value-default.ts b/apps/api/src/app/workflows-v2/shared/preview-control-value-default.ts deleted file mode 100644 index 35f663dc1e8..00000000000 --- a/apps/api/src/app/workflows-v2/shared/preview-control-value-default.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { TipTapNode } from '@novu/shared'; - -const EMPTY_STRING = ''; -const WHITESPACE = ' '; -const DEFAULT_URL_TARGET = '_blank'; -const DEFAULT_URL_PATH = 'https://www.redirect-example.com'; -const DEFAULT_TIP_TAP_EMPTY_PREVIEW: TipTapNode = { - type: 'doc', - content: [ - { - type: 'paragraph', - attrs: { - textAlign: 'left', - }, - content: [ - { - type: 'text', - text: EMPTY_STRING, - }, - ], - }, - ], -}; - -/** - * Default control values used specifically for preview purposes. - * These values are designed to be parsable by Liquid.js and provide - * safe fallback values when generating preview. - */ -export const previewControlValueDefault = { - subject: EMPTY_STRING, - body: WHITESPACE, - avatar: EMPTY_STRING, - emailEditor: DEFAULT_TIP_TAP_EMPTY_PREVIEW, - data: {}, - 'primaryAction.label': EMPTY_STRING, - 'primaryAction.redirect.url': DEFAULT_URL_PATH, - 'primaryAction.redirect.target': DEFAULT_URL_TARGET, - 'secondaryAction.label': EMPTY_STRING, - 'secondaryAction.redirect.url': DEFAULT_URL_PATH, - 'secondaryAction.redirect.target': DEFAULT_URL_TARGET, - 'redirect.url': DEFAULT_URL_PATH, - 'redirect.target': DEFAULT_URL_TARGET, -} as const;