@inspirer-dev/crm-dashboard 1.0.89 → 1.0.90
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/admin/src/components/RulesBuilder/constants.ts +16 -0
- package/dist/_chunks/{index-ClbsgJmF.mjs → index-BXWSCH8D.mjs} +1 -1
- package/dist/_chunks/{index-DKJtyGq7.mjs → index-CFfWhleR.mjs} +1 -1
- package/dist/_chunks/{index-T7VXjklK.js → index-DGSELI7S.js} +1 -1
- package/dist/_chunks/{index-CapXG1AZ.js → index-hY_mczO-.js} +1 -1
- package/dist/_chunks/{utils-CAs_GSGv.js → utils-CIIhL4KH.js} +16 -0
- package/dist/_chunks/{utils-BHneBJ7U.mjs → utils-DwR0IuyK.mjs} +16 -0
- package/dist/admin/index.js +2 -2
- package/dist/admin/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -239,6 +239,22 @@ export const METRICS: MetricDefinition[] = [
|
|
|
239
239
|
description: 'User opted out of TG messages',
|
|
240
240
|
operators: booleanOperators,
|
|
241
241
|
},
|
|
242
|
+
{
|
|
243
|
+
key: 'has_whatsapp',
|
|
244
|
+
label: 'Has WhatsApp',
|
|
245
|
+
category: 'status',
|
|
246
|
+
valueType: 'boolean',
|
|
247
|
+
description: 'WhatsApp connected',
|
|
248
|
+
operators: booleanOperators,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
key: 'whatsapp_opt_out',
|
|
252
|
+
label: 'WhatsApp Opt-Out',
|
|
253
|
+
category: 'status',
|
|
254
|
+
valueType: 'boolean',
|
|
255
|
+
description: 'User opted out of WhatsApp messages',
|
|
256
|
+
operators: booleanOperators,
|
|
257
|
+
},
|
|
242
258
|
{
|
|
243
259
|
key: 'has_opened_welcome_case',
|
|
244
260
|
label: 'Has Opened Welcome Case',
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useState, useEffect, useMemo } from "react";
|
|
|
3
3
|
import { Field, Flex, Box, Typography, Button, Card, CardContent, SingleSelect, SingleSelectOption, TextInput, Tooltip, IconButton } from "@strapi/design-system";
|
|
4
4
|
import { Plus, ArrowUp, ArrowDown, Trash, Layout, Link } from "@strapi/icons";
|
|
5
5
|
import { useTheme } from "styled-components";
|
|
6
|
-
import { m as generateId } from "./utils-
|
|
6
|
+
import { m as generateId } from "./utils-DwR0IuyK.mjs";
|
|
7
7
|
const mapRawButton = (b) => ({
|
|
8
8
|
id: typeof b?.id === "string" ? b.id : generateId(),
|
|
9
9
|
text: typeof b?.text === "string" ? b.text : "",
|
|
@@ -3,7 +3,7 @@ import React, { forwardRef, useState, useEffect, useMemo, useCallback } from "re
|
|
|
3
3
|
import { Field, Flex, Badge, Button, Box, Typography, Tooltip, IconButton, SingleSelect, SingleSelectOption, Switch, TextInput } from "@strapi/design-system";
|
|
4
4
|
import { Trash, Layout, Plus } from "@strapi/icons";
|
|
5
5
|
import { useTheme } from "styled-components";
|
|
6
|
-
import { d as deserializeConfig, c as countRules, s as serializeConfig, a as createInitialConfig, i as isRuleGroup, u as updateGroupLogic, b as deleteGroupFromParent, g as getMetricDefinition, O as OPERATORS, M as METRICS_BY_CATEGORY, C as CATEGORY_LABELS, e as deleteRuleFromGroup, f as updateRuleInGroup, h as addRuleToGroup, j as createEmptyRule, k as createEmptyGroup, p as parseTimeAgoValue, l as createTimeAgoValue, T as TIME_UNITS, L as LIFECYCLE_STAGES } from "./utils-
|
|
6
|
+
import { d as deserializeConfig, c as countRules, s as serializeConfig, a as createInitialConfig, i as isRuleGroup, u as updateGroupLogic, b as deleteGroupFromParent, g as getMetricDefinition, O as OPERATORS, M as METRICS_BY_CATEGORY, C as CATEGORY_LABELS, e as deleteRuleFromGroup, f as updateRuleInGroup, h as addRuleToGroup, j as createEmptyRule, k as createEmptyGroup, p as parseTimeAgoValue, l as createTimeAgoValue, T as TIME_UNITS, L as LIFECYCLE_STAGES } from "./utils-DwR0IuyK.mjs";
|
|
7
7
|
const useThemeColors = () => {
|
|
8
8
|
const theme = useTheme();
|
|
9
9
|
const isDark = theme?.colors?.neutral0 === "#212134";
|
|
@@ -5,7 +5,7 @@ const React = require("react");
|
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
|
6
6
|
const icons = require("@strapi/icons");
|
|
7
7
|
const styledComponents = require("styled-components");
|
|
8
|
-
const utils = require("./utils-
|
|
8
|
+
const utils = require("./utils-CIIhL4KH.js");
|
|
9
9
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
10
10
|
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
11
11
|
const useThemeColors = () => {
|
|
@@ -5,7 +5,7 @@ const React = require("react");
|
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
|
6
6
|
const icons = require("@strapi/icons");
|
|
7
7
|
const styledComponents = require("styled-components");
|
|
8
|
-
const utils = require("./utils-
|
|
8
|
+
const utils = require("./utils-CIIhL4KH.js");
|
|
9
9
|
const mapRawButton = (b) => ({
|
|
10
10
|
id: typeof b?.id === "string" ? b.id : utils.generateId(),
|
|
11
11
|
text: typeof b?.text === "string" ? b.text : "",
|
|
@@ -233,6 +233,22 @@ const METRICS = [
|
|
|
233
233
|
description: "User opted out of TG messages",
|
|
234
234
|
operators: booleanOperators
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
key: "has_whatsapp",
|
|
238
|
+
label: "Has WhatsApp",
|
|
239
|
+
category: "status",
|
|
240
|
+
valueType: "boolean",
|
|
241
|
+
description: "WhatsApp connected",
|
|
242
|
+
operators: booleanOperators
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
key: "whatsapp_opt_out",
|
|
246
|
+
label: "WhatsApp Opt-Out",
|
|
247
|
+
category: "status",
|
|
248
|
+
valueType: "boolean",
|
|
249
|
+
description: "User opted out of WhatsApp messages",
|
|
250
|
+
operators: booleanOperators
|
|
251
|
+
},
|
|
236
252
|
{
|
|
237
253
|
key: "has_opened_welcome_case",
|
|
238
254
|
label: "Has Opened Welcome Case",
|
|
@@ -232,6 +232,22 @@ const METRICS = [
|
|
|
232
232
|
description: "User opted out of TG messages",
|
|
233
233
|
operators: booleanOperators
|
|
234
234
|
},
|
|
235
|
+
{
|
|
236
|
+
key: "has_whatsapp",
|
|
237
|
+
label: "Has WhatsApp",
|
|
238
|
+
category: "status",
|
|
239
|
+
valueType: "boolean",
|
|
240
|
+
description: "WhatsApp connected",
|
|
241
|
+
operators: booleanOperators
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
key: "whatsapp_opt_out",
|
|
245
|
+
label: "WhatsApp Opt-Out",
|
|
246
|
+
category: "status",
|
|
247
|
+
valueType: "boolean",
|
|
248
|
+
description: "User opted out of WhatsApp messages",
|
|
249
|
+
operators: booleanOperators
|
|
250
|
+
},
|
|
235
251
|
{
|
|
236
252
|
key: "has_opened_welcome_case",
|
|
237
253
|
label: "Has Opened Welcome Case",
|
package/dist/admin/index.js
CHANGED
|
@@ -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-
|
|
38
|
+
"../_chunks/index-DGSELI7S.js"
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
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-
|
|
110
|
+
"../_chunks/index-hY_mczO-.js"
|
|
111
111
|
))
|
|
112
112
|
},
|
|
113
113
|
options: {
|
package/dist/admin/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ const index = {
|
|
|
34
34
|
components: {
|
|
35
35
|
Input: async () => import(
|
|
36
36
|
/* webpackChunkName: "crm-rules-builder" */
|
|
37
|
-
"../_chunks/index-
|
|
37
|
+
"../_chunks/index-CFfWhleR.mjs"
|
|
38
38
|
)
|
|
39
39
|
},
|
|
40
40
|
options: {
|
|
@@ -106,7 +106,7 @@ const index = {
|
|
|
106
106
|
components: {
|
|
107
107
|
Input: async () => import(
|
|
108
108
|
/* webpackChunkName: "crm-telegram-buttons" */
|
|
109
|
-
"../_chunks/index-
|
|
109
|
+
"../_chunks/index-BXWSCH8D.mjs"
|
|
110
110
|
)
|
|
111
111
|
},
|
|
112
112
|
options: {
|