@dev.smartpricing/message-composer-layer 4.0.4 → 4.1.1-smartness.0

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.
package/app/api/client.ts CHANGED
@@ -20,8 +20,8 @@ export const apiClient = ofetch.create({
20
20
  if (store.authenticationToken) {
21
21
  options.headers.set('Authorization', `Bearer ${store.authenticationToken}`)
22
22
  }
23
- if (store.owner_id) {
24
- options.headers.set('sm-owner', store.owner_id)
23
+ if (store.organization_id) {
24
+ options.headers.set('sm-organization-id', store.organization_id)
25
25
  }
26
26
  if (store.metaWabaId) {
27
27
  options.headers.set('x-meta-waba-id', store.metaWabaId)
@@ -24,6 +24,8 @@
24
24
  :placeholder="$t('common.search')"
25
25
  :groups="languageGroups"
26
26
  :data-testid="languageListTestIds.commandPalette"
27
+ class="h-80"
28
+ :fuse="{ resultLimit: 100 }"
27
29
  />
28
30
  </template>
29
31
  </UPopover>
@@ -7,7 +7,7 @@ export interface OrganizationData {
7
7
 
8
8
  export interface ComposerContext {
9
9
  authenticationToken: Ref<string>
10
- owner_id?: Ref<string>
10
+ organization_id?: Ref<string>
11
11
  product?: Ref<AppContextConfig['product']>
12
12
  strategy?: Ref<AppContextConfig['strategy']>
13
13
  channels?: Ref<AppContextConfig['channels']>
@@ -56,7 +56,7 @@ const tabItems = computed(() => {
56
56
  <template #actions>
57
57
  <CreateTemplateButton />
58
58
  </template>
59
-
59
+ lululul
60
60
  <ComposerMessageLibrary v-model:render-type="renderType" />
61
61
  </LayoutBasePage>
62
62
  </template>
@@ -11,7 +11,7 @@ export const useAppContextStore = defineStore('appContext', () => {
11
11
 
12
12
  // Proxy from injection with defaults (same interface as before)
13
13
  const authenticationToken = computed(() => ctx.authenticationToken.value)
14
- const owner_id = computed(() => ctx.owner_id?.value ?? '')
14
+ const organization_id = computed(() => ctx.organization_id?.value ?? '')
15
15
  const product = computed<NonNullable<AppContextConfig['product']>>(
16
16
  () => ctx.product?.value ?? 'browser',
17
17
  )
@@ -52,7 +52,7 @@ export const useAppContextStore = defineStore('appContext', () => {
52
52
  mainLanguage: mainLanguage.value,
53
53
  metaWabaId: metaWabaId.value,
54
54
  metaAccessToken: metaAccessToken.value,
55
- owner_id: owner_id.value,
55
+ organization_id: organization_id.value,
56
56
  default_tags: default_tags.value,
57
57
  initializationSource: 'injection',
58
58
  }))
@@ -87,7 +87,7 @@ export const useAppContextStore = defineStore('appContext', () => {
87
87
  dinamicValues,
88
88
  metaWabaId,
89
89
  metaAccessToken,
90
- owner_id,
90
+ organization_id,
91
91
  default_tags,
92
92
  isAdmin,
93
93
 
@@ -34,7 +34,6 @@ export const useEmailComposerStore = defineStore('emailComposer', () => {
34
34
 
35
35
  // ── Computed ──────────────────────────────────────────────────────
36
36
  const messageGroupData = computed(() => ({
37
- user_id: '',
38
37
  name: name.value,
39
38
  category: category.value,
40
39
  visibility: isInternal.value ? 'internal' : 'public',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-layer",
3
- "version": "4.0.4",
3
+ "version": "4.1.1-smartness.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -38,7 +38,7 @@
38
38
  "vue-router": "^5.0.7",
39
39
  "vue3-emoji-picker": "^1.1.8",
40
40
  "zod": "^4.4.3",
41
- "@dev.smartpricing/message-composer-utils": "4.0.5"
41
+ "@dev.smartpricing/message-composer-utils": "4.1.1-smartness.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@nuxt/eslint": "^1.15.2",