@dev.smartpricing/message-composer-layer 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,7 @@ function onSubmit() {
112
112
  })
113
113
  }
114
114
 
115
- const open = ref(false)
115
+ const open = defineModel<boolean>('open', { default: false })
116
116
  const formRef = ref()
117
117
 
118
118
  watch(status, (newStatus) => {
@@ -141,14 +141,16 @@ watch(status, (newStatus) => {
141
141
  :close="{ 'data-testid': sendTestEmailModalTestIds.modalCloseButton }"
142
142
  :data-testid="sendTestEmailModalTestIds.modal"
143
143
  >
144
- <UButton
145
- icon="ph:envelope-simple-bold"
146
- :label="$t('pages.email.send_test')"
147
- size="md"
148
- color="primary"
149
- variant="ghost"
150
- :data-testid="sendTestEmailModalTestIds.triggerButton"
151
- />
144
+ <slot name="trigger">
145
+ <UButton
146
+ icon="ph:envelope-simple-bold"
147
+ :label="$t('pages.email.send_test')"
148
+ size="md"
149
+ color="primary"
150
+ variant="ghost"
151
+ :data-testid="sendTestEmailModalTestIds.triggerButton"
152
+ />
153
+ </slot>
152
154
 
153
155
  <template #body>
154
156
  <UForm ref="formRef" :schema="schema" :state="state" @submit="onSubmit">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-layer",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -39,7 +39,7 @@
39
39
  "vue-router": "^5.0.6",
40
40
  "vue3-emoji-picker": "^1.1.8",
41
41
  "zod": "^4.4.1",
42
- "@dev.smartpricing/message-composer-utils": "3.1.8"
42
+ "@dev.smartpricing/message-composer-utils": "3.1.9"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@nuxt/eslint": "^1.15.2",