@inspirer-dev/crm-dashboard 1.0.80 → 1.0.82

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.
Files changed (46) hide show
  1. package/admin/src/components/ButtonsBuilder/index.tsx +3 -3
  2. package/admin/src/components/CancelConditionsField/index.tsx +7 -6
  3. package/admin/src/components/RulesBuilder/index.tsx +9 -8
  4. package/admin/src/components/StepFlowBuilder/constants.ts +2 -0
  5. package/admin/src/components/StepFlowBuilder/index.tsx +1 -1
  6. package/admin/src/components/StepFlowBuilder/nodes/EventTriggerNode.tsx +29 -1
  7. package/admin/src/components/StepFlowBuilder/panels/EventTriggerConfig.tsx +97 -9
  8. package/admin/src/components/StepFlowBuilder/panels/NodeEditPanel.tsx +1 -1
  9. package/admin/src/components/StepFlowBuilder/panels/WaitConfig.tsx +1 -3
  10. package/admin/src/components/StepFlowBuilder/types.ts +2 -0
  11. package/admin/src/components/TriggerConfigField/index.tsx +11 -10
  12. package/admin/src/components/TriggerParamsField/constants.ts +109 -0
  13. package/admin/src/components/TriggerParamsField/index.tsx +292 -0
  14. package/admin/src/index.ts +26 -1
  15. package/admin/src/pages/HomePage/components/CampaignBuilder/index.tsx +4 -0
  16. package/admin/src/pages/HomePage/components/FlowBuilderTest.tsx +3 -3
  17. package/admin/src/pages/HomePage/components/SendTimeHeatMap.tsx +2 -2
  18. package/admin/src/pages/HomePage/components/StatsView.tsx +2 -2
  19. package/admin/src/translations/en.json +4 -1
  20. package/admin/src/translations/ru.json +4 -1
  21. package/admin/tsconfig.json +12 -1
  22. package/admin/tsconfig.tsbuildinfo +1 -1
  23. package/dist/_chunks/{en-DEUgX5uV.mjs → en-B5BgIROW.mjs} +3 -1
  24. package/dist/_chunks/{en-D2kTkBns.js → en-GKZo4lia.js} +3 -1
  25. package/dist/_chunks/{index-C-1xCfqJ.js → index-354YMebI.js} +152 -38
  26. package/dist/_chunks/{index-BydXrDhA.mjs → index-BKfFI_Jo.mjs} +2 -2
  27. package/dist/_chunks/{index-D1kMmlrA.js → index-BQcRoIJr.js} +5 -4
  28. package/dist/_chunks/{index-BJzk6xNb.mjs → index-BgwX1xYS.mjs} +7 -6
  29. package/dist/_chunks/{index-pJUyH-Qr.js → index-Cg0G_bTE.js} +2 -2
  30. package/dist/_chunks/index-CuMY0eo5.js +310 -0
  31. package/dist/_chunks/{index-unxa4Q_H.mjs → index-DKJtyGq7.mjs} +5 -4
  32. package/dist/_chunks/{index-BFRbyVHC.js → index-DRXMKPXI.js} +1 -1
  33. package/dist/_chunks/{index-Xa_4jez0.mjs → index-Dhj0KzCX.mjs} +5 -4
  34. package/dist/_chunks/{index-Dv1tGmDT.mjs → index-LXBoz7PC.mjs} +1 -1
  35. package/dist/_chunks/index-NvFKi6er.mjs +310 -0
  36. package/dist/_chunks/{index-BKrTVHBr.js → index-T7VXjklK.js} +5 -4
  37. package/dist/_chunks/{index-CWSibOAr.mjs → index-gR86Z3uh.mjs} +152 -38
  38. package/dist/_chunks/{index-CAwynvu7.js → index-xDSMnUMp.js} +7 -6
  39. package/dist/_chunks/{ru-BKzplvmu.js → ru-bj5iiIPr.js} +3 -1
  40. package/dist/_chunks/{ru-DOt1yfNm.mjs → ru-h22ZdPCS.mjs} +3 -1
  41. package/dist/admin/index.js +31 -7
  42. package/dist/admin/index.mjs +32 -8
  43. package/dist/server/index.js +5 -0
  44. package/dist/server/index.mjs +5 -0
  45. package/package.json +3 -3
  46. package/server/src/register.ts +6 -0
@@ -79,7 +79,9 @@ const ru = {
79
79
  "crm-dashboard.template.title.label": "Заголовок",
80
80
  "crm-dashboard.template.title.description": "Для email: тема письма. Для Telegram: внутренний заголовок (не виден пользователю). Для push: заголовок уведомления.",
81
81
  "crm-dashboard.template.body.label": "Текст сообщения",
82
- "crm-dashboard.template.body.description": "Текст сообщения. Переменные: {{userName}}, {{balance}}, {{depositCount}}, {{depositTotal}}, {{amount}}. Markdown: *жирный*, _курсив_"
82
+ "crm-dashboard.template.body.description": "Текст сообщения. Переменные: {{userName}}, {{balance}}, {{depositCount}}, {{depositTotal}}, {{amount}}. Markdown: *жирный*, _курсив_",
83
+ "crm-dashboard.trigger-params.label": "Параметры триггера",
84
+ "crm-dashboard.trigger-params.description": "Настройте параметры срабатывания для этапов popup-флоу. Добавляйте только параметры, релевантные для данного типа этапа."
83
85
  };
