@dev.smartpricing/message-composer-layer 1.0.18 → 1.0.20

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.
@@ -24,7 +24,7 @@ const propertyItems = computed(() =>
24
24
  />
25
25
  </UFormField>
26
26
 
27
- <UFormField :label="$t('pages.brands.fields.properties')">
27
+ <!-- <UFormField :label="$t('pages.brands.fields.properties')">
28
28
  <USelectMenu
29
29
  v-model="selectedPropertyIds"
30
30
  :items="propertyItems"
@@ -33,5 +33,5 @@ const propertyItems = computed(() =>
33
33
  :placeholder="$t('pages.brands.fields.properties_placeholder')"
34
34
  class="w-full"
35
35
  />
36
- </UFormField>
36
+ </UFormField> -->
37
37
  </template>
@@ -32,17 +32,17 @@ const filteredBrands = computed(() => {
32
32
 
33
33
  // Table config
34
34
  const columns: TableColumn<BrandFromDb>[] = [
35
- {
36
- id: 'logo',
37
- header: '',
38
- enableSorting: false,
39
- meta: {
40
- class: {
41
- th: 'w-12',
42
- td: 'w-12',
43
- },
44
- },
45
- },
35
+ // {
36
+ // id: 'logo',
37
+ // header: '',
38
+ // enableSorting: false,
39
+ // meta: {
40
+ // class: {
41
+ // th: 'w-12',
42
+ // td: 'w-12',
43
+ // },
44
+ // },
45
+ // },
46
46
  {
47
47
  accessorKey: 'name',
48
48
  header: (ctx) => getSortableHeader(ctx, t('pages.brands.column_name')),
@@ -20,8 +20,8 @@ defineOptions({
20
20
  {{ $t('editor.email.generalStyle.brandSection') }}
21
21
  </h3>
22
22
  <USelectMenu
23
- v-model="brand as any"
24
- :items="brands as any"
23
+ v-model="brand"
24
+ :items="brands"
25
25
  label-key="name"
26
26
  :placeholder="$t('editor.email.generalStyle.selectBrand')"
27
27
  class="w-full"
@@ -22,6 +22,7 @@ export function useBrandQuery(id: MaybeRefOrGetter<string>) {
22
22
  key: () => ['brands', toValue(id)],
23
23
  query: () => brandsApi.getById(toValue(id)),
24
24
  staleTime: 2 * 60 * 1000,
25
+ enabled: () => Boolean(toValue(id)),
25
26
  })
26
27
  }
27
28
 
@@ -13,10 +13,10 @@ import { brandsApi } from '~/api'
13
13
  export const useEmailEditorStore = defineStore('emailEditor', () => {
14
14
  // State
15
15
  const blocks = ref<EmailBlock[]>([])
16
- const selectedBlockId = ref<string | null>(null)
16
+ const selectedBlockId = ref<string>()
17
17
  const globalSettings = ref<EmailGlobalSettings>({})
18
18
  const brands = ref<BrandFromDb[]>([])
19
- const brand = ref<BrandFromDb | null>(null)
19
+ const brand = ref<BrandFromDb>()
20
20
 
21
21
  // Brand computed helpers
22
22
  const brandId = computed(() => brand.value?.id ?? null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-layer",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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.18"
42
+ "@dev.smartpricing/message-composer-utils": "3.1.20"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@nuxt/eslint": "^1.15.2",