@inspirer-dev/crm-dashboard 1.0.73 → 1.0.74

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.
@@ -111,6 +111,7 @@ export const CHANNEL_OPTIONS: { value: ChannelType; label: string }[] = [
111
111
  ];
112
112
 
113
113
  export const DURATION_UNIT_OPTIONS: { value: DurationUnit; label: string }[] = [
114
+ { value: 'seconds', label: 'Seconds' },
114
115
  { value: 'minutes', label: 'Minutes' },
115
116
  { value: 'hours', label: 'Hours' },
116
117
  { value: 'days', label: 'Days' },
@@ -14,6 +14,7 @@ const LabeledEdge: React.FC<EdgeProps<LabeledEdgeData>> = ({
14
14
  sourcePosition,
15
15
  targetPosition,
16
16
  sourceHandleId,
17
+ selected,
17
18
  style = {},
18
19
  markerEnd,
19
20
  }) => {
@@ -44,8 +45,10 @@ const LabeledEdge: React.FC<EdgeProps<LabeledEdgeData>> = ({
44
45
  markerEnd={markerEnd}
45
46
  style={{
46
47
  ...style,
47
- stroke: edgeStyle.stroke,
48
- strokeWidth: edgeStyle.strokeWidth,
48
+ stroke: selected ? '#6366f1' : edgeStyle.stroke,
49
+ strokeWidth: selected ? 3 : edgeStyle.strokeWidth,
50
+ filter: selected ? 'drop-shadow(0 0 4px rgba(99, 102, 241, 0.5))' : undefined,
51
+ transition: 'stroke 0.2s, stroke-width 0.2s, filter 0.2s',
49
52
  }}
50
53
  />
51
54
  {label && labelStyle && (
@@ -17,6 +17,7 @@ const ANALYTICS_EVENTS: Record<string, { value: string; label: string }[]> = {
17
17
  { value: 'ftd', label: 'First Time Deposit' },
18
18
  { value: 'deposit', label: 'Deposit' },
19
19
  { value: 'case_opened', label: 'Case Opened (Paid)' },
20
+ { value: 'welcome_case_opened', label: 'Welcome Case Opened' },
20
21
  { value: 'upgrade', label: 'Upgrade Completed' },
21
22
  { value: 'battle', label: 'Battle Completed' },
22
23
  { value: 'contract', label: 'Contract Completed' },
@@ -2,7 +2,7 @@ import type { Node, Edge } from 'reactflow';
2
2
 
3
3
  export type StepType = 'entry' | 'message' | 'wait' | 'branch' | 'exit' | 'event_trigger';
4
4
  export type ChannelType = 'telegram' | 'email' | 'push' | 'sms';
5
- export type DurationUnit = 'minutes' | 'hours' | 'days';
5
+ export type DurationUnit = 'seconds' | 'minutes' | 'hours' | 'days';
6
6
  export type EventTriggerLogic = 'and' | 'or';
7
7
 
8
8
  export interface EventTriggerConfig {
@@ -20,6 +20,7 @@ const ANALYTICS_EVENTS: Record<string, { value: string; label: string }[]> = {
20
20
  { value: 'ftd', label: 'First Time Deposit' },
21
21
  { value: 'deposit', label: 'Deposit' },
22
22
  { value: 'case_opened', label: 'Case Opened (Paid)' },
23
+ { value: 'welcome_case_opened', label: 'Welcome Case Opened' },
23
24
  { value: 'upgrade', label: 'Upgrade Completed' },
24
25
  { value: 'battle', label: 'Battle Completed' },
25
26
  { value: 'contract', label: 'Contract Completed' },
@@ -105,6 +105,7 @@ const CHANNEL_OPTIONS = [
105
105
  { value: "sms", label: "SMS" }
106
106
  ];
107
107
  const DURATION_UNIT_OPTIONS = [
108
+ { value: "seconds", label: "Seconds" },
108
109
  { value: "minutes", label: "Minutes" },
109
110
  { value: "hours", label: "Hours" },
110
111
  { value: "days", label: "Days" }
@@ -1243,6 +1244,7 @@ const LabeledEdge = ({
1243
1244
  sourcePosition,
1244
1245
  targetPosition,
1245
1246
  sourceHandleId,
1247
+ selected,
1246
1248
  style = {},
1247
1249
  markerEnd
1248
1250
  }) => {
@@ -1269,8 +1271,10 @@ const LabeledEdge = ({
1269
1271
  markerEnd,
1270
1272
  style: {
1271
1273
  ...style,
1272
- stroke: edgeStyle.stroke,
1273
- strokeWidth: edgeStyle.strokeWidth
1274
+ stroke: selected ? "#6366f1" : edgeStyle.stroke,
1275
+ strokeWidth: selected ? 3 : edgeStyle.strokeWidth,
1276
+ filter: selected ? "drop-shadow(0 0 4px rgba(99, 102, 241, 0.5))" : void 0,
1277
+ transition: "stroke 0.2s, stroke-width 0.2s, filter 0.2s"
1274
1278
  }
1275
1279
  }
1276
1280
  ),
@@ -2325,6 +2329,7 @@ const ANALYTICS_EVENTS = {
2325
2329
  { value: "ftd", label: "First Time Deposit" },
2326
2330
  { value: "deposit", label: "Deposit" },
2327
2331
  { value: "case_opened", label: "Case Opened (Paid)" },
2332
+ { value: "welcome_case_opened", label: "Welcome Case Opened" },
2328
2333
  { value: "upgrade", label: "Upgrade Completed" },
2329
2334
  { value: "battle", label: "Battle Completed" },
2330
2335
  { value: "contract", label: "Contract Completed" },
@@ -100,6 +100,7 @@ const CHANNEL_OPTIONS = [
100
100
  { value: "sms", label: "SMS" }
101
101
  ];
102
102
  const DURATION_UNIT_OPTIONS = [
103
+ { value: "seconds", label: "Seconds" },
103
104
  { value: "minutes", label: "Minutes" },
104
105
  { value: "hours", label: "Hours" },
105
106
  { value: "days", label: "Days" }
@@ -1238,6 +1239,7 @@ const LabeledEdge = ({
1238
1239
  sourcePosition,
1239
1240
  targetPosition,
1240
1241
  sourceHandleId,
1242
+ selected,
1241
1243
  style = {},
1242
1244
  markerEnd
1243
1245
  }) => {
@@ -1264,8 +1266,10 @@ const LabeledEdge = ({
1264
1266
  markerEnd,
1265
1267
  style: {
1266
1268
  ...style,
1267
- stroke: edgeStyle.stroke,
1268
- strokeWidth: edgeStyle.strokeWidth
1269
+ stroke: selected ? "#6366f1" : edgeStyle.stroke,
1270
+ strokeWidth: selected ? 3 : edgeStyle.strokeWidth,
1271
+ filter: selected ? "drop-shadow(0 0 4px rgba(99, 102, 241, 0.5))" : void 0,
1272
+ transition: "stroke 0.2s, stroke-width 0.2s, filter 0.2s"
1269
1273
  }
1270
1274
  }
1271
1275
  ),
@@ -2320,6 +2324,7 @@ const ANALYTICS_EVENTS = {
2320
2324
  { value: "ftd", label: "First Time Deposit" },
2321
2325
  { value: "deposit", label: "Deposit" },
2322
2326
  { value: "case_opened", label: "Case Opened (Paid)" },
2327
+ { value: "welcome_case_opened", label: "Welcome Case Opened" },
2323
2328
  { value: "upgrade", label: "Upgrade Completed" },
2324
2329
  { value: "battle", label: "Battle Completed" },
2325
2330
  { value: "contract", label: "Contract Completed" },
@@ -11,6 +11,7 @@ const ANALYTICS_EVENTS = {
11
11
  { value: "ftd", label: "First Time Deposit" },
12
12
  { value: "deposit", label: "Deposit" },
13
13
  { value: "case_opened", label: "Case Opened (Paid)" },
14
+ { value: "welcome_case_opened", label: "Welcome Case Opened" },
14
15
  { value: "upgrade", label: "Upgrade Completed" },
15
16
  { value: "battle", label: "Battle Completed" },
16
17
  { value: "contract", label: "Contract Completed" },
@@ -9,6 +9,7 @@ const ANALYTICS_EVENTS = {
9
9
  { value: "ftd", label: "First Time Deposit" },
10
10
  { value: "deposit", label: "Deposit" },
11
11
  { value: "case_opened", label: "Case Opened (Paid)" },
12
+ { value: "welcome_case_opened", label: "Welcome Case Opened" },
12
13
  { value: "upgrade", label: "Upgrade Completed" },
13
14
  { value: "battle", label: "Battle Completed" },
14
15
  { value: "contract", label: "Contract Completed" },
@@ -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-VBB-jp6c.js"
62
+ "../_chunks/index-D1kMmlrA.js"
63
63
  ))
64
64
  },
65
65
  options: {
@@ -131,7 +131,7 @@ const index = {
131
131
  components: {
132
132
  Input: async () => Promise.resolve().then(() => require(
133
133
  /* webpackChunkName: "crm-step-flow-builder" */
134
- "../_chunks/index-DgSik-4_.js"
134
+ "../_chunks/index-C-1xCfqJ.js"
135
135
  ))
136
136
  },
137
137
  options: {
@@ -58,7 +58,7 @@ const index = {
58
58
  components: {
59
59
  Input: async () => import(
60
60
  /* webpackChunkName: "crm-trigger-config" */
61
- "../_chunks/index-DQuk7xQD.mjs"
61
+ "../_chunks/index-Xa_4jez0.mjs"
62
62
  )
63
63
  },
64
64
  options: {
@@ -130,7 +130,7 @@ const index = {
130
130
  components: {
131
131
  Input: async () => import(
132
132
  /* webpackChunkName: "crm-step-flow-builder" */
133
- "../_chunks/index-Bo1xlxu3.mjs"
133
+ "../_chunks/index-CWSibOAr.mjs"
134
134
  )
135
135
  },
136
136
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",