84
86
  export {
85
87
  ru as default
@@ -35,7 +35,7 @@ const index = {
35
35
  components: {
36
36
  Input: async () => Promise.resolve().then(() => require(
37
37
  /* webpackChunkName: "crm-rules-builder" */
38
- "../_chunks/index-BKrTVHBr.js"
38
+ "../_chunks/index-T7VXjklK.js"
39
39
  ))
40
40
  },
41
41
  options: {
@@ -59,7 +59,7 @@ const index = {
59
59
  components: {
60
60
  Input: async () => Promise.resolve().then(() => require(
61
61
  /* webpackChunkName: "crm-trigger-config" */
62
- "../_chunks/index-D1kMmlrA.js"
62
+ "../_chunks/index-BQcRoIJr.js"
63
63
  ))
64
64
  },
65
65
  options: {
@@ -83,7 +83,7 @@ const index = {
83
83
  components: {
84
84
  Input: async () => Promise.resolve().then(() => require(
85
85
  /* webpackChunkName: "crm-cancel-conditions" */
86
- "../_chunks/index-CAwynvu7.js"
86
+ "../_chunks/index-xDSMnUMp.js"
87
87
  ))
88
88
  },
89
89
  options: {
@@ -107,7 +107,7 @@ const index = {
107
107
  components: {
108
108
  Input: async () => Promise.resolve().then(() => require(
109
109
  /* webpackChunkName: "crm-telegram-buttons" */
110
- "../_chunks/index-pJUyH-Qr.js"
110
+ "../_chunks/index-Cg0G_bTE.js"
111
111
  ))
112
112
  },
113
113
  options: {
@@ -131,7 +131,31 @@ const index = {
131
131
  components: {
132
132
  Input: async () => Promise.resolve().then(() => require(
133
133
  /* webpackChunkName: "crm-step-flow-builder" */
134
- "../_chunks/index-C-1xCfqJ.js"
134
+ "../_chunks/index-354YMebI.js"
135
+ ))
136
+ },
137
+ options: {
138
+ base: [],
139
+ advanced: []
140
+ }
141
+ });
142
+ app.customFields.register({
143
+ name: "trigger-params",
144
+ pluginId: PLUGIN_ID,
145
+ type: "json",
146
+ intlLabel: {
147
+ id: `${PLUGIN_ID}.trigger-params.label`,
148
+ defaultMessage: "Trigger Params"
149
+ },
150
+ intlDescription: {
151
+ id: `${PLUGIN_ID}.trigger-params.description`,
152
+ defaultMessage: "Configure trigger parameters for popup flow stages"
153
+ },
154
+ icon: icons.Filter,
155
+ components: {
156
+ Input: async () => Promise.resolve().then(() => require(
157
+ /* webpackChunkName: "crm-trigger-params" */
158
+ "../_chunks/index-CuMY0eo5.js"
135
159
  ))
136
160
  },
137
161
  options: {
@@ -149,7 +173,7 @@ const index = {
149
173
  Component: async () => {
150
174
  const component = await Promise.resolve().then(() => require(
151
175
  /* webpackChunkName: "crm-dashboard-page" */
152
- "../_chunks/index-BFRbyVHC.js"
176
+ "../_chunks/index-DRXMKPXI.js"
153
177
  ));
154
178
  return component;
155
179
  },
@@ -168,7 +192,7 @@ const index = {
168
192
  return Promise.all(
169
193
  locales.map(async (locale) => {
170
194
  try {
171
- const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-D2kTkBns.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("../_chunks/ru-BKzplvmu.js")) }), `./translations/${locale}.json`, 3);
195
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-GKZo4lia.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("../_chunks/ru-bj5iiIPr.js")) }), `./translations/${locale}.json`, 3);
172
196
  return { data, locale };
173
197
  } catch {
174
198
  return { data: {}, locale };
@@ -1,4 +1,4 @@
1
- import { Message, Clock, Cross, Link, ArrowRight } from "@strapi/icons";
1
+ import { Message, Clock, Cross, Link, ArrowRight, Filter } from "@strapi/icons";
2
2
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
3
3
  const v = glob[path];
4
4
  if (v) {
@@ -34,7 +34,7 @@ const index = {
34
34
  components: {
35
35
  Input: async () => import(
36
36
  /* webpackChunkName: "crm-rules-builder" */
37
- "../_chunks/index-unxa4Q_H.mjs"
37
+ "../_chunks/index-DKJtyGq7.mjs"
38
38
  )
39
39
  },
40
40
  options: {
@@ -58,7 +58,7 @@ const index = {
58
58
  components: {
59
59
  Input: async () => import(
60
60
  /* webpackChunkName: "crm-trigger-config" */
61
- "../_chunks/index-Xa_4jez0.mjs"
61
+ "../_chunks/index-Dhj0KzCX.mjs"
62
62
  )
63
63
  },
64
64
  options: {
@@ -82,7 +82,7 @@ const index = {
82
82
  components: {
83
83
  Input: async () => import(
84
84
  /* webpackChunkName: "crm-cancel-conditions" */
85
- "../_chunks/index-BJzk6xNb.mjs"
85
+ "../_chunks/index-BgwX1xYS.mjs"
86
86
  )
87
87
  },
88
88
  options: {
@@ -106,7 +106,7 @@ const index = {
106
106
  components: {
107
107
  Input: async () => import(
108
108
  /* webpackChunkName: "crm-telegram-buttons" */
109
- "../_chunks/index-BydXrDhA.mjs"
109
+ "../_chunks/index-BKfFI_Jo.mjs"
110
110
  )
111
111
  },
112
112
  options: {
@@ -130,7 +130,31 @@ const index = {
130
130
  components: {
131
131
  Input: async () => import(
132
132
  /* webpackChunkName: "crm-step-flow-builder" */
133
- "../_chunks/index-CWSibOAr.mjs"
133
+ "../_chunks/index-gR86Z3uh.mjs"
134
+ )
135
+ },
136
+ options: {
137
+ base: [],
138
+ advanced: []
139
+ }
140
+ });
141
+ app.customFields.register({
142
+ name: "trigger-params",
143
+ pluginId: PLUGIN_ID,
144
+ type: "json",
145
+ intlLabel: {
146
+ id: `${PLUGIN_ID}.trigger-params.label`,
147
+ defaultMessage: "Trigger Params"
148
+ },
149
+ intlDescription: {
150
+ id: `${PLUGIN_ID}.trigger-params.description`,
151
+ defaultMessage: "Configure trigger parameters for popup flow stages"
152
+ },
153
+ icon: Filter,
154
+ components: {
155
+ Input: async () => import(
156
+ /* webpackChunkName: "crm-trigger-params" */
157
+ "../_chunks/index-NvFKi6er.mjs"
134
158
  )
135
159
  },
136
160
  options: {
@@ -148,7 +172,7 @@ const index = {
148
172
  Component: async () => {
149
173
  const component = await import(
150
174
  /* webpackChunkName: "crm-dashboard-page" */
151
- "../_chunks/index-Dv1tGmDT.mjs"
175
+ "../_chunks/index-LXBoz7PC.mjs"
152
176
  );
153
177
  return component;
154
178
  },
@@ -167,7 +191,7 @@ const index = {
167
191
  return Promise.all(
168
192
  locales.map(async (locale) => {
169
193
  try {
170
- const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("../_chunks/en-DEUgX5uV.mjs"), "./translations/ru.json": () => import("../_chunks/ru-DOt1yfNm.mjs") }), `./translations/${locale}.json`, 3);
194
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("../_chunks/en-B5BgIROW.mjs"), "./translations/ru.json": () => import("../_chunks/ru-h22ZdPCS.mjs") }), `./translations/${locale}.json`, 3);
171
195
  return { data, locale };
172
196
  } catch {
173
197
  return { data: {}, locale };
@@ -32,6 +32,11 @@ const register = ({ strapi }) => {
32
32
  plugin: "crm-dashboard",
33
33
  type: "json"
34
34
  });
35
+ strapi.customFields.register({
36
+ name: "trigger-params",
37
+ plugin: "crm-dashboard",
38
+ type: "json"
39
+ });
35
40
  };
36
41
  const bootstrap = ({ strapi }) => {
37
42
  };
@@ -31,6 +31,11 @@ const register = ({ strapi }) => {
31
31
  plugin: "crm-dashboard",
32
32
  type: "json"
33
33
  });
34
+ strapi.customFields.register({
35
+ name: "trigger-params",
36
+ plugin: "crm-dashboard",
37
+ type: "json"
38
+ });
34
39
  };
35
40
  const bootstrap = ({ strapi }) => {
36
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",
@@ -73,8 +73,8 @@
73
73
  "watch": "strapi-plugin watch",
74
74
  "watch:link": "strapi-plugin watch:link",
75
75
  "verify": "strapi-plugin verify",
76
- "test:ts:front": "run -T tsc -p admin/tsconfig.json",
77
- "test:ts:back": "run -T tsc -p server/tsconfig.json",
76
+ "test:ts:front": "tsc -p admin/tsconfig.json",
77
+ "test:ts:back": "tsc -p server/tsconfig.json",
78
78
  "dev:playground": "vite --config admin/playground/vite.config.ts",
79
79
  "build:playground": "vite build --config admin/playground/vite.config.ts",
80
80
  "preview:playground": "vite preview --config admin/playground/vite.config.ts"
@@ -38,6 +38,12 @@ const register = ({ strapi }: { strapi: Core.Strapi }) => {
38
38
  plugin: 'crm-dashboard',
39
39
  type: 'json',
40
40
  });
41
+
42
+ strapi.customFields.register({
43
+ name: 'trigger-params',
44
+ plugin: 'crm-dashboard',
45
+ type: 'json',
46
+ });
41
47
  };
42
48
 
43
49
  export default register;