@dev.smartpricing/message-composer-layer 4.1.1-smartness.3 → 4.1.1-smartness.4

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
@@ -17,7 +17,9 @@ export const apiClient = createApiClient({
17
17
  cookieName: (useRuntimeConfig().public.ENV_CSRF_COOKIE_NAME as string) || 'smt_csrf',
18
18
  },
19
19
  auth: {
20
- refreshBaseURL: (useRuntimeConfig().public.BACKEND_BASE_URL as string) || (useRuntimeConfig().public.PLATFORM_URL as string),
20
+ refreshBaseURL:
21
+ (useRuntimeConfig().public.BACKEND_BASE_URL as string) ||
22
+ (useRuntimeConfig().public.PLATFORM_URL as string),
21
23
  platformURL: useRuntimeConfig().public.PLATFORM_URL as string,
22
24
  onRefreshFailed: () => {
23
25
  useNuxtApp().callHook('composer:auth-error', { statusCode: 401 })
@@ -29,9 +31,6 @@ export const apiClient = createApiClient({
29
31
  if (store.organization_id) {
30
32
  options.headers.set('sm-organization-id', store.organization_id)
31
33
  }
32
- if (store.owner_id) {
33
- options.headers.set('sm-owner', store.owner_id) // deprecated: remove after full migration
34
- }
35
34
  if (store.metaWabaId) {
36
35
  options.headers.set('x-meta-waba-id', store.metaWabaId)
37
36
  }
@@ -50,8 +49,7 @@ export const apiClient = createApiClient({
50
49
  title: error.code,
51
50
  description: error.message,
52
51
  })
53
- }
54
- else {
52
+ } else {
55
53
  useToast().add({
56
54
  color: 'error',
57
55
  title: 'Error',
@@ -9,8 +9,6 @@ export interface ComposerContext {
9
9
  /** @deprecated No longer used — auth is cookie-based via platform layer */
10
10
  authenticationToken?: Ref<string>
11
11
  organization_id?: Ref<string>
12
- /** @deprecated use organization_id */
13
- owner_id?: Ref<string>
14
12
  product?: Ref<AppContextConfig['product']>
15
13
  strategy?: Ref<AppContextConfig['strategy']>
16
14
  channels?: Ref<AppContextConfig['channels']>
@@ -10,9 +10,7 @@ export const useAppContextStore = defineStore('appContext', () => {
10
10
  const isInitialized = ref<boolean>(false)
11
11
 
12
12
  // Proxy from injection with defaults (same interface as before)
13
- const organization_id = computed(() => ctx.organization_id?.value ?? ctx.owner_id?.value ?? '')
14
- /** @deprecated use organization_id */
15
- const owner_id = computed(() => ctx.owner_id?.value ?? ctx.organization_id?.value ?? '')
13
+ const organization_id = computed(() => ctx.organization_id?.value ?? '')
16
14
  const product = computed<NonNullable<AppContextConfig['product']>>(
17
15
  () => ctx.product?.value ?? 'browser',
18
16
  )
@@ -83,7 +81,6 @@ export const useAppContextStore = defineStore('appContext', () => {
83
81
  metaWabaId,
84
82
  metaAccessToken,
85
83
  organization_id,
86
- owner_id,
87
84
  default_tags,
88
85
  isAdmin,
89
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-layer",
3
- "version": "4.1.1-smartness.3",
3
+ "version": "4.1.1-smartness.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -12,7 +12,7 @@
12
12
  "app.config.ts"
13
13
  ],
14
14
  "dependencies": {
15
- "@dev.smartpricing/platform-layer": "latest",
15
+ "@dev.smartpricing/platform-layer": "^0.0.6",
16
16
  "@formkit/drag-and-drop": "^0.5.3",
17
17
  "@pinia/colada": "^1.3.0",
18
18
  "@tiptap/extension-character-count": "^3.23.4",
@@ -36,14 +36,14 @@
36
36
  "vue-router": "^5.0.7",
37
37
  "vue3-emoji-picker": "^1.1.8",
38
38
  "zod": "^4.4.3",
39
- "@dev.smartpricing/message-composer-utils": "4.1.3-smartness.1"
39
+ "@dev.smartpricing/message-composer-utils": "4.1.3-smartness.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@nuxt/eslint": "^1.15.2",
43
43
  "@nuxt/test-utils": "^4.0.3",
44
44
  "@playwright/test": "^1.60.0",
45
45
  "dotenv": "^17.4.2",
46
- "nuxt-ui-layer": "git+ssh://git@github.com:smartpricing/smartness-nuxt-ui#v1.6.6",
46
+ "nuxt-ui-layer": "git+ssh://git@github.com:smartpricing/smartness-nuxt-ui#v1.7.1-platform.1",
47
47
  "vue-tsc": "^3.2.9"
48
48
  },
49
49
  "peerDependencies": {