From 037f4582ed700246e82f384fd10468c900b6203e Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Fri, 13 Dec 2024 09:46:42 +0530 Subject: [PATCH] whatsapp group fields node --- package.json | 2 +- src/components/floweditor/FlowEditor.helper.ts | 6 +++++- yarn.lock | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 278fcacce..378e3540f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emoji-mart/react": "^1.1.1", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", - "@glific/flow-editor": "^1.26.3-17", + "@glific/flow-editor": "^1.26.3-18", "@lexical/react": "^0.17.1", "@mui/icons-material": "^6.1.1", "@mui/material": "^6.1.1", diff --git a/src/components/floweditor/FlowEditor.helper.ts b/src/components/floweditor/FlowEditor.helper.ts index c510ba13a..87cf411cc 100644 --- a/src/components/floweditor/FlowEditor.helper.ts +++ b/src/components/floweditor/FlowEditor.helper.ts @@ -52,7 +52,8 @@ export const setConfig = (uuid: any, isTemplate: boolean) => { simulateResume: false, globals: `${glificBase}globals`, groups: `${glificBase}groups`, - fields: `${glificBase}fields`, + fields: `${glificBase}fields?scope=contact`, + waGroupFields: `${glificBase}fields?scope=wa_group`, labels: `${glificBase}labels`, channels: `${glificBase}channels`, classifiers: `${glificBase}classifiers`, @@ -98,6 +99,9 @@ export const setConfig = (uuid: any, isTemplate: boolean) => { config.filters.push('ticketer'); } + if (services.whatsappGroupEnabled) { + config.filters.push('groups'); + } return config; }; diff --git a/yarn.lock b/yarn.lock index da6de02f3..b2f0ab3ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -652,10 +652,10 @@ resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz#81fd50d11e2c32b2d6241470e3185b70c7b30699" integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg== -"@glific/flow-editor@^1.26.3-17": - version "1.26.3-17" - resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-17.tgz#4b38c37f908345dc77459e3cce09aca7182d43d0" - integrity sha512-438aIjOHmr2eE1icABebtKCh+g5Dd3FGlcs26PgtElu4mZVlJp+8T7wsU3N/B5Vvx5nkbL6RAMk7jxtVL9yCNQ== +"@glific/flow-editor@^1.26.3-18": + version "1.26.3-18" + resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-18.tgz#b00eb188bf1070903ae7d50a785d8ace76d97f35" + integrity sha512-DtC6LSkUqJg9Y1DlBvy9lVndd6raxTO9rSciec0X5wgVNxBnf7BoCJTA5wy3JkpY4jD3Xb9yPFUkz+1R/vFHcA== dependencies: react "^16.8.6" react-dom "^16.8.6"